import type { Metadata } from "next"
import Link from "next/link"
import { Clock, Calendar, ArrowLeft } from "lucide-react"
import { Button } from "@/components/ui/button"

export const metadata: Metadata = {
  title: "Privacy Policy | Teertham",
  description:
    "Learn how Teertham collects, uses, and protects your personal information. Our comprehensive privacy policy outlines your rights and our commitment to data security.",
  openGraph: {
    title: "Privacy Policy | Teertham",
    description:
      "Learn how Teertham collects, uses, and protects your personal information. Our comprehensive privacy policy outlines your rights and our commitment to data security.",
    type: "website",
  },
  twitter: {
    card: "summary_large_image",
    title: "Privacy Policy | Teertham",
    description:
      "Learn how Teertham collects, uses, and protects your personal information. Our comprehensive privacy policy outlines your rights and our commitment to data security.",
  },
}

export default function PrivacyPolicyPage() {
  const readTime = "8 min read"
  const lastUpdated = "December 15, 2024"

  return (
    <main className="min-h-screen bg-gradient-to-br from-background via-background to-muted/20">
      <div className="mx-auto max-w-4xl px-4 py-12 md:py-16 lg:py-20">
        <Link href="/">
          <Button variant="ghost" size="sm" className="mb-8 -ml-2">
            <ArrowLeft className="mr-2 h-4 w-4" />
            Back to Home
          </Button>
        </Link>

        <div className="bg-card rounded-2xl shadow-xl border border-border/50 overflow-hidden">
          <header className="px-6 md:px-10 pt-10 pb-8 bg-gradient-to-br from-primary/5 via-primary/10 to-primary/5">
            <h1 className="text-4xl md:text-5xl lg:text-6xl font-bold tracking-tight text-balance mb-6">
              Privacy Policy
            </h1>

            <div className="flex flex-wrap items-center gap-4 text-sm text-muted-foreground">
              <div className="flex items-center gap-1.5">
                <Clock className="h-4 w-4" aria-hidden="true" />
                <span>{readTime}</span>
              </div>
              <div className="flex items-center gap-1.5">
                <Calendar className="h-4 w-4" aria-hidden="true" />
                <span>Last updated: {lastUpdated}</span>
              </div>
            </div>
          </header>

          <article className="px-6 md:px-10 py-10 prose prose-slate dark:prose-invert prose-headings:font-bold prose-headings:tracking-tight prose-h2:text-3xl prose-h2:mt-12 prose-h2:mb-6 prose-h3:text-xl prose-h3:mt-8 prose-h3:mb-4 prose-p:text-foreground/80 prose-p:leading-relaxed prose-li:text-foreground/80 prose-strong:text-foreground max-w-none">
            <section>
              <p className="text-lg leading-relaxed">
                At Teertham, we are committed to protecting your privacy and ensuring the security of your personal
                information. This Privacy Policy explains how we collect, use, disclose, and safeguard your data when
                you use our platform for vehicle bookings, hotel reservations, spiritual packages, and custom travel
                services.
              </p>
            </section>

            <section>
              <h2>1. Information We Collect</h2>

              <h3>1.1 Personal Information</h3>
              <p>When you register or use our services, we may collect the following personal information:</p>
              <ul>
                <li>Full name, email address, and phone number</li>
                <li>Date of birth and government-issued ID details</li>
                <li>Billing and payment information</li>
                <li>Travel preferences and booking history</li>
                <li>Communication preferences and feedback</li>
              </ul>

              <h3>1.2 Automatically Collected Information</h3>
              <p>We automatically collect certain information when you visit our platform:</p>
              <ul>
                <li>IP address, browser type, and device information</li>
                <li>Pages viewed, time spent on pages, and navigation paths</li>
                <li>Referral sources and exit pages</li>
                <li>Cookies and similar tracking technologies</li>
              </ul>

              <h3>1.3 Location Information</h3>
              <p>
                With your permission, we may collect precise location data to provide location-based services such as
                nearby vehicle availability and hotel recommendations.
              </p>
            </section>

            <section>
              <h2>2. How We Use Your Information</h2>
              <p>We use your personal information for the following purposes:</p>
              <ul>
                <li>
                  <strong>Service Delivery:</strong> To process bookings, facilitate payments, and provide customer
                  support
                </li>
                <li>
                  <strong>Communication:</strong> To send booking confirmations, updates, and important service
                  notifications
                </li>
                <li>
                  <strong>Personalization:</strong> To customize your experience and provide relevant recommendations
                </li>
                <li>
                  <strong>Improvement:</strong> To analyze usage patterns and enhance our platform&apos;s functionality
                </li>
                <li>
                  <strong>Marketing:</strong> To send promotional offers and newsletters (with your consent)
                </li>
                <li>
                  <strong>Legal Compliance:</strong> To comply with legal obligations and protect our rights
                </li>
              </ul>
            </section>

            <section>
              <h2>3. Information Sharing and Disclosure</h2>

              <h3>3.1 Service Providers</h3>
              <p>
                We share your information with trusted third-party service providers who assist us in operating our
                platform, including payment processors, vehicle operators, hotel partners, and technology service
                providers.
              </p>

              <h3>3.2 Business Partners</h3>
              <p>
                When you book services through our platform, we share necessary information with our partner agents,
                hotel properties, and vehicle operators to fulfill your bookings.
              </p>

              <h3>3.3 Legal Requirements</h3>
              <p>
                We may disclose your information when required by law, court order, or governmental regulation, or to
                protect the rights, property, or safety of Teertham, our users, or others.
              </p>

              <h3>3.4 Business Transfers</h3>
              <p>
                In the event of a merger, acquisition, or sale of assets, your information may be transferred to the
                acquiring entity.
              </p>
            </section>

            <section>
              <h2>4. Data Security</h2>
              <p>
                We implement industry-standard security measures to protect your personal information from unauthorized
                access, disclosure, alteration, or destruction. These measures include:
              </p>
              <ul>
                <li>Encryption of sensitive data during transmission (SSL/TLS)</li>
                <li>Secure data storage with access controls and authentication</li>
                <li>Regular security audits and vulnerability assessments</li>
                <li>Employee training on data protection and privacy practices</li>
              </ul>
              <p>
                However, no method of transmission or storage is 100% secure, and we cannot guarantee absolute security.
              </p>
            </section>

            <section>
              <h2>5. Your Rights and Choices</h2>

              <h3>5.1 Access and Correction</h3>
              <p>
                You have the right to access, update, or correct your personal information at any time through your
                account settings or by contacting us.
              </p>

              <h3>5.2 Data Deletion</h3>
              <p>
                You may request deletion of your personal information, subject to legal and contractual obligations. We
                will retain certain information as required by law or for legitimate business purposes.
              </p>

              <h3>5.3 Marketing Communications</h3>
              <p>
                You can opt out of promotional emails by clicking the unsubscribe link in any marketing email or by
                updating your communication preferences in your account.
              </p>

              <h3>5.4 Cookies and Tracking</h3>
              <p>
                You can control cookie preferences through your browser settings. Note that disabling certain cookies
                may affect platform functionality.
              </p>
            </section>

            <section>
              <h2>6. Children&apos;s Privacy</h2>
              <p>
                Our services are not intended for children under 13 years of age. We do not knowingly collect personal
                information from children. If you believe we have collected information from a child, please contact us
                immediately.
              </p>
            </section>

            <section>
              <h2>7. International Data Transfers</h2>
              <p>
                Your information may be transferred to and processed in countries other than your country of residence.
                These countries may have different data protection laws. We ensure appropriate safeguards are in place
                to protect your information.
              </p>
            </section>

            <section>
              <h2>8. Changes to This Privacy Policy</h2>
              <p>
                We may update this Privacy Policy periodically to reflect changes in our practices or legal
                requirements. We will notify you of material changes by posting the updated policy on our platform and
                updating the &quot;Last Updated&quot; date.
              </p>
            </section>

            <section>
              <h2>9. Contact Us</h2>
              <p>
                If you have questions, concerns, or requests regarding this Privacy Policy or our data practices, please
                contact us:
              </p>
              <ul>
                <li>
                  <strong>Email:</strong> privacy@teertham.com
                </li>
                <li>
                  <strong>Phone:</strong> +91 123 456 7890
                </li>
                <li>
                  <strong>Address:</strong> 123 Teertham Street, Mumbai, Maharashtra 400001, India
                </li>
              </ul>
            </section>
          </article>
        </div>
      </div>
    </main>
  )
}
