import type { Metadata } from "next";
import Link from "next/link";
import { InnerPage, StructuredData } from "@/components/SiteChrome";
import { readConfig } from "@/lib/config";
import { breadcrumbJsonLd } from "@/lib/site";

export const dynamic = "force-dynamic";

export const metadata: Metadata = {
  title: "Copyright and Takedown",
  description: "How to ask Clipwell to stop offering a download for a TikTok post you have the rights to control.",
  alternates: { canonical: "/copyright" },
  openGraph: {
    title: "Copyright and Takedown",
    description: "Send a takedown notice for a public TikTok post.",
    url: "/copyright",
  },
};

export default function CopyrightPage() {
  const email = readConfig().contactEmail;
  return (
    <main id="main">
      <StructuredData
        data={breadcrumbJsonLd([{ name: "Home", path: "/" }, { name: "Copyright and takedown", path: "/copyright" }])}
      />
      <InnerPage
        title="Copyright and takedown"
        lede="Clipwell does not host a library of TikTok videos. It can still stop offering a fresh download for a specific link after a valid notice."
      >
        <p>
          If you own the rights in a post, or you are authorized to act for the owner, send a notice through the <Link href="/contact">contact page</Link>
          {email ? <> or by email to {email}</> : null}. Include:
        </p>
        <ul>
          <li>The TikTok URL of the post.</li>
          <li>A description of the work and why you are the rights holder or their agent.</li>
          <li>Your name and a reply email.</li>
          <li>A statement that you believe the use is not authorized.</li>
          <li>A statement that the notice is accurate.</li>
        </ul>
        <p>
          After a valid notice, the operator can refuse new processing for that link. Already downloaded copies on someone else’s device are outside this site’s control. Clipwell is not affiliated with TikTok or ByteDance, and this page is not a ByteDance reporting form.
        </p>
      </InnerPage>
    </main>
  );
}
