{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "legal-page-01",
  "title": "Legal Page 01",
  "description": "A two-file App Router legal route group with sidebar navigation and numbered clauses.",
  "registryDependencies": [
    "separator"
  ],
  "files": [
    {
      "path": "src/registry/blocks/legal-page-01/layout.tsx",
      "content": "import type { ReactNode } from \"react\";\nimport { cn } from \"@/lib/utils\";\n\nimport PrivacyPolicyPage, { PRIVACY_CLAUSES } from \"./privacy/page\";\n\nconst LEGAL_PAGES = [\"Privacy\"] as const;\n\nconst CORNER_POSITIONS = {\n\ttopLeft: \"-top-2 -left-2\",\n\ttopRight: \"-top-2 -right-2\",\n\tbottomLeft: \"-bottom-2 -left-2\",\n\tbottomRight: \"-right-2 -bottom-2\",\n} as const;\n\nfunction CornerMark({ position }: { position: keyof typeof CORNER_POSITIONS }) {\n\treturn (\n\t\t<span\n\t\t\taria-hidden=\"true\"\n\t\t\tclassName={cn(\n\t\t\t\t\"pointer-events-none absolute z-10 flex size-4 items-center justify-center text-border\",\n\t\t\t\tCORNER_POSITIONS[position],\n\t\t\t)}\n\t\t>\n\t\t\t<span className=\"absolute h-px w-full bg-current\" />\n\t\t\t<span className=\"absolute h-full w-px bg-current\" />\n\t\t</span>\n\t);\n}\n\nfunction LegalNavigation() {\n\treturn (\n\t\t<nav aria-label=\"Legal\" className=\"py-8 md:sticky md:top-8 md:py-12\">\n\t\t\t<p className=\"font-mono text-[10px] text-muted-foreground uppercase tracking-[0.32em]\">\n\t\t\t\tLegal\n\t\t\t</p>\n\t\t\t<ul className=\"mt-4 flex flex-wrap gap-1 md:mt-6 md:flex-col md:flex-nowrap md:gap-0.5\">\n\t\t\t\t{LEGAL_PAGES.map((item) => {\n\t\t\t\t\tconst isActive = item === \"Privacy\";\n\n\t\t\t\t\treturn (\n\t\t\t\t\t\t<li className=\"md:w-full\" key={item}>\n\t\t\t\t\t\t\t<span\n\t\t\t\t\t\t\t\taria-current={isActive ? \"page\" : undefined}\n\t\t\t\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\t\t\t\"relative flex items-center rounded-sm px-3 py-2 font-mono text-[13px] tracking-tight md:rounded-none md:py-1.5 md:pr-2 md:pl-4\",\n\t\t\t\t\t\t\t\t\tisActive\n\t\t\t\t\t\t\t\t\t\t? \"bg-primary/10 text-primary before:absolute before:inset-y-0 before:left-0 before:hidden before:w-px before:bg-primary md:before:block\"\n\t\t\t\t\t\t\t\t\t\t: \"text-muted-foreground\",\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{item}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t{isActive ? (\n\t\t\t\t\t\t\t\t<ol className=\"mt-3 ml-4 hidden flex-col gap-0.5 md:flex\">\n\t\t\t\t\t\t\t\t\t{PRIVACY_CLAUSES.map((clause) => (\n\t\t\t\t\t\t\t\t\t\t<li key={clause.id}>\n\t\t\t\t\t\t\t\t\t\t\t<a\n\t\t\t\t\t\t\t\t\t\t\t\tclassName=\"block py-1.5 text-muted-foreground text-xs leading-snug transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50\"\n\t\t\t\t\t\t\t\t\t\t\t\thref={`#${clause.id}`}\n\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t{clause.title}\n\t\t\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t\t))}\n\t\t\t\t\t\t\t\t</ol>\n\t\t\t\t\t\t\t) : null}\n\t\t\t\t\t\t</li>\n\t\t\t\t\t);\n\t\t\t\t})}\n\t\t\t</ul>\n\t\t</nav>\n\t);\n}\n\nexport interface LegalLayoutProps {\n\tchildren?: ReactNode;\n}\n\nexport default function LegalLayout({\n\tchildren = <PrivacyPolicyPage />,\n}: LegalLayoutProps) {\n\treturn (\n\t\t<main className=\"min-h-svh bg-background px-4 py-12 text-foreground sm:px-6 lg:px-8 lg:py-16\">\n\t\t\t<div className=\"relative mx-auto w-full max-w-6xl border border-border border-dashed\">\n\t\t\t\t<CornerMark position=\"topLeft\" />\n\t\t\t\t<CornerMark position=\"topRight\" />\n\t\t\t\t<CornerMark position=\"bottomLeft\" />\n\t\t\t\t<CornerMark position=\"bottomRight\" />\n\n\t\t\t\t<div className=\"grid grid-cols-1 md:grid-cols-[12rem_minmax(0,1fr)]\">\n\t\t\t\t\t<aside className=\"border-border border-b border-dashed px-6 md:border-r md:border-b-0 md:px-5\">\n\t\t\t\t\t\t<LegalNavigation />\n\t\t\t\t\t</aside>\n\t\t\t\t\t<div className=\"min-w-0 px-6 py-10 md:px-10 md:py-12 lg:px-14\">\n\t\t\t\t\t\t{children}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</main>\n\t);\n}\n",
      "type": "registry:page",
      "target": "app/(legal)/layout.tsx"
    },
    {
      "path": "src/registry/blocks/legal-page-01/privacy/page.tsx",
      "content": "import type { ReactNode } from \"react\";\nimport { Separator } from \"@/components/ui/separator\";\n\nexport interface LegalClause {\n\tid: string;\n\ttitle: string;\n\tbody: ReactNode;\n}\n\nexport const PRIVACY_CLAUSES = [\n\t{\n\t\tid: \"information-we-collect\",\n\t\ttitle: \"Information we collect\",\n\t\tbody: (\n\t\t\t<p>\n\t\t\t\tWe collect limited technical and usage information such as page views,\n\t\t\t\tinteraction events, browser and device metadata, and referral\n\t\t\t\tinformation. This data helps us understand how the site is used and\n\t\t\t\twhere it can be improved.\n\t\t\t</p>\n\t\t),\n\t},\n\t{\n\t\tid: \"analytics-tools\",\n\t\ttitle: \"Analytics tools\",\n\t\tbody: (\n\t\t\t<p>\n\t\t\t\tWe use privacy-conscious analytics to understand traffic and product\n\t\t\t\tusage patterns. If your browser blocks analytics scripts, the\n\t\t\t\tcorresponding data is not collected.\n\t\t\t</p>\n\t\t),\n\t},\n\t{\n\t\tid: \"how-we-use-data\",\n\t\ttitle: \"How we use data\",\n\t\tbody: (\n\t\t\t<ul>\n\t\t\t\t<li>Operate, secure, and improve the product.</li>\n\t\t\t\t<li>Understand which features are useful to visitors.</li>\n\t\t\t\t<li>Diagnose errors and monitor performance.</li>\n\t\t\t</ul>\n\t\t),\n\t},\n\t{\n\t\tid: \"cookies-and-local-storage\",\n\t\ttitle: \"Cookies and local storage\",\n\t\tbody: (\n\t\t\t<p>\n\t\t\t\tWe use local storage to remember preferences such as your theme and\n\t\t\t\tinterface settings. Analytics providers may set their own cookies, which\n\t\t\t\tyou can clear through your browser settings.\n\t\t\t</p>\n\t\t),\n\t},\n\t{\n\t\tid: \"your-choices\",\n\t\ttitle: \"Your choices\",\n\t\tbody: (\n\t\t\t<p>\n\t\t\t\tYou can opt out by blocking analytics in your browser or by using a\n\t\t\t\tbrowser with privacy protections enabled. Contact us if you need help\n\t\t\t\twith information you have submitted.\n\t\t\t</p>\n\t\t),\n\t},\n\t{\n\t\tid: \"changes\",\n\t\ttitle: \"Changes\",\n\t\tbody: (\n\t\t\t<p>\n\t\t\t\tWe may update this policy as our services change. The last updated date\n\t\t\t\tabove reflects the most recent revision.\n\t\t\t</p>\n\t\t),\n\t},\n] satisfies readonly LegalClause[];\n\nexport default function PrivacyPolicyPage() {\n\treturn (\n\t\t<article className=\"max-w-2xl\">\n\t\t\t<h1 className=\"text-balance font-semibold text-3xl text-foreground tracking-tight md:text-4xl\">\n\t\t\t\tPrivacy Policy\n\t\t\t</h1>\n\t\t\t<p className=\"mt-3 text-[12px] text-muted-foreground\">\n\t\t\t\tLast updated July 21, 2026\n\t\t\t</p>\n\t\t\t<p className=\"mt-6 text-[14px] text-muted-foreground leading-relaxed\">\n\t\t\t\tHow we handle analytics and basic usage data on this website.\n\t\t\t</p>\n\n\t\t\t<ol className=\"mt-10 flex flex-col gap-10\">\n\t\t\t\t{PRIVACY_CLAUSES.map((clause, index) => (\n\t\t\t\t\t<li className=\"scroll-mt-20\" id={clause.id} key={clause.id}>\n\t\t\t\t\t\t<h2 className=\"font-semibold text-[15px] text-foreground tracking-tight\">\n\t\t\t\t\t\t\t<span className=\"mr-3 text-muted-foreground tabular-nums\">\n\t\t\t\t\t\t\t\t{String(index + 1).padStart(2, \"0\")}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t{clause.title}\n\t\t\t\t\t\t</h2>\n\t\t\t\t\t\t<div className=\"mt-3 ml-9 flex flex-col gap-3 text-[14px] text-muted-foreground leading-relaxed [&_strong]:font-medium [&_strong]:text-foreground [&_ul]:flex [&_ul]:list-disc [&_ul]:flex-col [&_ul]:gap-1.5 [&_ul]:pl-5\">\n\t\t\t\t\t\t\t{clause.body}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</li>\n\t\t\t\t))}\n\t\t\t</ol>\n\n\t\t\t<Separator className=\"mt-16\" />\n\t\t\t<section className=\"pt-8\">\n\t\t\t\t<h2 className=\"font-semibold text-[15px] text-foreground tracking-tight\">\n\t\t\t\t\tContact\n\t\t\t\t</h2>\n\t\t\t\t<p className=\"mt-3 max-w-2xl text-[14px] text-muted-foreground leading-relaxed\">\n\t\t\t\t\tFor privacy-related questions, exports, or deletion requests, contact\n\t\t\t\t\tus at{\" \"}\n\t\t\t\t\t<a\n\t\t\t\t\t\tclassName=\"rounded-sm font-medium text-foreground underline decoration-border underline-offset-4 transition-colors hover:text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50\"\n\t\t\t\t\t\thref=\"mailto:privacy@example.com\"\n\t\t\t\t\t>\n\t\t\t\t\t\tprivacy@example.com\n\t\t\t\t\t</a>\n\t\t\t\t\t.\n\t\t\t\t</p>\n\t\t\t</section>\n\t\t</article>\n\t);\n}\n",
      "type": "registry:page",
      "target": "app/(legal)/privacy/page.tsx"
    }
  ],
  "meta": {
    "createdAt": "2026-07-21",
    "iframeHeight": 1120,
    "previewClassName": "min-h-screen"
  },
  "categories": [
    "legal"
  ],
  "type": "registry:block"
}