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: "Agent Terms & Conditions | Teertham",
  description:
    "Review the terms and conditions for travel agents partnering with Teertham. Understand commission structure, responsibilities, and partner benefits.",
  openGraph: {
    title: "Agent Terms & Conditions | Teertham",
    description:
      "Review the terms and conditions for travel agents partnering with Teertham. Understand commission structure, responsibilities, and partner benefits.",
    type: "website",
  },
  twitter: {
    card: "summary_large_image",
    title: "Agent Terms & Conditions | Teertham",
    description:
      "Review the terms and conditions for travel agents partnering with Teertham. Understand commission structure, responsibilities, and partner benefits.",
  },
}

export default function AgentTermsPage() {
  const readTime = "9 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">
              Agent 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 the Teertham Agent Partnership Program. These Terms and Conditions govern your participation
                as a registered agent on our platform. By registering as an agent, you agree to comply with these terms
                and all applicable laws and regulations.
              </p>
            </section>

            <section>
              <h2>1. Agent Eligibility and Registration</h2>

              <h3>1.1 Eligibility Requirements</h3>
              <p>To become a Teertham agent, you must:</p>
              <ul>
                <li>Be at least 21 years of age</li>
                <li>Possess valid business registration or travel agency license</li>
                <li>Provide government-issued identification documents</li>
                <li>Have a valid GST registration number (if applicable)</li>
                <li>Maintain an active bank account for commission settlements</li>
                <li>Have no history of fraudulent activity or legal violations</li>
              </ul>

              <h3>1.2 Registration Process</h3>
              <p>
                Complete the agent registration form with accurate business and personal information, upload required
                documents (business license, ID proof, address proof, bank details), and wait for our verification team
                to review your application (typically 3-5 business days). Once approved, you will receive login
                credentials to access the agent dashboard.
              </p>

              <h3>1.3 Account Verification</h3>
              <p>
                We reserve the right to verify all information provided during registration. False or misleading
                information may result in immediate account suspension or termination without notice.
              </p>
            </section>

            <section>
              <h2>2. Agent Responsibilities</h2>

              <h3>2.1 Professional Conduct</h3>
              <p>As a Teertham agent, you agree to:</p>
              <ul>
                <li>Provide accurate and honest information to customers</li>
                <li>Maintain professional communication standards</li>
                <li>Respond promptly to customer inquiries and booking requests</li>
                <li>Comply with all applicable travel and tourism regulations</li>
                <li>Protect customer privacy and personal information</li>
                <li>Not engage in fraudulent, deceptive, or misleading practices</li>
              </ul>

              <h3>2.2 Customer Service</h3>
              <p>
                You are responsible for providing excellent customer service to all clients you serve through our
                platform. This includes pre-booking consultation, accurate fare quotes, booking confirmations, and
                post-booking support. Customer complaints or negative feedback may affect your agent rating and
                commission eligibility.
              </p>

              <h3>2.3 Compliance</h3>
              <p>
                You must comply with all local, state, and national laws regarding travel bookings, taxation, and
                consumer protection. You are responsible for obtaining any necessary licenses or permits required to
                operate as a travel agent in your jurisdiction.
              </p>
            </section>

            <section>
              <h2>3. Commission Structure</h2>

              <h3>3.1 Commission Rates</h3>
              <p>Agent commissions are calculated as a percentage of the booking value and vary by service type:</p>
              <ul>
                <li>
                  <strong>Vehicle Bookings:</strong> 5-8% commission based on booking volume
                </li>
                <li>
                  <strong>Hotel Bookings:</strong> 8-12% commission based on hotel partnership tier
                </li>
                <li>
                  <strong>Spiritual Packages:</strong> 10-15% commission on package price
                </li>
                <li>
                  <strong>Custom Packages:</strong> 12-18% commission based on package complexity
                </li>
              </ul>

              <h3>3.2 Commission Tiers</h3>
              <p>Your commission rate may increase based on performance metrics:</p>
              <ul>
                <li>
                  <strong>Bronze Tier:</strong> 0-50 bookings per month - Base commission rates
                </li>
                <li>
                  <strong>Silver Tier:</strong> 51-150 bookings per month - +1% bonus commission
                </li>
                <li>
                  <strong>Gold Tier:</strong> 151-300 bookings per month - +2% bonus commission
                </li>
                <li>
                  <strong>Platinum Tier:</strong> 301+ bookings per month - +3% bonus commission
                </li>
              </ul>

              <h3>3.3 Commission Calculation</h3>
              <p>
                Commissions are calculated on the net booking value after applicable discounts and before taxes.
                Cancellation charges and refund fees do not qualify for commission. Commissions are earned only on
                completed bookings where the service has been successfully delivered.
              </p>
            </section>

            <section>
              <h2>4. Payment Terms</h2>

              <h3>4.1 Payment Schedule</h3>
              <p>
                Agent commissions are settled on a monthly basis. Payments are processed between the 5th and 10th of
                each month for the previous month&apos;s completed bookings. You must submit a valid tax invoice (if
                applicable) to receive payment.
              </p>

              <h3>4.2 Minimum Payout Threshold</h3>
              <p>
                The minimum payout threshold is ₹1,000. If your earnings are below this threshold, the amount will be
                carried forward to the next payment cycle until the threshold is met.
              </p>

              <h3>4.3 Payment Method</h3>
              <p>
                Payments are made via direct bank transfer (NEFT/RTGS) to the bank account registered during sign-up.
                Ensure your bank details are accurate and up-to-date. We are not responsible for payment delays or
                errors caused by incorrect banking information.
              </p>

              <h3>4.4 Tax Deductions</h3>
              <p>
                Tax Deducted at Source (TDS) will be deducted as per applicable Indian tax laws. You will receive a TDS
                certificate for tax filing purposes. It is your responsibility to comply with all tax obligations in
                your jurisdiction.
              </p>
            </section>

            <section>
              <h2>5. Booking and Cancellation Rules</h2>

              <h3>5.1 Booking Authority</h3>
              <p>
                As an authorized agent, you can make bookings on behalf of customers through the agent dashboard. All
                bookings are subject to availability and confirmation from service providers. You must provide accurate
                customer information for all bookings.
              </p>

              <h3>5.2 Cancellation Handling</h3>
              <p>
                If a customer cancels a booking, standard cancellation policies apply. Your commission will be adjusted
                based on the final refund amount. If a full refund is issued, no commission will be paid. Partial
                cancellations result in proportional commission adjustments.
              </p>

              <h3>5.3 Fraudulent Bookings</h3>
              <p>
                Any bookings identified as fraudulent or made with malicious intent will result in immediate commission
                forfeiture and potential legal action. You are responsible for verifying customer identity and payment
                authenticity.
              </p>
            </section>

            <section>
              <h2>6. Prohibited Activities</h2>
              <p>Agents are strictly prohibited from:</p>
              <ul>
                <li>Making false or misleading claims about services or pricing</li>
                <li>Engaging in price manipulation or unauthorized discounting</li>
                <li>Sharing login credentials with unauthorized individuals</li>
                <li>Attempting to circumvent the platform to conduct direct bookings</li>
                <li>Soliciting customers for services outside the Teertham platform</li>
                <li>Using customer data for unauthorized marketing or commercial purposes</li>
                <li>Creating multiple accounts to manipulate commission structures</li>
                <li>Engaging in negative marketing against Teertham or competitors</li>
              </ul>
            </section>

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

              <h3>7.1 Platform Content</h3>
              <p>
                All content on the Teertham platform, including logos, trademarks, service descriptions, images, and
                software, is the intellectual property of Teertham or its licensors. You may not reproduce, modify,
                distribute, or create derivative works without prior written permission.
              </p>

              <h3>7.2 Marketing Materials</h3>
              <p>
                We provide approved marketing materials (brochures, images, social media templates) that you may use to
                promote services. You must use these materials as provided without alteration. Custom marketing
                materials using Teertham branding require prior approval.
              </p>
            </section>

            <section>
              <h2>8. Confidentiality</h2>
              <p>
                As an agent, you may have access to confidential information including pricing structures, commission
                details, customer data, and business strategies. You agree to maintain strict confidentiality and not
                disclose any such information to third parties during and after your partnership with Teertham.
              </p>
            </section>

            <section>
              <h2>9. Termination</h2>

              <h3>9.1 Voluntary Termination</h3>
              <p>
                You may terminate your agent account at any time by providing 30 days written notice. Upon termination,
                you will receive payment for all earned commissions up to the termination date, subject to the minimum
                payout threshold.
              </p>

              <h3>9.2 Termination by Teertham</h3>
              <p>We reserve the right to suspend or terminate your agent account immediately if you:</p>
              <ul>
                <li>Violate any terms and conditions outlined in this agreement</li>
                <li>Engage in fraudulent, illegal, or unethical activities</li>
                <li>Receive multiple customer complaints or negative reviews</li>
                <li>Fail to meet minimum performance standards</li>
                <li>Provide false information during registration or operations</li>
              </ul>

              <h3>9.3 Post-Termination</h3>
              <p>
                Upon termination, you must immediately cease using the Teertham platform and any proprietary materials.
                Confidentiality obligations continue after termination. Outstanding commissions will be settled as per
                standard payment terms.
              </p>
            </section>

            <section>
              <h2>10. Liability and Indemnification</h2>

              <h3>10.1 Limitation of Liability</h3>
              <p>
                Teertham is not liable for any indirect, incidental, special, or consequential damages arising from your
                use of the platform or participation in the agent program. Our total liability is limited to the amount
                of commissions payable to you in the three months preceding the claim.
              </p>

              <h3>10.2 Agent Indemnification</h3>
              <p>
                You agree to indemnify and hold harmless Teertham from any claims, damages, losses, or expenses arising
                from your breach of these terms, misrepresentation to customers, or violation of third-party rights.
              </p>
            </section>

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

              <h3>11.1 Governing Law</h3>
              <p>
                These Agent Terms and Conditions are governed by the laws of India. Any disputes arising from this
                agreement shall be subject to the exclusive jurisdiction of courts in Mumbai, Maharashtra.
              </p>

              <h3>11.2 Arbitration</h3>
              <p>
                In case of disputes, both parties agree to first attempt resolution through good faith negotiation. If
                unresolved, disputes may be submitted to binding arbitration in accordance with the Arbitration and
                Conciliation Act, 1996.
              </p>
            </section>

            <section>
              <h2>12. Changes to Terms</h2>
              <p>
                We reserve the right to modify these Agent Terms and Conditions at any time. Material changes will be
                communicated via email at least 15 days before taking effect. Continued use of the platform after
                changes indicates your acceptance of the modified terms.
              </p>
            </section>

            <section>
              <h2>13. Contact Information</h2>
              <p>For questions regarding the Agent Partnership Program or these terms, please contact:</p>
              <ul>
                <li>
                  <strong>Agent Support Email:</strong> agents@teertham.com
                </li>
                <li>
                  <strong>Phone:</strong> +91 123 456 7890
                </li>
                <li>
                  <strong>Business Hours:</strong> Monday-Saturday, 9:00 AM - 6:00 PM IST
                </li>
                <li>
                  <strong>Address:</strong> 123 Teertham Street, Mumbai, Maharashtra 400001, India
                </li>
              </ul>
            </section>
          </article>
        </div>
      </div>
    </main>
  )
}
