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: "Terms and Conditions | NCK Car Rental Dubai",
  description: "NCK Car Rental terms and conditions: rental requirements, damage liability, CDW, cancellation policy and more. Last updated June 2026.",
  alternates: { canonical: `${SITE.domain}/terms-and-conditions/` },
};

export default async function TermsPage() {
  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>Terms and Conditions</span>
          </nav>
          <h1 className="text-3xl font-black mb-2">Terms and Conditions</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="space-y-8 text-[#3a3f4b] text-sm leading-relaxed">

          <p className="text-base">
            By completing an online booking or signing a rental agreement with NCK Luxury Car Rental, you agree to all
            terms and conditions set out below. Please read them carefully before proceeding.
          </p>

          <section>
            <h2 className="text-xl font-bold text-[#1a1f2e] mb-3">1. Definitions</h2>
            <ul className="list-disc pl-5 space-y-1">
              <li><strong>Agreement</strong>: the rental agreement between you and NCK Car Rental.</li>
              <li><strong>We / Us / Our</strong>: NCK Luxury Car Rental, Dubai, United Arab Emirates.</li>
              <li><strong>You / Your</strong>: the person named as the renter on the rental agreement.</li>
              <li><strong>Authorized Driver</strong>: minimum age 21, holding a valid UAE or international driving licence.</li>
              <li><strong>Vehicle</strong>: the car rented under this agreement, which may include GPS tracking.</li>
              <li><strong>CDW</strong>: Collision Damage Waiver, an optional cover that reduces your liability for vehicle damage.</li>
              <li><strong>Loss of Use</strong>: calculated as number of days the vehicle is under repair x 80% of the daily rental rate.</li>
            </ul>
          </section>

          <section>
            <h2 className="text-xl font-bold text-[#1a1f2e] mb-3">2. Rental, Indemnity and Warranties</h2>
            <p>
              This is a contract for vehicle rental only. NCK Car Rental may repossess the vehicle without notice if it
              is abandoned or used for illegal purposes. No warranties are made as to the vehicle&apos;s fitness for any
              particular purpose beyond ordinary road use.
            </p>
          </section>

          <section>
            <h2 className="text-xl font-bold text-[#1a1f2e] mb-3">3. Rental Requirements</h2>
            <ul className="list-disc pl-5 space-y-1">
              <li>Minimum age: 21 years (25 years for luxury and exotic vehicles)</li>
              <li>Valid UAE or international driver&apos;s licence</li>
              <li>Valid passport and visa (tourist) or Emirates ID (resident)</li>
              <li>Valid credit card in the renter&apos;s name</li>
              <li>Must meet insurance requirements at time of rental</li>
            </ul>
          </section>

          <section>
            <h2 className="text-xl font-bold text-[#1a1f2e] mb-3">4. Condition and Return of Vehicle</h2>
            <p>
              The vehicle must be returned to the agreed location, on time, and in the same condition as at collection.
            </p>
            <ul className="list-disc pl-5 space-y-1 mt-2">
              <li>More than 1 hour late: half day charge applies</li>
              <li>More than 3 hours late: full day charge applies</li>
              <li>Any service or parts replacement requires prior written approval from NCK</li>
              <li>Return with the same fuel level; AED 150 admin fee + fuel cost if returned low</li>
            </ul>
          </section>

          <section>
            <h2 className="text-xl font-bold text-[#1a1f2e] mb-3">5. Delivery and Collection Service</h2>
            <p>
              A 30-minute grace period applies after dispatch. After that, a charge of AED 200 applies, plus AED 200
              per additional 30 minutes. Delivery is available within Dubai and surrounding emirates; surcharges apply
              outside Dubai.
            </p>
          </section>

          <section>
            <h2 className="text-xl font-bold text-[#1a1f2e] mb-3">6. Responsibility for Damage or Loss</h2>
            <p>
              You are responsible for all damage, loss, or theft, including weather damage and sandstorms, whether
              or not you are at fault. All accidents or theft must be reported immediately to NCK and Dubai Police.
              A police report is mandatory; failure to obtain one results in full personal liability.
            </p>
          </section>

          <section>
            <h2 className="text-xl font-bold text-[#1a1f2e] mb-3">7. Tolls, Salik, Parking and Traffic Violations</h2>
            <ul className="list-disc pl-5 space-y-1">
              <li>Salik toll: AED 5.00 per crossing + AED 5.00/day administration fee</li>
              <li>Unpaid traffic fines: AED 200 administration fee per fine</li>
              <li>Parking violations: fine amount + AED 100 administration fee per violation</li>
            </ul>
          </section>

          <section>
            <h2 className="text-xl font-bold text-[#1a1f2e] mb-3">8. Collision Damage Waiver (CDW)</h2>
            <p>
              CDW waives a portion of your liability for physical damage, subject to a deductible. CDW is void if damage
              results from: fraud, intentional damage, driving under the influence of alcohol or drugs, racing, towing,
              driving outside the UAE without consent, use by an unauthorised driver, criminal activity, off-road use,
              water submersion, or vehicle overloading.
            </p>
          </section>

          <section>
            <h2 className="text-xl font-bold text-[#1a1f2e] mb-3">9. Insurance Coverage</h2>
            <p>
              NCK provides minimum third-party liability cover as required by UAE law. This does not cover damage to
              the rented vehicle (unless CDW is purchased) or your personal property. Coverage is void if the agreement
              is breached or the vehicle is given to an unauthorised driver.
            </p>
          </section>

          <section>
            <h2 className="text-xl font-bold text-[#1a1f2e] mb-3">10. Prohibited Uses</h2>
            <p>The vehicle must not be used for:</p>
            <ul className="list-disc pl-5 space-y-1 mt-2">
              <li>Driving under the influence of alcohol or drugs</li>
              <li>Illegal purposes, racing, or off-road driving (unless expressly authorised)</li>
              <li>Carrying passengers for hire or reward</li>
              <li>Towing or pushing other vehicles</li>
              <li>Driving outside the UAE without prior written consent</li>
              <li>Use by any person not listed as an authorised driver</li>
              <li>Overloading beyond manufacturer specifications</li>
              <li>Smoking inside the vehicle (AED 500 cleaning fee)</li>
              <li>Transporting pets without prior authorisation (AED 300 cleaning fee)</li>
              <li>Any modifications or alterations</li>
            </ul>
          </section>

          <section>
            <h2 className="text-xl font-bold text-[#1a1f2e] mb-3">11. Charges</h2>
            <ul className="list-disc pl-5 space-y-1">
              <li>Security deposit reserved on credit card at the start of the rental</li>
              <li>AED 150 admin fee + fuel cost if vehicle returned with insufficient fuel</li>
              <li>AED 1,000 cleaning fee if vehicle is substantially dirty</li>
              <li>AED 500 cleaning fee for smoking in the vehicle</li>
              <li>AED 300 cleaning fee for pet transportation without authorisation</li>
              <li>GPS, child seat, and additional driver fees as quoted at booking</li>
              <li>Airport delivery/collection fees as applicable</li>
            </ul>
          </section>

          <section>
            <h2 className="text-xl font-bold text-[#1a1f2e] mb-3">12. Security Deposit</h2>
            <p>
              The security deposit is held for the duration of the rental and for up to 30 days after return, to cover
              any outstanding fines, damage charges, or other amounts owed under this agreement.
            </p>
          </section>

          <section>
            <h2 className="text-xl font-bold text-[#1a1f2e] mb-3">13. Your Property</h2>
            <p>
              NCK Car Rental is not liable for any loss or damage to personal property left in the vehicle or in our
              offices.
            </p>
          </section>

          <section>
            <h2 className="text-xl font-bold text-[#1a1f2e] mb-3">14. Extension of Rental Period</h2>
            <p>
              Extensions must be requested at least 24 hours before the agreed return time by emailing{" "}
              <a href={`mailto:${s.email}`} className="text-brand hover:underline">{s.email}</a> or via our website.
              Unauthorised extensions may result in additional charges and may be treated as theft.
            </p>
          </section>

          <section>
            <h2 className="text-xl font-bold text-[#1a1f2e] mb-3">15. Cancellation and Refund Policy</h2>
            <p>
              All bookings are final and non-refundable once confirmed. Please contact us as early as possible if you
              need to make changes to your booking.
            </p>
          </section>

          <section>
            <h2 className="text-xl font-bold text-[#1a1f2e] mb-3">16. Communication and Notifications</h2>
            <p>
              By providing your contact information, you consent to receive booking confirmations, updates, and
              relevant marketing communications by email, SMS, or phone. You may opt out of marketing communications
              at any time by emailing{" "}
              <a href={`mailto:${s.email}`} className="text-brand hover:underline">{s.email}</a>.
              Operational communications related to your booking cannot be opted out of.
            </p>
          </section>

          <section>
            <h2 className="text-xl font-bold text-[#1a1f2e] mb-3">17. Force Majeure</h2>
            <p>
              NCK Car Rental is not liable for any delay or failure in performance caused by circumstances beyond our
              reasonable control, including but not limited to natural disasters, government actions, or pandemics.
            </p>
          </section>

          <section>
            <h2 className="text-xl font-bold text-[#1a1f2e] mb-3">18. Governing Law</h2>
            <p>
              These Terms are governed by the laws of the United Arab Emirates, Emirate of Dubai. Any disputes will
              first be resolved through good-faith negotiation, then mediation, and finally through the courts of Dubai.
            </p>
          </section>

          <section>
            <h2 className="text-xl font-bold text-[#1a1f2e] mb-3">19. Data Protection and Privacy</h2>
            <p>
              Your personal data is handled in accordance with our{" "}
              <Link href="/privacy-policy" className="text-brand hover:underline">Privacy Policy</Link>.
            </p>
          </section>

          <section>
            <h2 className="text-xl font-bold text-[#1a1f2e] mb-3">20. Miscellaneous</h2>
            <p>
              NCK Car Rental shall not be liable for any consequential, special, or punitive damages. If any provision
              of these Terms is found unenforceable, the remaining provisions continue in full force. These Terms
              constitute the entire agreement between you and NCK Car Rental regarding vehicle rental. Any
              modifications must be in writing and signed by an authorised representative of NCK.
            </p>
          </section>

          <section>
            <h2 className="text-xl font-bold text-[#1a1f2e] mb-3">21. Acknowledgment and Acceptance</h2>
            <p>
              By completing an online booking or signing a rental agreement, you acknowledge that you have read,
              understood, and agree to be bound by all terms and conditions set out in this document.
            </p>
            <div className="mt-4 p-4 bg-[#f8f9fc] rounded-xl border border-[#e2e6ed]">
              <p className="font-semibold text-[#1a1f2e] mb-1">NCK Luxury Car Rental</p>
              <p>Dubai, United Arab Emirates</p>
              <p>Email: <a href={`mailto:${s.email}`} className="text-brand hover:underline">{s.email}</a></p>
              <p>Phone: <a href={s.callUrl1} className="text-brand hover:underline">{s.phone1}</a></p>
            </div>
          </section>

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