Evaluating Artificial Intelligence for Legal Work: From the Basics to LLMs