import { AlertTriangle } from 'lucide-react'; import { Reveal } from '@/components/effects/Reveal'; import { Card } from '@/components/ui/Card'; import { LegalBody } from '@/components/legal/LegalBody'; import { MarketingPage, PageHeader } from '@/components/landing/MarketingSection'; import { formatLegalDate, type LegalDoc } from '@/lib/legal'; interface LegalDocumentProps { doc: LegalDoc; /** Plain leading words of the page title. */ title: string; /** Trailing words carrying the brand gradient sweep. */ titleAccent?: string; /** Standing caveats shown above the text (pre-release billing, pending KVKK). */ notices?: readonly string[]; /** Interactive extras below the prose (e.g. the consent manager on /cookies). */ children?: React.ReactNode; } /** The shell every legal page renders: header, date, caveats, then the prose. */ export function LegalDocument({ doc, title, titleAccent, notices, children }: LegalDocumentProps) { return (

Last updated: {formatLegalDate(doc.updated)}

{notices !== undefined && notices.length > 0 && (
{notices.map((notice) => (

{notice}

))}
)} {children !== undefined && {children}}
); }