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: "User Terms & Conditions | Teertham",
  description:
    "Read Teertham'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 | Teertham",
    description:
      "Read Teertham'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 | Teertham",
    description:
      "Read Teertham'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-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">
        {/* Back Button */}
        <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 */}
          <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">
              User Terms & Conditions
            </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>

          {/* Content */}
          <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">
                Welcome to Teertham. These Terms and Conditions govern your use of our platform and services. By
                accessing or using Teertham, 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 Teertham&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 Teertham, you enter into a contract with the service provider (vehicle
                operator, hotel, or tour operator). Teertham 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 Teertham platform, including text, graphics, logos, images, software, and trademarks,
                is owned by or licensed to Teertham 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 Teertham 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>
                Teertham 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, Teertham 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 Teertham 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> legal@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>
  )
}
