"use client"; import Link from "next/link"; import { useI18n } from "@/lib/i18n"; import { LEGAL, type LegalSlug } from "@/lib/legal"; /** * Renders one legal document in the current language (the text lives in * lib/legal.ts, both languages side by side so they cannot drift apart). */ export function LegalPage({ slug }: { slug: LegalSlug }) { const { locale, t } = useI18n(); const document = LEGAL[slug][locale === "cs" ? "cs" : "en"]; return (

{t("legal.updated", { when: document.updated })}

{document.title}

{document.intro}

{document.sections.map((section) => (

{section.heading}

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

{paragraph}

))} {section.list ? (
    {section.list.map((entry) => (
  • {entry}
  • ))}
) : null}
))}

{document.footer}

); }