import type { Metadata } from "next";
import Link from "next/link";
import { Clock, Calendar } from "lucide-react";

// export const metadata: Metadata = {
//   title: "User Terms & Conditions | Ameera Holidays",
//   description:
//     "Read Ameera Holidays's user terms and conditions. Understand your rights and responsibilities when using our platform for vehicle bookings, hotel reservations, and travel packages.",
//   openGraph: {
//     title: "User Terms & Conditions | Ameera Holidays",
//     description:
//       "Read Ameera Holidays's user terms and conditions. Understand your rights and responsibilities when using our platform for vehicle bookings, hotel reservations, and travel packages.",
//     type: "website",
//   },
//   twitter: {
//     card: "summary_large_image",
//     title: "User Terms & Conditions | Ameera Holidays",
//     description:
//       "Read Ameera Holidays's user terms and conditions. Understand your rights and responsibilities when using our platform for vehicle bookings, hotel reservations, and travel packages.",
//   },
// };

export default function UserTermsPage() {
  const readTime = "10 min read";
  const lastUpdated = "December 15, 2024";

  return (
    <main className="min-h-screen bg-[#f7f9fb]">
      <div className="w-full">
        {/* Header */}
        <header className="w-full rounded-2xl bg-secondary-foreground/10 px-4 py-10 md:px-10 md:py-14 lg:px-16">
          <div className="mx-auto max-w-4xl py-2 text-center md:py-6">
            <h1 className="text-balance text-4xl font-bold tracking-tight text-slate-950 md:text-6xl">
              User Terms &{" "}
              <span className="frontend-text-gradient">Conditions</span>
            </h1>
            <p className="mx-auto mt-5 max-w-3xl text-lg leading-relaxed text-slate-700 md:text-xl md:leading-10">
              Find answers to the most common questions about using ameera
              holidays. If you can't find what you're looking for, feel free to
              contact our support team.
            </p>

            <div className="mt-5 flex flex-wrap items-center justify-center gap-3">
              <span className="inline-flex items-center gap-2 rounded-full border border-slate-300/80 bg-white/70 px-4 py-1.5 text-sm font-medium text-slate-700 backdrop-blur-sm md:text-base">
                <Clock className="h-4 w-4 text-primary" aria-hidden="true" />
                {readTime}
              </span>
              <span className="inline-flex items-center gap-2 rounded-full border border-slate-300/80 bg-white/70 px-4 py-1.5 text-sm font-medium text-slate-700 backdrop-blur-sm md:text-base">
                <Calendar className="h-4 w-4 text-primary" aria-hidden="true" />
                Last updated: {lastUpdated}
              </span>
            </div>
          </div>
        </header>
        <div className="container mx-auto p-4 md:p-6 lg:p-8">
          {/* Content */}
          <article className="mt-8 rounded-2xl border border-slate-200 bg-white px-6 py-8 shadow-sm 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 md:px-10 md:py-10">
            <section>
              <p className="text-lg leading-relaxed">
                Welcome to Ameera Holidays. These Terms and Conditions govern
                your use of our platform and services. By accessing or using
                Ameera Holidays, you agree to be bound by these terms. Please
                read them carefully before using our services.
              </p>
            </section>

            <section>
              <h2>1. Acceptance of Terms</h2>
              <p>
                By creating an account, accessing our platform, or using our
                services, you acknowledge that you have read, understood, and
                agree to be bound by these Terms and Conditions, along with our
                Privacy Policy and other applicable policies.
              </p>
              <p>
                If you do not agree with these terms, you must not use our
                services.
              </p>
            </section>

            <section>
              <h2>2. Eligibility</h2>
              <p>To use Ameera Holidays&apos;s services, you must:</p>
              <ul>
                <li>
                  Be at least 18 years of age or the legal age of majority in
                  your jurisdiction
                </li>
                <li>Have the legal capacity to enter into binding contracts</li>
                <li>
                  Provide accurate, complete, and up-to-date registration
                  information
                </li>
                <li>
                  Not be prohibited from using our services under applicable
                  laws
                </li>
              </ul>
            </section>

            <section>
              <h2>3. User Account</h2>

              <h3>3.1 Account Creation</h3>
              <p>
                To access certain features, you must create an account. You are
                responsible for maintaining the confidentiality of your account
                credentials and for all activities under your account.
              </p>

              <h3>3.2 Account Security</h3>
              <p>You agree to:</p>
              <ul>
                <li>Use a strong, unique password for your account</li>
                <li>
                  Notify us immediately of any unauthorized access or security
                  breach
                </li>
                <li>Not share your account credentials with others</li>
                <li>Log out from your account at the end of each session</li>
              </ul>

              <h3>3.3 Account Suspension</h3>
              <p>
                We reserve the right to suspend or terminate your account if you
                violate these terms, engage in fraudulent activity, or for any
                other reason at our discretion.
              </p>
            </section>

            <section>
              <h2>4. Booking Services</h2>

              <h3>4.1 Booking Process</h3>
              <p>
                When you make a booking through Ameera Holidays, you enter into
                a contract with the service provider (vehicle operator, hotel,
                or tour operator). Ameera Holidays acts as an intermediary
                platform facilitating these transactions.
              </p>

              <h3>4.2 Booking Confirmation</h3>
              <p>
                All bookings are subject to availability and confirmation. You
                will receive a booking confirmation via email or SMS once your
                booking is successfully processed.
              </p>

              <h3>4.3 Accuracy of Information</h3>
              <p>
                You are responsible for ensuring that all information provided
                during booking (including names, dates, contact details) is
                accurate and complete. Errors may result in booking
                modifications, cancellations, or additional charges.
              </p>

              <h3>4.4 Payment</h3>
              <p>
                Payment must be made through our approved payment methods. All
                prices are displayed in Indian Rupees (INR) and include
                applicable taxes unless otherwise stated. You agree to pay all
                charges associated with your bookings.
              </p>
            </section>

            <section>
              <h2>5. Cancellation and Refund</h2>
              <p>
                Cancellation and refund policies vary by service provider and
                booking type. Please refer to our detailed{" "}
                <Link
                  href="/cancellation-policy"
                  className="text-primary hover:underline"
                >
                  Cancellation Policy
                </Link>{" "}
                and{" "}
                <Link
                  href="/refund-policy"
                  className="text-primary hover:underline"
                >
                  Refund Policy
                </Link>{" "}
                for complete information.
              </p>
            </section>

            <section>
              <h2>6. User Conduct</h2>
              <p>You agree not to:</p>
              <ul>
                <li>Use the platform for any unlawful or fraudulent purpose</li>
                <li>
                  Violate any applicable laws, regulations, or third-party
                  rights
                </li>
                <li>
                  Interfere with or disrupt the platform&apos;s operation or
                  security
                </li>
                <li>
                  Attempt to gain unauthorized access to our systems or user
                  accounts
                </li>
                <li>
                  Upload or transmit viruses, malware, or other harmful code
                </li>
                <li>
                  Post false, misleading, defamatory, or inappropriate content
                  in reviews or communications
                </li>
                <li>
                  Scrape, crawl, or harvest data from the platform without
                  authorization
                </li>
                <li>
                  Impersonate any person or entity or misrepresent your
                  affiliation
                </li>
              </ul>
            </section>

            <section>
              <h2>7. Intellectual Property</h2>

              <h3>7.1 Platform Content</h3>
              <p>
                All content on the Ameera Holidays platform, including text,
                graphics, logos, images, software, and trademarks, is owned by
                or licensed to Ameera Holidays and is protected by intellectual
                property laws.
              </p>

              <h3>7.2 Limited License</h3>
              <p>
                We grant you a limited, non-exclusive, non-transferable license
                to access and use the platform for personal, non-commercial
                purposes. You may not reproduce, distribute, modify, or create
                derivative works without our prior written consent.
              </p>

              <h3>7.3 User Content</h3>
              <p>
                By submitting reviews, comments, or other content to the
                platform, you grant Ameera Holidays a worldwide, royalty-free
                license to use, reproduce, modify, and display such content for
                promotional and operational purposes.
              </p>
            </section>

            <section>
              <h2>8. Disclaimers</h2>

              <h3>8.1 Platform Availability</h3>
              <p>
                We strive to maintain platform availability but do not guarantee
                uninterrupted or error-free access. We may suspend or restrict
                access for maintenance, updates, or other reasons without prior
                notice.
              </p>

              <h3>8.2 Third-Party Services</h3>
              <p>
                Ameera Holidays is not responsible for the quality, safety, or
                legality of services provided by third-party operators. We do
                not guarantee the accuracy of information provided by service
                providers.
              </p>

              <h3>8.3 No Warranty</h3>
              <p>
                The platform and services are provided &quot;as is&quot; without
                warranties of any kind, express or implied, including but not
                limited to warranties of merchantability, fitness for a
                particular purpose, or non-infringement.
              </p>
            </section>

            <section>
              <h2>9. Limitation of Liability</h2>
              <p>
                To the maximum extent permitted by law, Ameera Holidays and its
                affiliates, directors, employees, and agents shall not be liable
                for any indirect, incidental, special, consequential, or
                punitive damages arising from or related to your use of the
                platform or services.
              </p>
              <p>
                Our total liability for any claim arising from these terms or
                your use of our services shall not exceed the amount paid by you
                for the specific booking giving rise to the claim.
              </p>
            </section>

            <section>
              <h2>10. Indemnification</h2>
              <p>
                You agree to indemnify, defend, and hold harmless Ameera
                Holidays and its affiliates from any claims, losses, damages,
                liabilities, and expenses (including legal fees) arising from
                your violation of these terms, your use of the platform, or your
                violation of any rights of third parties.
              </p>
            </section>

            <section>
              <h2>11. Dispute Resolution</h2>

              <h3>11.1 Governing Law</h3>
              <p>
                These Terms and Conditions are governed by and construed in
                accordance with the laws of India, without regard to conflict of
                law principles.
              </p>

              <h3>11.2 Jurisdiction</h3>
              <p>
                Any disputes arising from these terms or your use of our
                services shall be subject to the exclusive jurisdiction of the
                courts in Mumbai, Maharashtra, India.
              </p>

              <h3>11.3 Arbitration</h3>
              <p>
                We encourage resolving disputes amicably. If we cannot resolve a
                dispute informally, it may be submitted to binding arbitration
                in accordance with the Arbitration and Conciliation Act, 1996.
              </p>
            </section>

            <section>
              <h2>12. Modifications to Terms</h2>
              <p>
                We reserve the right to modify these Terms and Conditions at any
                time. Changes will be effective upon posting to the platform.
                Your continued use after changes constitutes acceptance of the
                modified terms. We recommend reviewing these terms periodically.
              </p>
            </section>

            <section>
              <h2>13. Termination</h2>
              <p>
                We may terminate or suspend your account and access to the
                platform immediately, without prior notice, for any reason,
                including breach of these terms. Upon termination, your right to
                use the platform will immediately cease.
              </p>
            </section>

            <section>
              <h2>14. Severability</h2>
              <p>
                If any provision of these terms is found to be invalid or
                unenforceable, the remaining provisions shall remain in full
                force and effect.
              </p>
            </section>

            <section>
              <h2>15. Contact Information</h2>
              <p>
                For questions or concerns regarding these Terms and Conditions,
                please contact us:
              </p>
              <ul>
                <li>
                  <strong>Email:</strong> info@ameeraholidays.com
                </li>
                <li>
                  <strong>Phone:</strong> +91 85059 99770
                </li>
                <li>
                  <strong>Address:</strong> First Floor, 7/8, 82, Diving Road,
                  Opp. Milan Sweets Block A, Sector 7, Faridabad, Haryana 121006
                </li>
              </ul>
            </section>
          </article>
        </div>
      </div>
    </main>
  );
}
