AI takes hold in the legal profession