Why AI is still struggling to automate legal documents