import { Metadata } from 'next'
import { Header } from '@/components/layout/header'
import { Footer } from '@/components/layout/footer'

export const metadata: Metadata = {
  title: 'Privacy Policy',
  description: 'TwoTwentyTwo Privacy Policy — how we collect, use, and protect your personal information.',
}

export default function PrivacyPage() {
  return (
    <main className="min-h-screen bg-background text-foreground">
      <Header />

      <section className="relative bg-white pt-28 pb-12 overflow-hidden">
        <div className="max-w-4xl mx-auto px-6 lg:px-8">
          <p className="text-sm font-semibold text-blue-600 uppercase tracking-wider mb-3">Legal</p>
          <h1 className="text-4xl sm:text-5xl font-bold text-[#081B33] mb-4">Privacy Policy</h1>
          <p className="text-sm text-slate-400">Last updated: January 2025</p>
        </div>
      </section>

      <section className="py-16 bg-slate-50">
        <div className="max-w-4xl mx-auto px-6 lg:px-8 prose prose-slate max-w-none">
          <div className="bg-white rounded-2xl border border-slate-200 p-8 md:p-12 space-y-8">
            <div>
              <h2 className="text-xl font-bold text-[#081B33] mb-3">1. Introduction</h2>
              <p className="text-sm text-slate-600 leading-relaxed">
                TwoTwentyTwo ("we," "our," or "us") respects your privacy. This Privacy Policy explains how we collect, use, disclose, and safeguard your information when you visit our website and use our services.
              </p>
            </div>

            <div>
              <h2 className="text-xl font-bold text-[#081B33] mb-3">2. Information We Collect</h2>
              <p className="text-sm text-slate-600 leading-relaxed mb-3">We may collect information about you in a variety of ways:</p>
              <ul className="text-sm text-slate-600 leading-relaxed space-y-2 list-disc pl-5">
                <li><strong>Personal Data:</strong> Name, email address, phone number, company name, and other contact information you provide.</li>
                <li><strong>Usage Data:</strong> Information about how you use our website, including IP address, browser type, pages visited, and time spent.</li>
                <li><strong>Cookies:</strong> We use cookies to enhance your experience and analyze website traffic.</li>
              </ul>
            </div>

            <div>
              <h2 className="text-xl font-bold text-[#081B33] mb-3">3. How We Use Your Information</h2>
              <ul className="text-sm text-slate-600 leading-relaxed space-y-2 list-disc pl-5">
                <li>To provide and maintain our services</li>
                <li>To communicate with you about our services</li>
                <li>To improve our website and services</li>
                <li>To send you marketing communications (with your consent)</li>
                <li>To comply with legal obligations</li>
              </ul>
            </div>

            <div>
              <h2 className="text-xl font-bold text-[#081B33] mb-3">4. Data Security</h2>
              <p className="text-sm text-slate-600 leading-relaxed">
                We implement appropriate technical and organizational measures to protect your personal information. However, no method of transmission over the Internet is 100% secure.
              </p>
            </div>

            <div>
              <h2 className="text-xl font-bold text-[#081B33] mb-3">5. Your Rights</h2>
              <p className="text-sm text-slate-600 leading-relaxed">
                You have the right to access, correct, or delete your personal data. You may also opt out of marketing communications at any time by contacting us.
              </p>
            </div>

            <div>
              <h2 className="text-xl font-bold text-[#081B33] mb-3">6. Contact Us</h2>
              <p className="text-sm text-slate-600 leading-relaxed">
                If you have questions about this Privacy Policy, please contact us at <a href="mailto:rsingh@consult222.com" className="text-blue-600 hover:underline">rsingh@consult222.com</a>.
              </p>
            </div>
          </div>
        </div>
      </section>

      <Footer />
    </main>
  )
}
