Artificial intelligence is rapidly reshaping how legal work is performed, from legal research and document drafting to contract review and litigation strategy.