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: "Withdrawal Terms & Conditions | Teertham",
  description:
    "Understand the terms and conditions for earnings withdrawal for agents and hotel partners. Learn about withdrawal limits, processing times, and requirements.",
  openGraph: {
    title: "Withdrawal Terms & Conditions | Teertham",
    description:
      "Understand the terms and conditions for earnings withdrawal for agents and hotel partners. Learn about withdrawal limits, processing times, and requirements.",
    type: "website",
  },
  twitter: {
    card: "summary_large_image",
    title: "Withdrawal Terms & Conditions | Teertham",
    description:
      "Understand the terms and conditions for earnings withdrawal for agents and hotel partners. Learn about withdrawal limits, processing times, and requirements.",
  },
}

export default function WithdrawTermsPage() {
  const readTime = "7 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">
              Withdrawal 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">
                These Withdrawal Terms and Conditions govern how agents and hotel partners can withdraw their earnings
                from the Teertham platform. By participating in our partnership programs, you agree to these terms
                regarding payment withdrawal and settlement.
              </p>
            </section>

            <section>
              <h2>1. Eligibility for Withdrawal</h2>

              <h3>1.1 Account Requirements</h3>
              <p>To be eligible for earnings withdrawal, you must:</p>
              <ul>
                <li>Have a verified partner account (Agent or Hotel Partner)</li>
                <li>Complete KYC (Know Your Customer) verification with valid documents</li>
                <li>Provide accurate bank account details for fund transfer</li>
                <li>Have a valid PAN card and GST registration (if applicable)</li>
                <li>Maintain an active account in good standing</li>
              </ul>

              <h3>1.2 Minimum Withdrawal Amount</h3>
              <p>The minimum withdrawal threshold varies by partner type:</p>
              <ul>
                <li>
                  <strong>Agents:</strong> Minimum ₹1,000 per withdrawal
                </li>
                <li>
                  <strong>Hotel Partners:</strong> Minimum ₹2,500 per withdrawal
                </li>
              </ul>
              <p>
                If your available balance is below the minimum threshold, you must wait until sufficient earnings
                accumulate before initiating a withdrawal.
              </p>

              <h3>1.3 Available Balance</h3>
              <p>Your available balance for withdrawal includes only:</p>
              <ul>
                <li>Confirmed earnings from completed bookings (after guest check-out)</li>
                <li>Commission from services successfully delivered</li>
                <li>Bonus earnings and incentives (if applicable)</li>
              </ul>
              <p>
                Pending earnings from active bookings, disputed transactions, or bookings under investigation are not
                available for withdrawal until resolved.
              </p>
            </section>

            <section>
              <h2>2. Withdrawal Process</h2>

              <h3>2.1 How to Request Withdrawal</h3>
              <p>Follow these steps to withdraw your earnings:</p>
              <ul>
                <li>Log in to your partner dashboard (Agent or Hotel)</li>
                <li>Navigate to the &quot;Earnings&quot; or &quot;Withdraw&quot; section</li>
                <li>Enter the withdrawal amount (must meet minimum threshold)</li>
                <li>Verify your registered bank account details</li>
                <li>Submit the withdrawal request</li>
              </ul>

              <h3>2.2 Withdrawal Frequency</h3>
              <p>Withdrawal frequency is limited to ensure efficient processing:</p>
              <ul>
                <li>
                  <strong>Agents:</strong> Maximum 2 withdrawal requests per week
                </li>
                <li>
                  <strong>Hotel Partners:</strong> Unlimited requests (subject to processing times)
                </li>
              </ul>

              <h3>2.3 Processing Timeline</h3>
              <p>Withdrawal requests are processed as follows:</p>
              <ul>
                <li>
                  <strong>Request Verification:</strong> 1-2 business days for internal review and approval
                </li>
                <li>
                  <strong>Fund Transfer:</strong> 3-5 business days via NEFT/RTGS to your registered bank account
                </li>
                <li>
                  <strong>Total Processing Time:</strong> 5-7 business days from request submission to bank credit
                </li>
              </ul>
              <p>
                Processing times may be longer during weekends, bank holidays, or if additional verification is
                required.
              </p>
            </section>

            <section>
              <h2>3. Payment Methods</h2>

              <h3>3.1 Bank Transfer (Primary Method)</h3>
              <p>
                All withdrawals are processed via direct bank transfer (NEFT/RTGS) to your registered bank account in
                India. Ensure your bank details are accurate and up-to-date in your partner profile. International bank
                accounts are not supported at this time.
              </p>

              <h3>3.2 Updating Bank Details</h3>
              <p>
                You can update your bank account information in your partner dashboard. Changes to bank details may
                require re-verification and could delay pending withdrawal requests. For security purposes, frequent
                bank account changes may trigger additional verification steps.
              </p>

              <h3>3.3 Failed Transfers</h3>
              <p>
                If a withdrawal transfer fails due to incorrect bank details, account closure, or technical issues, the
                amount will be credited back to your Teertham account balance. You will be notified via email, and you
                must update your bank information before re-initiating the withdrawal.
              </p>
            </section>

            <section>
              <h2>4. Deductions and Charges</h2>

              <h3>4.1 Tax Deduction at Source (TDS)</h3>
              <p>
                As per Indian tax regulations, TDS will be deducted from your earnings before withdrawal. The TDS rate
                depends on your PAN card status and annual income:
              </p>
              <ul>
                <li>
                  <strong>With Valid PAN:</strong> TDS as per applicable income tax slab (typically 10%)
                </li>
                <li>
                  <strong>Without Valid PAN:</strong> TDS at 20% (higher rate applies)
                </li>
              </ul>
              <p>
                You will receive a TDS certificate (Form 16A) quarterly for your tax filing purposes. TDS deducted can
                be claimed as credit when filing your income tax return.
              </p>

              <h3>4.2 Transaction Fees</h3>
              <p>
                Teertham does not charge any additional withdrawal or transaction fees. However, your bank may charge
                fees for incoming transfers (NEFT/RTGS), which are beyond our control.
              </p>

              <h3>4.3 GST and Other Taxes</h3>
              <p>
                If you are registered under GST, you must issue a tax invoice for the services rendered. GST-applicable
                earnings will be processed accordingly, and you are responsible for GST compliance and filing.
              </p>
            </section>

            <section>
              <h2>5. Withdrawal Restrictions and Holds</h2>

              <h3>5.1 Account Verification Hold</h3>
              <p>
                Withdrawals may be temporarily held if your account verification is incomplete or under review. Complete
                KYC verification (PAN, Aadhaar, bank account proof) to lift the hold.
              </p>

              <h3>5.2 Dispute or Investigation Hold</h3>
              <p>
                If there are customer complaints, refund disputes, or suspected fraudulent activity associated with your
                account, we reserve the right to hold your withdrawals until the matter is resolved. You will be
                notified of the reason and expected resolution timeline.
              </p>

              <h3>5.3 Compliance Hold</h3>
              <p>
                Withdrawals may be restricted if you are non-compliant with platform policies, have outstanding
                liabilities, or have violated partner terms and conditions. Compliance issues must be resolved before
                funds can be released.
              </p>

              <h3>5.4 Seasonal Holds</h3>
              <p>
                During peak seasons or promotional campaigns, withdrawal processing may be delayed due to high
                transaction volumes. We will notify partners in advance of any expected delays.
              </p>
            </section>

            <section>
              <h2>6. Cancellation and Adjustments</h2>

              <h3>6.1 Cancellation Impact on Earnings</h3>
              <p>
                If a booking is cancelled after commission has been credited to your account, the commission will be
                deducted from your available balance or future earnings. If your balance is insufficient, the deduction
                will be carried forward to future commissions.
              </p>

              <h3>6.2 Refund Adjustments</h3>
              <p>
                In cases where customers are issued refunds, the corresponding commission or payment to partners will be
                reversed. This adjustment will reflect in your account balance before the next withdrawal.
              </p>

              <h3>6.3 Adjustment Notifications</h3>
              <p>
                You will receive email notifications for all adjustments made to your account balance, including reasons
                and transaction references. Review these notifications carefully and contact support if you have
                concerns.
              </p>
            </section>

            <section>
              <h2>7. Security and Fraud Prevention</h2>

              <h3>7.1 Account Security</h3>
              <p>You are responsible for maintaining the security of your partner account:</p>
              <ul>
                <li>Use a strong, unique password and enable two-factor authentication (if available)</li>
                <li>Do not share your login credentials with anyone</li>
                <li>Log out from shared or public devices after use</li>
                <li>Report any suspicious activity or unauthorized access immediately</li>
              </ul>

              <h3>7.2 Fraud Detection</h3>
              <p>
                We employ automated fraud detection systems to monitor withdrawal requests. Unusual withdrawal patterns,
                frequent bank account changes, or suspicious activity may trigger additional verification or temporary
                holds.
              </p>

              <h3>7.3 Identity Verification</h3>
              <p>
                For large withdrawal amounts or as part of routine security checks, we may request additional identity
                verification such as video KYC, phone verification, or submission of recent documents.
              </p>
            </section>

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

              <h3>8.1 Withdrawal Disputes</h3>
              <p>
                If you believe a withdrawal has been incorrectly processed, delayed, or denied, contact our partner
                support team immediately with your withdrawal reference number and relevant details. We will investigate
                and respond within 3-5 business days.
              </p>

              <h3>8.2 Escalation Process</h3>
              <p>
                If the initial response does not resolve your concern, you may escalate the issue to our senior support
                team. Provide all relevant documentation and transaction records to expedite the review process.
              </p>

              <h3>8.3 Legal Recourse</h3>
              <p>
                All disputes arising from withdrawal terms are governed by the laws of India and subject to the
                exclusive jurisdiction of courts in Mumbai, Maharashtra. We encourage resolving disputes amicably before
                pursuing legal action.
              </p>
            </section>

            <section>
              <h2>9. Inactive Accounts</h2>

              <h3>9.1 Inactivity Policy</h3>
              <p>
                If your partner account remains inactive (no bookings or withdrawals) for more than 12 consecutive
                months, we reserve the right to suspend withdrawal privileges until you reactivate your account by
                completing a verification process.
              </p>

              <h3>9.2 Unclaimed Earnings</h3>
              <p>
                Earnings that remain unclaimed for more than 24 months may be subject to dormancy fees or forfeiture as
                per applicable laws. We will make reasonable attempts to contact you before taking any action on
                unclaimed funds.
              </p>
            </section>

            <section>
              <h2>10. Changes to Withdrawal Terms</h2>

              <h3>10.1 Modifications</h3>
              <p>
                We reserve the right to modify these Withdrawal Terms and Conditions at any time. Material changes will
                be communicated via email at least 15 days before taking effect. Continued use of the withdrawal feature
                indicates your acceptance of the updated terms.
              </p>

              <h3>10.2 Policy Updates</h3>
              <p>
                Changes may include adjustments to minimum withdrawal amounts, processing timelines, fees, tax
                deductions, or security requirements. Always review the latest terms before initiating a withdrawal.
              </p>
            </section>

            <section>
              <h2>11. Liability Disclaimer</h2>

              <h3>11.1 Processing Delays</h3>
              <p>
                While we strive to process withdrawals within the stated timelines, we are not liable for delays caused
                by bank processing, public holidays, technical issues with payment gateways, or circumstances beyond our
                control.
              </p>

              <h3>11.2 Bank Errors</h3>
              <p>
                Teertham is not responsible for errors, delays, or losses caused by your bank or financial institution.
                If you experience banking issues, contact your bank directly for resolution.
              </p>

              <h3>11.3 Third-Party Services</h3>
              <p>
                We use third-party payment processors and banking partners to facilitate withdrawals. While we work with
                reputable providers, we cannot guarantee their services and are not liable for their failures or errors.
              </p>
            </section>

            <section>
              <h2>12. Contact and Support</h2>

              <h3>12.1 Withdrawal Support</h3>
              <p>
                For assistance with withdrawal requests, processing issues, or questions about these terms, contact:
              </p>
              <ul>
                <li>
                  <strong>Agent Support:</strong> agents@teertham.com
                </li>
                <li>
                  <strong>Hotel Partner Support:</strong> hotels@teertham.com
                </li>
                <li>
                  <strong>Phone:</strong> +91 123 456 7890 (Monday-Saturday, 9:00 AM - 6:00 PM IST)
                </li>
              </ul>

              <h3>12.2 Documentation Required</h3>
              <p>When contacting support about withdrawal issues, please provide:</p>
              <ul>
                <li>Partner account email and ID</li>
                <li>Withdrawal request reference number</li>
                <li>Date and amount of withdrawal request</li>
                <li>Bank account details (last 4 digits only)</li>
                <li>Description of the issue or concern</li>
              </ul>
            </section>

            <section>
              <h2>13. Important Reminders</h2>
              <ul>
                <li>Always verify your bank details before submitting a withdrawal request</li>
                <li>Keep your KYC documents updated to avoid processing delays</li>
                <li>Regularly check your email for withdrawal status updates and notifications</li>
                <li>
                  Plan withdrawals in advance considering processing times, especially before holidays or peak seasons
                </li>
                <li>Maintain accurate tax records and receipts for all withdrawals</li>
                <li>Report any discrepancies or unauthorized withdrawals immediately</li>
              </ul>
            </section>
          </article>
        </div>
      </div>
    </main>
  )
}
