import React from 'react';
import Link from 'next/link';

export default function CookiesPage() {
  return (
    <div className="min-h-screen bg-gray-50 flex flex-col font-sans">
      <nav className="bg-gray-900 border-b border-gray-800">
        <div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
          <div className="flex justify-between h-20 items-center">
            <Link href="/" className="flex items-center gap-3">
              <div className="w-10 h-10 bg-indigo-600 rounded-xl flex items-center justify-center">
                <span className="text-white font-black text-xl tracking-tighter">CQ</span>
              </div>
              <span className="font-extrabold text-2xl tracking-tight text-white">CK-QR</span>
            </Link>
          </div>
        </div>
      </nav>
      <main className="flex-1 max-w-4xl mx-auto w-full px-6 py-16">
        <h1 className="text-5xl font-black text-gray-900 mb-6">Cookie Policy</h1>
        <p className="text-xl text-gray-500 mb-10">Last updated: August 2026</p>
        <div className="prose prose-lg prose-indigo max-w-none text-gray-700">
          <h2>How we use Cookies</h2>
          <p>
            We use strictly necessary cookies to keep you logged into the dashboard (`token`). We do not use third-party tracking cookies on our marketing site.
          </p>
          <h2>For end-users scanning codes</h2>
          <p>
            When a user scans a CK-QR code, the redirect engine does NOT drop any cookies onto the user's device. The redirect happens statelessly at the edge.
          </p>
        </div>
      </main>
    </div>
  );
}
