import Link from "next/link" import { LEGAL, LEGAL_PAGES } from "@/lib/legal" /** * Shared shell for every legal page. Renders a consistent header (title, * effective/updated dates), the body, and a cross-link nav to sibling policies. * `pt-32` clears the fixed marketing navbar. */ export function LegalPage({ title, subtitle, updated, children, }: { title: string subtitle?: string /** Optional per-page override; defaults to the global LEGAL.lastUpdated. */ updated?: string children: React.ReactNode }) { return (

{title}

{subtitle &&

{subtitle}

}

Effective date: {LEGAL.effectiveDate} · Last updated: {updated ?? LEGAL.lastUpdated}

{children}
) } /** A titled section. Pass plain text or JSX children (paragraphs, lists, etc.). */ export function Section({ id, heading, children, }: { id?: string heading: string children: React.ReactNode }) { return (

{heading}

{children}
) } /** Highlighted note (e.g. a disclaimer or important caveat). */ export function Callout({ children }: { children: React.ReactNode }) { return (
{children}
) } /** Standard "questions / contact us" block for the bottom of a policy. */ export function LegalContact({ email = LEGAL.contactEmail, children, }: { email?: string children?: React.ReactNode }) { return (

{children ?? "If you have questions about this policy, contact us at "} {email}.

{LEGAL.entity} {LEGAL.address && !LEGAL.address.startsWith("[") ? ` · ${LEGAL.address}` : ""}

) } /** Cross-links to the other legal documents. */ function PolicyNav({ current }: { current: string }) { return ( ) }