import type { Metadata } from "next";

export const metadata: Metadata = {
  title: "Cookie Policy",
  description:
    "AdultWorld cookie policy. Learn how we use cookies and similar technologies on our platform.",
};

export default function CookiesPage() {
  return (
    <div className="max-w-3xl mx-auto space-y-6">
      <h1 className="text-2xl font-bold">Cookie Policy</h1>
      <p className="text-text-muted text-sm">Last updated: 26 March 2026</p>

      <div className="bg-surface rounded-lg p-6 space-y-4 text-text-muted">
        <p>
          This Cookie Policy explains how AdultWorld (&quot;we&quot;,
          &quot;us&quot;, or &quot;our&quot;) uses cookies and similar tracking
          technologies when you visit or interact with our platform at
          adultworld.ai. By continuing to use our website, you consent to the
          use of cookies as described in this policy.
        </p>

        <h2 className="text-lg font-semibold text-gold">What Are Cookies</h2>
        <p>
          Cookies are small text files that are stored on your device (computer,
          tablet, or mobile phone) when you visit a website. They are widely
          used to make websites work efficiently, provide a better browsing
          experience, and supply information to the owners of the site. Cookies
          can be &quot;persistent&quot; (remaining on your device until they
          expire or you delete them) or &quot;session&quot; cookies (deleted
          when you close your browser).
        </p>

        <h2 className="text-lg font-semibold text-gold">Cookies We Use</h2>
        <p>
          We use the following cookies that are essential to the operation and
          security of our platform:
        </p>
        <ul className="list-disc list-inside space-y-2 ml-2">
          <li>
            <strong className="text-text">age_verified_uk</strong> &mdash; Used
            to record that you have completed age verification as required by UK
            law. This cookie persists for 1 year so that you do not need to
            re-verify on every visit.
          </li>
          <li>
            <strong className="text-text">locale</strong> &mdash; Stores your
            preferred language setting so the platform displays content in your
            chosen language across sessions.
          </li>
          <li>
            <strong className="text-text">__Host-authjs.csrf-token</strong>{" "}
            &mdash; A security cookie used for Cross-Site Request Forgery
            (CSRF) protection. It ensures that form submissions and
            authenticated requests originate from our platform and are not
            forged by malicious third parties.
          </li>
          <li>
            <strong className="text-text">
              __Secure-authjs.callback-url
            </strong>{" "}
            &mdash; Stores the authentication callback URL during the sign-in
            process, ensuring you are redirected to the correct page after
            logging in.
          </li>
          <li>
            <strong className="text-text">Session cookies</strong> &mdash;
            Temporary cookies that maintain your logged-in state and keep your
            session active as you navigate the platform. These are deleted when
            you close your browser.
          </li>
          <li>
            <strong className="text-text">cookie_consent</strong> &mdash;
            Records whether you have acknowledged and accepted our cookie
            policy, preventing the consent banner from appearing repeatedly.
          </li>
        </ul>

        <h2 className="text-lg font-semibold text-gold">
          Third-Party Cookies
        </h2>
        <p>
          In addition to our own cookies, certain third-party services we
          integrate with may place cookies on your device:
        </p>
        <ul className="list-disc list-inside space-y-2 ml-2">
          <li>
            <strong className="text-text">Stripe</strong> &mdash; Our payment
            processor Stripe uses cookies to process transactions securely,
            detect fraud, and comply with financial regulations. These cookies
            are essential for purchasing credits and managing subscriptions on
            our platform. You can review Stripe&apos;s cookie policy at{" "}
            <a
              href="https://stripe.com/privacy"
              target="_blank"
              rel="noopener noreferrer"
              className="text-gold hover:underline"
            >
              stripe.com/privacy
            </a>
            .
          </li>
          <li>
            <strong className="text-text">Cloudflare Turnstile</strong> &mdash;
            We use Cloudflare Turnstile as a bot protection mechanism to prevent
            automated abuse of our platform. Turnstile may set cookies to
            distinguish human visitors from bots. You can review Cloudflare&apos;s
            privacy policy at{" "}
            <a
              href="https://www.cloudflare.com/privacypolicy/"
              target="_blank"
              rel="noopener noreferrer"
              className="text-gold hover:underline"
            >
              cloudflare.com/privacypolicy
            </a>
            .
          </li>
        </ul>

        <h2 className="text-lg font-semibold text-gold">
          How to Manage Cookies
        </h2>
        <p>
          Most web browsers allow you to control cookies through their settings.
          You can typically find cookie management options under the
          &quot;Privacy&quot; or &quot;Security&quot; section of your
          browser&apos;s preferences. Common actions include:
        </p>
        <ul className="list-disc list-inside space-y-2 ml-2">
          <li>Viewing and deleting individual cookies</li>
          <li>Blocking all or specific third-party cookies</li>
          <li>
            Configuring your browser to notify you when a cookie is set
          </li>
          <li>Deleting all cookies when you close your browser</li>
        </ul>
        <p>
          For detailed instructions, consult the help documentation for your
          specific browser (Chrome, Firefox, Safari, Edge, etc.).
        </p>

        <h2 className="text-lg font-semibold text-gold">
          Impact of Disabling Cookies
        </h2>
        <p>
          If you choose to disable or block cookies, please be aware that some
          parts of our platform may not function correctly. Specifically,
          disabling essential cookies will prevent you from logging in,
          completing age verification, processing payments, and maintaining your
          language preferences. We strongly recommend keeping essential cookies
          enabled for the best experience.
        </p>

        <h2 className="text-lg font-semibold text-gold">
          Updates to This Policy
        </h2>
        <p>
          We may update this Cookie Policy from time to time to reflect changes
          in the cookies we use or for other operational, legal, or regulatory
          reasons. We encourage you to review this page periodically. The
          &quot;Last updated&quot; date at the top of this policy indicates when
          it was most recently revised.
        </p>

        <h2 className="text-lg font-semibold text-gold">Contact Us</h2>
        <p>
          If you have any questions about our use of cookies or this Cookie
          Policy, please contact us at{" "}
          <a
            href="mailto:hello@adultworld.ai"
            className="text-gold hover:underline"
          >
            hello@adultworld.ai
          </a>
          .
        </p>
      </div>
    </div>
  );
}
