The European Union's landmark artificial intelligence law took effect, with phased compliance deadlines.