import type { Metadata } from "next";
import { LegalDocument } from "@/components/legal/LegalDocument";
import { legalConfig } from "@/lib/legal/config";
import { getTermsSections } from "@/lib/legal/terms-sections";

export const metadata: Metadata = {
  title: "Terms of Service | Postvertise",
  description:
    "Terms of Service for using Postvertise as a Creator or Brand, including accounts, campaigns, and social integrations.",
};

export default function TermsPage() {
  return (
    <LegalDocument
      intro="These Terms govern use of the current Postvertise product: accounts, profiles, social connections, creator discovery, campaign workflows, deliverable review, and Stripe-processed marketplace payments. Features that are not implemented are called out explicitly."
      kicker="Legal"
      lastUpdated={legalConfig.documentsLastUpdated}
      sections={getTermsSections()}
      title="Terms of Service"
    />
  );
}
