Ayushbadwaik/Legal-Text-Summarizer ? reverse-engineered prompt

Reverse engineered prompt

Build me a clean web app called LexAI that helps people summarize long legal documents in a simple way. I want a page where someone can paste legal text or upload a .txt file, then click one button to get a structured summary with clear sections for the most important points, risks, and key takeaways.

Make it feel polished and easy to use, with a light professional look, smooth animations, and a small sound when the summarize button is clicked. After the result appears, I want the user to be able to copy it to the clipboard. It should also show helpful stats like word count, number of sections, time taken, and a risk level so the user can quickly understand what they uploaded.

Use the Grok API for the summarization, and keep it ready to run locally and deploy on Render. Also make sure the API key is handled safely through an environment variable instead of being hardcoded.