import type { Metadata } from "next";
import Link from "next/link";
import { InnerPage, StructuredData } from "@/components/SiteChrome";
import { breadcrumbJsonLd } from "@/lib/site";

export const metadata: Metadata = {
  title: "Terms of Use",
  description: "The rules for using Clipwell, including public posts only and no guarantee of watermark removal or resolution.",
  alternates: { canonical: "/terms" },
  openGraph: { title: "Terms of Use", description: "Rules for using the Clipwell TikTok downloader.", url: "/terms" },
};

export default function TermsPage() {
  return (
    <main id="main">
      <StructuredData data={breadcrumbJsonLd([{ name: "Home", path: "/" }, { name: "Terms of Use", path: "/terms" }])} />
      <InnerPage title="Terms of Use" lede="By using Clipwell you agree to use it only for public posts you have a right to save.">
        <h2>The service</h2>
        <p>
          Clipwell provides a form that checks a TikTok link and, when configured, asks a media service for public files. Availability depends on that service. A missing provider, a private post, or an upstream error means no file is offered.
        </p>
        <h2>Acceptable use</h2>
        <ul>
          <li>Submit public TikTok video or photo links.</li>
          <li>Do not try to bypass private-account restrictions, login walls, or access controls.</li>
          <li>Do not send links you are not allowed to download.</li>
          <li>Do not overload the service or attempt to turn the file proxy into an open fetcher for arbitrary websites.</li>
        </ul>
        <h2>No extra promises</h2>
        <p>
          Clipwell does not promise that a watermark will be removed, that a file will be a specific resolution, or that every public post can be retrieved. Buttons reflect the provider response.
        </p>
        <h2>Intellectual property</h2>
        <p>
          Videos and music remain the property of their rights holders. See the <Link href="/copyright">copyright and takedown policy</Link> if you need a download stopped.
        </p>
        <h2>Liability</h2>
        <p>
          The site is provided as available. To the extent the law allows, the operator is not liable for loss caused by a failed download, an expired link, or content supplied by a third-party media service.
        </p>
      </InnerPage>
    </main>
  );
}
