import type { Metadata } from "next";
import { LegalDocument } from "@/components/legal/LegalDocument";
import { legalConfig } from "@/lib/legal/config";
import { getDataDeletionSections } from "@/lib/legal/data-deletion-sections";

export const metadata: Metadata = {
  title: "Data Deletion | Postvertise",
  description:
    "How to disconnect social accounts and delete your Postvertise account, including self-service options in the dashboard.",
};

export default function DataDeletionPage() {
  return (
    <LegalDocument
      intro="Instructions for disconnecting social accounts and deleting your Postvertise account. Authenticated Creators and Brands can delete their account from Dashboard → Settings; Creators can also disconnect individual social accounts from Dashboard → Social Accounts."
      kicker="Legal"
      lastUpdated={legalConfig.documentsLastUpdated}
      sections={getDataDeletionSections()}
      title="Data Deletion"
    />
  );
}
