How legal teams can make AI work