import { LegalPageLayout } from "@/components/LegalPageLayout";
import { LEGAL_OPERATOR } from "@/lib/legal/constants";
import { DOCS_URL, GITEA_URL } from "@/lib/plans";

export default function TermsPage() {
  return (
    <LegalPageLayout title="Terms of Use">
      <p>
        Songs2VID OSS is open-source, <strong>payment-free, self-hosted software</strong>. These
        terms describe use of the software and of instances that run it. They are{" "}
        <strong>not</strong> the paid cloud Terms of Service for songs2vid.com (a separate hosted
        product with its own billing and policies).
      </p>

      <h2>1. Software license and warranty</h2>
      <p>
        The source is provided under the license in the repository <code>LICENSE</code> file. The
        software is provided <strong>without warranty</strong> of any kind. The operator of each
        instance is responsible for availability, security, backups, configuration, and who may
        sign in.
      </p>

      <h2>2. No paid features in this edition</h2>
      <p>
        This edition has no Stripe integration, subscriptions, credits, pricing pages, or paywalls.
        Full layout, watermark, API, and playlist features are available to signed-in users of the
        instance. Any paid offering lives only on the separate hosted SaaS product.
      </p>

      <h2>3. Your content and YouTube</h2>
      <p>
        You are solely responsible for media you upload and for compliance with copyright law and
        YouTube&apos;s terms. Connecting Google/YouTube authorizes the instance to upload on your
        behalf within the scopes granted.
      </p>

      <h2>4. Acceptable use</h2>
      <p>
        Do not use the software to infringe rights, abuse YouTube or Google APIs, or circumvent
        another party&apos;s security. Operators may suspend access on their instances.
      </p>

      <h2>5. Contact</h2>
      <p>
        Package / project contact:{" "}
        <a href={`mailto:${LEGAL_OPERATOR.email}`}>{LEGAL_OPERATOR.email}</a>. Instance-specific
        support: contact your operator. Docs: <a href={DOCS_URL}>{DOCS_URL}</a>. Source:{" "}
        <a href={GITEA_URL}>{GITEA_URL}</a>.
      </p>
    </LegalPageLayout>
  );
}
