import type { Metadata } from "next";
import Link from "next/link";
import { SITE } from "@/lib/seo";
import { getSiteSettings } from "@/lib/site-settings";

export const metadata: Metadata = {
  title: "Privacy Policy | NCK Car Rental Dubai",
  description: "NCK Car Rental privacy policy. How we collect, use, and protect your personal data. Last updated June 2026.",
  alternates: { canonical: `${SITE.domain}/privacy-policy/` },
};

export default async function PrivacyPolicyPage() {
  const s = await getSiteSettings()
  return (
    <>
      <div className="bg-navy-900 text-white py-10">
        <div className="section-wrap">
          <nav className="flex items-center gap-1.5 text-xs text-navy-300 mb-3">
            <Link href="/" className="hover:text-white">Home</Link>
            <span>/</span>
            <span>Privacy Policy</span>
          </nav>
          <h1 className="text-3xl font-black mb-2">Privacy Policy</h1>
          <p className="text-navy-300 text-sm">Last updated: June 28, 2026</p>
        </div>
      </div>

      <div className="section-wrap py-12 max-w-3xl">
        <div className="prose prose-sm max-w-none text-[#3a3f4b] space-y-8">

          <section>
            <h2 className="text-xl font-bold text-[#1a1f2e] mb-3">Interpretation and Definitions</h2>
            <p>
              Words with initial capital letters have meanings defined under the following conditions.
              These definitions apply whether they appear in singular or plural.
            </p>
            <ul className="list-disc pl-5 space-y-1 mt-3 text-sm">
              <li><strong>Company</strong> refers to NCK Luxury Car Rental, Dubai, United Arab Emirates.</li>
              <li><strong>Service</strong> refers to the website nckcarrental.com.</li>
              <li><strong>Personal Data</strong> means any information relating to an identified or identifiable natural person.</li>
              <li><strong>Usage Data</strong> refers to data collected automatically when using the Service.</li>
              <li><strong>Cookies</strong> are small files placed on your device by the website.</li>
              <li><strong>Country</strong> refers to the United Arab Emirates.</li>
            </ul>
          </section>

          <section>
            <h2 className="text-xl font-bold text-[#1a1f2e] mb-3">Collecting and Using Your Personal Data</h2>
            <h3 className="text-base font-semibold text-[#1a1f2e] mb-2">Types of Data Collected</h3>
            <p className="text-sm mb-2">While using our Service, we may collect the following personally identifiable information:</p>
            <ul className="list-disc pl-5 space-y-1 text-sm">
              <li>Email address and full name</li>
              <li>Phone number and postal address</li>
              <li>Driver&apos;s licence and passport details</li>
              <li>Payment card information (processed securely by third parties)</li>
              <li>Usage data (IP address, browser type, pages visited, time spent)</li>
            </ul>
            <h3 className="text-base font-semibold text-[#1a1f2e] mt-4 mb-2">Cookies</h3>
            <p className="text-sm">
              We use Session Cookies (deleted when you close your browser) and Persistent Cookies (remain until expiry or deletion).
              Types used: Necessary, Functionality, Tracking/Performance, and Advertising (third party).
              You can instruct your browser to refuse all cookies, but some features of the Service may not function correctly.
            </p>
          </section>

          <section>
            <h2 className="text-xl font-bold text-[#1a1f2e] mb-3">Use of Your Personal Data</h2>
            <p className="text-sm mb-2">NCK Car Rental uses your personal data to:</p>
            <ul className="list-disc pl-5 space-y-1 text-sm">
              <li>Provide and maintain our Service</li>
              <li>Manage your account and rental bookings</li>
              <li>Fulfil rental agreements and process payments</li>
              <li>Contact you with booking confirmations, updates, and promotional offers</li>
              <li>Analyse usage to improve the Service</li>
              <li>Manage business transfers or partnerships</li>
            </ul>
          </section>

          <section>
            <h2 className="text-xl font-bold text-[#1a1f2e] mb-3">Sharing Your Personal Data</h2>
            <p className="text-sm">
              We may share your personal data with service providers who assist us in operating the website,
              conducting our business, or serving our users, subject to confidentiality obligations.
              We may also disclose data to comply with legal obligations, protect our rights, or prevent fraud.
              We will not sell your personal data to third parties.
            </p>
          </section>

          <section>
            <h2 className="text-xl font-bold text-[#1a1f2e] mb-3">Retention of Your Personal Data</h2>
            <p className="text-sm">
              We retain your personal data only for as long as necessary for the purposes set out in this policy,
              and to comply with our legal obligations. Usage data is generally retained for a shorter period,
              unless used to strengthen security or improve functionality.
            </p>
          </section>

          <section>
            <h2 className="text-xl font-bold text-[#1a1f2e] mb-3">Security</h2>
            <p className="text-sm">
              We use commercially reasonable measures to protect your personal data. However, no method of
              transmission over the Internet or electronic storage is 100% secure. We strive to protect your
              data but cannot guarantee absolute security.
            </p>
          </section>

          <section>
            <h2 className="text-xl font-bold text-[#1a1f2e] mb-3">Analytics</h2>
            <p className="text-sm">
              We use Google Analytics to monitor and analyse traffic to our Service. Google may use the
              collected data to contextualise and personalise ads on its own network. You can opt out by
              installing the Google Analytics opt-out browser add-on.
            </p>
          </section>

          <section>
            <h2 className="text-xl font-bold text-[#1a1f2e] mb-3">Payments</h2>
            <p className="text-sm">
              Payments are processed by third-party providers. We do not store or have access to your payment card
              details. Our providers comply with PCI-DSS standards.
            </p>
          </section>

          <section>
            <h2 className="text-xl font-bold text-[#1a1f2e] mb-3">Children&apos;s Privacy</h2>
            <p className="text-sm">
              Our Service is not directed at anyone under 18 years of age. We do not knowingly collect personal
              data from minors. If you are a parent or guardian and believe your child has provided us with
              personal data, please contact us so we can take appropriate action.
            </p>
          </section>

          <section>
            <h2 className="text-xl font-bold text-[#1a1f2e] mb-3">Changes to This Policy</h2>
            <p className="text-sm">
              We may update this Privacy Policy from time to time. We will notify you of any changes by posting
              the new policy on this page and updating the &quot;Last updated&quot; date at the top.
              Significant changes will also be communicated by email.
            </p>
          </section>

          <section>
            <h2 className="text-xl font-bold text-[#1a1f2e] mb-3">Contact Us</h2>
            <p className="text-sm">
              If you have any questions about this Privacy Policy, please contact us:
            </p>
            <ul className="list-disc pl-5 space-y-1 text-sm mt-2">
              <li>Email: <a href={`mailto:${s.email}`} className="text-brand hover:underline">{s.email}</a></li>
              <li>Phone: <a href={s.callUrl1} className="text-brand hover:underline">{s.phone1}</a></li>
              <li>Address: {s.address}</li>
            </ul>
          </section>

        </div>
      </div>
    </>
  );
}
