AI-powered legal document creation and search