/** * Author: Simon-Pierre Boucher * Contact: contact@spboucher.ai * Project: Hilmacorp.ai — Web Platform * File: components/LegalPage.tsx * Description: Shared layout for legal documents (Terms of Service, Privacy Policy) */ import type { ReactNode } from "react"; import Container from "@/components/Container"; import SectionHeading from "@/components/SectionHeading"; export interface LegalSection { title: string; paragraphs: string[]; } export default function LegalPage({ title, lead, lastUpdated, sections, children, }: { title: string; lead: string; lastUpdated: string; sections: LegalSection[]; children?: ReactNode; }) { return ( <>
{sections.map((section) => (

{section.title}

{section.paragraphs.map((paragraph) => (

{paragraph}

))}
))} {children}
); }