import type { Metadata } from "next";
import { BreadcrumbSection } from "@/components/BreadcrumbSection";
import { PolicyDocument } from "@/components/PolicyDocument";

export const metadata: Metadata = {
  title: "Terms & Conditions",
  description:
    "Read Ride N Revive Terms & Conditions for customers, mechanics, technicians, workshops, and service partners.",
  alternates: {
    canonical: "/terms-and-conditions",
  },
  openGraph: {
    title: "Terms & Conditions | Ride N Revive",
    description:
      "Ride N Revive Terms & Conditions for customers, mechanics, service partners, bookings, pricing, refunds, warranties, and platform usage.",
    url: "/terms-and-conditions",
  },
};

const sections = [
  {
    title: "PREAMBLE",
    content: [
      `Welcome to Ride N Revive™ ("Ride N Revive", "RNR", "Company", "Platform", "We", "Our", or "Us").`,
      "Ride N Revive is a technology-enabled vehicle assistance, roadside support, repair, maintenance, spare parts, towing, battery replacement, and vehicle care platform connecting vehicle owners with verified mechanics, workshops, technicians, service partners, logistics providers, and roadside assistance professionals.",
      "These Terms & Conditions constitute a legally binding agreement between:",
    ],
    list: [
      "Ride N Revive",
      "Customers/Vehicle Owners",
      "Mechanics, Technicians & Service Partners",
    ],
    after:
      "By registering, booking, accepting assignments, accessing, or using any Ride N Revive service, all parties agree to comply with these Terms.",
  },
  {
    title: "SECTION A – GENERAL TERMS",
    items: [
      {
        heading: "1. Platform Nature",
        body: [
          "Ride N Revive operates as a technology platform and service marketplace.",
          "Ride N Revive may:",
        ],
        list: [
          "Directly provide services.",
          "Assign services to independent mechanics.",
          "Partner with workshops.",
          "Engage logistics providers.",
          "Utilize third-party towing operators.",
          "Facilitate sale of spare parts and accessories.",
        ],
        after: "Ride N Revive reserves the right to decide how a booking shall be fulfilled.",
      },
      {
        heading: "2. Service Coverage",
        body: ["Services may include:"],
        list: [
          "Emergency Breakdown Assistance",
          "Bike Repair",
          "Car Repair",
          "Battery Replacement",
          "Puncture Repair",
          "Jump Start Assistance",
          "Fuel Assistance",
          "Lockout Assistance",
          "Towing Services",
          "Vehicle Inspection",
          "Vehicle Servicing",
          "Vehicle Detailing",
          "Spare Parts Delivery",
          "Annual Maintenance Plans",
          "Fleet Services",
          "Corporate Vehicle Support",
        ],
        after:
          "Service availability may vary based on city, weather, inventory, and technician availability.",
      },
      {
        heading: "3. Service Hours",
        body: ["Ride N Revive may operate:"],
        list: ["24x7", "Business Hours", "Emergency Hours"],
        after:
          "Certain services may attract surge pricing during late-night, holiday, or emergency periods.",
      },
    ],
  },
  {
    title: "SECTION B – CUSTOMER TERMS",
    items: [
      {
        heading: "4. Customer Eligibility",
        body: ["Customers must:"],
        list: [
          "Be at least 18 years of age.",
          "Possess lawful control of the vehicle.",
          "Provide accurate vehicle details.",
          "Provide correct service location.",
          "Maintain lawful conduct during service.",
        ],
        after: "Providing false information may result in service refusal.",
      },
      {
        heading: "5. Booking Process",
        body: ["Upon booking:"],
        list: [
          "A unique Booking ID shall be generated.",
          "Customer details shall be verified.",
          "Service requests may be assigned automatically or manually.",
          "Ride N Revive may contact customers for additional information.",
        ],
        after: "Booking confirmation does not guarantee immediate dispatch.",
      },
      {
        heading: "6. Customer Responsibilities",
        body: [
          "Customers agree to:",
          "Vehicle Access",
          "Provide safe and unobstructed access to the vehicle.",
          "Safety",
          "Maintain a safe working environment for mechanics.",
          "Accurate Information",
          "Provide correct:",
        ],
        list: [
          "Vehicle make",
          "Vehicle model",
          "Registration number",
          "Breakdown details",
          "Service location",
        ],
        after: "Verification\nInspect completed work before approving closure.",
      },
      {
        heading: "7. Customer Conduct Policy",
        body: ["Customers shall not:"],
        list: [
          "Abuse mechanics.",
          "Use threatening language.",
          "Demand unauthorized work.",
          "Engage in fraudulent activities.",
          "Misrepresent vehicle condition.",
          "Refuse payment after service completion.",
        ],
        after: "Ride N Revive may permanently block customers violating these rules.",
      },
      {
        heading: "8. Pricing Policy",
        body: ["Charges may include:"],
        list: [
          "Visit Charges",
          "Labour Charges",
          "Spare Parts Charges",
          "Diagnostic Charges",
          "Emergency Charges",
          "Towing Charges",
          "Taxes",
        ],
        after: "All charges shall be visible before final payment whenever possible.",
      },
      {
        heading: "9. Customer Cancellation Policy",
        body: [
          "Before Mechanic Assignment\nNo cancellation charges.",
          "After Mechanic Assignment\nA cancellation fee may apply.",
          "After Mechanic Arrival\nFull visit charges may apply.",
          "False Bookings\nRepeated false bookings may lead to permanent suspension.",
        ],
      },
      {
        heading: "10. Refund Policy",
        body: ["Refunds may be issued for:"],
        list: [
          "Duplicate payments.",
          "Service non-availability.",
          "Billing errors.",
          "Failed transactions.",
        ],
        after:
          "Refunds shall not apply where:\n· Service has been completed.\n· Spare parts have been installed.\n· Customer changes mind after work completion.\nRefund approval remains solely at Ride N Revive's discretion.",
      },
    ],
  },
  {
    title: "SECTION C – MECHANIC & SERVICE PARTNER TERMS",
    items: [
      {
        heading: "11. Mechanic Eligibility",
        body: ["All mechanics and technicians must:"],
        list: [
          "Be legally authorized to work.",
          "Possess required technical skills.",
          "Provide valid identification.",
          "Submit banking details.",
          "Submit required licenses where applicable.",
        ],
        after: "Ride N Revive may conduct background verification.",
      },
      {
        heading: "12. Independent Contractor Relationship",
        body: ["Mechanics and service partners acknowledge that:"],
        list: [
          "They are independent contractors.",
          "They are not employees of Ride N Revive.",
          "No employer-employee relationship exists.",
          "No partnership or joint venture is created.",
        ],
        after: "Mechanics are responsible for their own taxes and statutory obligations.",
      },
      {
        heading: "13. Job Acceptance Policy",
        body: ["Mechanics may:"],
        list: ["Accept jobs.", "Reject jobs.", "Reschedule jobs with approval."],
        after:
          "However excessive cancellation or rejection may affect account ranking and future job allocation.",
      },
      {
        heading: "14. Mechanic Responsibilities",
        body: [
          "Mechanics agree to:",
          "Professional Conduct\nMaintain courteous behavior at all times.",
          "Quality Work\nPerform repairs using accepted industry standards.",
          "Genuine Recommendations\nRecommend only necessary repairs.",
          "Transparency\nExplain repair requirements honestly.",
          "Safety\nFollow all safety procedures.",
          "Documentation\nUpload job completion evidence when requested.",
        ],
      },
      {
        heading: "15. Mechanic Code of Ethics",
        body: ["Mechanics shall not:"],
        list: [
          "Overcharge customers.",
          "Demand cash outside the platform.",
          "Misrepresent repair requirements.",
          "Install unauthorized parts.",
          "Share customer information.",
          "Solicit customers outside Ride N Revive.",
          "Create fake service reports.",
        ],
        after: "Violation may result in permanent termination.",
      },
      {
        heading: "16. Customer Poaching Restriction",
        body: ["Mechanics shall not:"],
        list: [
          "Directly market personal services to Ride N Revive customers.",
          "Divert bookings away from Ride N Revive.",
          "Request future bookings outside the platform.",
        ],
        after:
          "This restriction shall remain effective during active association and for 12 months thereafter.",
      },
      {
        heading: "17. Mechanic Earnings",
        body: ["Mechanics shall receive payment based on:"],
        list: [
          "Completed jobs.",
          "Approved invoices.",
          "Commission structure.",
          "Incentive programs.",
        ],
        after: "Ride N Revive reserves the right to revise commission structures with notice.",
      },
      {
        heading: "18. Mechanic Penalties",
        body: ["Penalties may be imposed for:"],
        list: [
          "Fraudulent repairs.",
          "Fake job completion.",
          "Customer misconduct complaints.",
          "Excessive cancellations.",
          "Delayed arrivals.",
          "Non-compliance with platform policies.",
        ],
      },
      {
        heading: "19. Tools & Equipment",
        body: ["Mechanics shall maintain:"],
        list: [
          "Required tools.",
          "Safety equipment.",
          "Functional mobile device.",
          "Internet connectivity.",
        ],
        after: "Ride N Revive shall not be responsible for personal equipment loss or damage.",
      },
    ],
  },
  {
    title: "SECTION D – SPARE PARTS POLICY",
    items: [
      {
        heading: "20. Parts & Accessories",
        body: ["Ride N Revive may provide:"],
        list: ["Genuine OEM Parts", "Aftermarket Parts", "Equivalent Quality Parts", "Consumables"],
        after:
          "Availability depends upon inventory and location.\nProduct warranties remain subject to manufacturer policies.",
      },
    ],
  },
  {
    title: "SECTION E – LIABILITY & WARRANTIES",
    items: [
      {
        heading: "21. Service Warranty",
        body: ["Where offered, warranty shall apply only to:"],
        list: ["Specific repairs.", "Specific spare parts.", "Defined warranty periods."],
        after:
          "Warranty becomes void if:\n· Third-party modifications occur.\n· Vehicle misuse occurs.\n· Unauthorized repairs are performed.",
      },
      {
        heading: "22. Limitation of Liability",
        body: ["Ride N Revive shall not be liable for:"],
        list: [
          "Vehicle depreciation.",
          "Loss of income.",
          "Business interruption.",
          "Missed appointments.",
          "Indirect damages.",
          "Consequential damages.",
        ],
        after: "Maximum liability shall not exceed the value of the service booking.",
      },
      {
        heading: "23. Emergency Assistance Disclaimer",
        body: [
          "Roadside assistance is provided on a best-effort basis.",
          "Ride N Revive does not guarantee:",
        ],
        list: [
          "Immediate repair.",
          "Vehicle restart.",
          "Spare part availability.",
          "Exact arrival times.",
        ],
      },
    ],
  },
  {
    title: "SECTION F – DATA, PRIVACY & PLATFORM RIGHTS",
    items: [
      {
        heading: "24. Data Protection",
        body: ["Ride N Revive may collect:"],
        list: [
          "Name",
          "Phone Number",
          "Email",
          "Vehicle Information",
          "Service History",
          "Location Data",
        ],
        after: "Information shall be processed according to the Ride N Revive Privacy Policy.",
      },
      {
        heading: "25. Intellectual Property",
        body: ["The following remain exclusive property of Ride N Revive:"],
        list: [
          "Logos",
          "Brand Assets",
          "Trademarks",
          "Website Design",
          "Mobile Applications",
          "Software",
          "Databases",
        ],
        after: "Unauthorized use is strictly prohibited.",
      },
      {
        heading: "26. Reviews & Ratings",
        body: [
          "Customers and mechanics may review each other.",
          "Ride N Revive reserves the right to:",
        ],
        list: [
          "Remove misleading reviews.",
          "Investigate disputes.",
          "Suspend accounts involved in manipulation.",
        ],
      },
    ],
  },
  {
    title: "SECTION G – TERMINATION",
    items: [
      {
        heading: "27. Account Suspension",
        body: ["Ride N Revive may suspend or terminate any account for:"],
        list: [
          "Fraud",
          "Misconduct",
          "Abuse",
          "Payment default",
          "False claims",
          "Policy violations",
        ],
        after: "Termination may occur without prior notice in severe cases.",
      },
    ],
  },
  {
    title: "SECTION H – LEGAL PROVISIONS",
    items: [
      {
        heading: "28. Force Majeure",
        body: ["Ride N Revive shall not be liable for delays caused by:"],
        list: [
          "Floods",
          "Earthquakes",
          "Riots",
          "War",
          "Government actions",
          "Pandemics",
          "Internet failures",
          "Power outages",
        ],
      },
      {
        heading: "29. Dispute Resolution",
        body: [
          "All disputes shall first be attempted through mediation and mutual settlement.",
          "If unresolved, disputes shall be subject to the exclusive jurisdiction of courts located in New Delhi, India.",
        ],
      },
      {
        heading: "30. Governing Law",
        body: ["These Terms shall be governed exclusively by the laws of India."],
      },
      {
        heading: "31. Ride N Revive Platform Protection Clause",
        body: [
          "No customer, mechanic, workshop, service partner, employee, contractor, or third party shall copy, imitate, misuse, reverse-engineer, reproduce, replicate, or commercially exploit the Ride N Revive business model, branding, technology, operational systems, customer database, pricing structure, marketing materials, training materials, or proprietary processes without prior written authorization from Ride N Revive.",
          "Any violation may result in civil and criminal proceedings under applicable Indian laws.",
        ],
      },
    ],
  },
];

export default function TermsAndConditionsPage() {
  return (
    <>
      <BreadcrumbSection
        currentPage="Terms & Conditions"
        title="Terms & Conditions"
        lead="Terms for customers, mechanics, technicians, workshops, and service partners using Ride N Revive."
      />

      <PolicyDocument
        title="Terms & Conditions for Customers, Mechanics & Service Partners"
        lead="Terms for customers, mechanics, technicians, workshops, service partners, bookings, pricing, refunds, warranties, and platform usage."
        sections={sections}
        pledge={
          <>
            <h2 className="text-xl font-black tracking-tight text-foreground">
              Final Acknowledgement
            </h2>
            <p className="mt-3 text-sm font-medium leading-7 text-muted-foreground">
              By creating an account, accepting a service request, booking a service, acting as a
              mechanic, workshop partner, fleet partner, or customer on Ride N Revive, you
              acknowledge that you have read, understood, and voluntarily agreed to these Terms &
              Conditions in their entirety.
            </p>
            <p className="mt-5 text-base font-black text-foreground">Ride N Revive</p>
            <p className="mt-2 text-sm font-bold text-muted-foreground">
              "India's Trusted Roadside Assistance & Vehicle Care Network."
            </p>
            <p className="text-sm font-bold text-muted-foreground">
              "Any Vehicle. Any Problem. Anytime."
            </p>
          </>
        }
      />
    </>
  );
}
