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

export const metadata: Metadata = { title: "Subprocessors" };

const UPDATED = "June 7, 2026";

const SECTIONS: LegalSection[] = [
  {
    heading: "About this list",
    paragraphs: [
      "To provide Podcast Distribution AI we use a small number of third-party companies (\"subprocessors\") that process data on our behalf. We share only the data each provider needs to perform its function, and we require appropriate confidentiality and security commitments from them.",
    ],
  },
  {
    heading: "AI generation",
    paragraphs: ["These providers generate the content you request:"],
    bullets: [
      "OpenAI — script generation, content moderation, and cover-art generation. Receives episode prompts and generated text.",
      "ElevenLabs — text-to-speech and multi-speaker dialogue. Receives the script text to be voiced.",
    ],
  },
  {
    heading: "Payments",
    paragraphs: ["These providers process subscriptions and payments:"],
    bullets: [
      "Stripe — card payments and subscription management. Receives billing and contact details; card data is handled by Stripe directly.",
      "PayPal — PayPal payments and subscription management. Receives billing and contact details.",
    ],
  },
  {
    heading: "Email",
    paragraphs: ["This provider delivers transactional email:"],
    bullets: [
      "Resend — sends verification, password-reset, and episode-ready emails. Receives your name and email address.",
    ],
  },
  {
    heading: "Infrastructure",
    paragraphs: [
      "Podcast Distribution AI runs on managed server infrastructure that stores your account data and generated assets to operate the service. Hosting providers process service data only to provide hosting and do not use it for their own purposes.",
    ],
  },
  {
    heading: "Changes to this list",
    paragraphs: [
      "We may add or replace subprocessors as the service evolves. When we do, we will update this page and the date above. If you have a data-processing agreement with us that requires advance notice of subprocessor changes, we will honor it.",
    ],
  },
  {
    heading: "Contact",
    paragraphs: ["Questions about our subprocessors or data processing? Email privacy@podcastdistributionai.com."],
  },
];

export default function SubprocessorsPage() {
  return (
    <LegalDoc
      title="Subprocessors"
      updated={UPDATED}
      intro="This page lists the third-party providers Podcast Distribution AI relies on to deliver the service and the data each one processes. It supports our Privacy Policy and is provided for transparency."
      sections={SECTIONS}
    />
  );
}
