Documentation
Privacy policy with GPT
Legal pages are rendered from markdown, so you can generate content with GPT (or any LLM) and drop it straight into the repository.
Markdown-driven content
The privacy route reads `src/content/legal/privacy.md` through `getLegalContent`. Any markdown generated by GPT instantly renders with the typographic system already in place.
Relevant files
src/lib/legal.ts— Markdown loadersrc/content/legal/privacy.md— Privacy markdown
Update cadence
Store the AI prompt and responses alongside the repo so you can regenerate policies whenever regulations change. Because the markdown lives in Git, you retain a history of every revision.
Link back everywhere
Use `buildPageMetadata` to keep metadata accurate and add links from onboarding, checkout, or the footer when you need to reference the updated language.
Relevant files
src/lib/metadata.ts— Metadata helpersrc/components/common/footer.tsx— Footer links