import type { Metadata } from "next";
import { LegalDoc, type LegalSection } from "@/components/marketing/legal-doc";

export const metadata: Metadata = { title: "Cookie Policy" };

const UPDATED = "June 7, 2026";

const SECTIONS: LegalSection[] = [
  {
    heading: "What cookies are",
    paragraphs: [
      "Cookies are small text files stored on your device by your browser. They let a website remember information between requests — for example, that you are signed in. Similar technologies such as local storage are covered by this policy too.",
    ],
  },
  {
    heading: "Cookies we use",
    paragraphs: ["Podcast Distribution AI uses only the cookies needed to run the service securely:"],
    bullets: [
      "Authentication — a session cookie that keeps you signed in after you log in. Without it you would have to re-authenticate on every page.",
      "Security — short-lived cookies that protect your session and help prevent cross-site request forgery.",
      "Preferences — remembering lightweight UI choices so the app behaves the way you left it.",
    ],
  },
  {
    heading: "What we don't use",
    paragraphs: [
      "We do not use third-party advertising cookies, cross-site tracking, or sell cookie data. We do not build advertising profiles about you.",
    ],
  },
  {
    heading: "Managing cookies",
    paragraphs: [
      "You can clear or block cookies in your browser settings. Because our cookies are strictly necessary, blocking them will prevent you from signing in and using the application.",
    ],
  },
  {
    heading: "Changes",
    paragraphs: [
      "If we introduce new categories of cookies we will update this policy and the date above before relying on them.",
    ],
  },
  {
    heading: "Contact",
    paragraphs: ["Questions about cookies? Email privacy@podcastdistributionai.com."],
  },
];

export default function CookiePolicyPage() {
  return (
    <LegalDoc
      title="Cookie Policy"
      updated={UPDATED}
      intro="This Cookie Policy explains how Podcast Distribution AI uses cookies and similar technologies, and the choices available to you. It should be read together with our Privacy Policy."
      sections={SECTIONS}
    />
  );
}
