import { JsonLd } from "@/components/seo/json-ld"; import { breadcrumbSchema, graph, webPageSchema } from "@/lib/schema"; import { toIsoDate } from "@/lib/seo"; export interface LegalSection { heading: string; paragraphs: string[]; bullets?: string[]; } /** * Shared layout for long-form legal documents (Privacy, Terms, …). * * Also emits the page's structured data: every legal page has the same shape, so * the WebPage + BreadcrumbList nodes are built here from `path`/`description` * rather than repeated in each of the six route files. */ export function LegalDoc({ title, updated, intro, sections, path, description, }: { title: string; updated: string; intro: string; sections: LegalSection[]; /** Root-relative URL of this document, e.g. "/terms". */ path: string; /** Same one-line summary used for the page's meta description. */ description: string; }) { const dateModified = toIsoDate(updated); return (
Legal
Last updated: {updated}
{intro}
{p}
))} {s.bullets && (This document is provided for transparency about how Podcast Distribution AI operates. It is a general template and is not legal advice; have it reviewed by qualified counsel for your jurisdiction before relying on it.