Artificial intelligence and the law