/**
 * Terms & Conditions Page
 */

import React from 'react';
import Head from 'next/head';

export default function TermsPage() {
  return (
    <>
      <Head>
        <title>Terms & Conditions | Xpeditis</title>
        <meta
          name="description"
          content="Terms and Conditions for Xpeditis maritime freight booking platform"
        />
      </Head>

      <div className="min-h-screen bg-gray-50 py-12 px-4 sm:px-6 lg:px-8">
        <div className="max-w-4xl mx-auto bg-white shadow-lg rounded-lg p-8">
          <h1 className="text-4xl font-bold text-gray-900 mb-6">Terms & Conditions</h1>

          <p className="text-sm text-gray-500 mb-8">Last Updated: October 14, 2025</p>

          <div className="prose prose-lg max-w-none">
            <section className="mb-8">
              <h2 className="text-2xl font-semibold text-gray-900 mb-4">1. Acceptance of Terms</h2>
              <p className="text-gray-700 mb-4">
                By accessing and using Xpeditis ("the Platform"), you accept and agree to be bound
                by the terms and provision of this agreement. If you do not agree to abide by the
                above, please do not use this service.
              </p>
            </section>

            <section className="mb-8">
              <h2 className="text-2xl font-semibold text-gray-900 mb-4">
                2. Description of Service
              </h2>
              <p className="text-gray-700 mb-4">
                Xpeditis is a B2B SaaS platform that provides maritime freight booking and
                management services, including:
              </p>
              <ul className="list-disc pl-6 text-gray-700 mb-4">
                <li>Real-time shipping rate search and comparison</li>
                <li>Online container booking</li>
                <li>Shipment tracking and management</li>
                <li>Document management</li>
                <li>Integration with carrier APIs</li>
              </ul>
            </section>

            <section className="mb-8">
              <h2 className="text-2xl font-semibold text-gray-900 mb-4">3. User Accounts</h2>
              <h3 className="text-xl font-semibold text-gray-800 mb-2">3.1 Registration</h3>
              <p className="text-gray-700 mb-4">
                To use the Platform, you must register for an account and provide accurate, current,
                and complete information. You are responsible for maintaining the confidentiality of
                your account credentials.
              </p>

              <h3 className="text-xl font-semibold text-gray-800 mb-2">3.2 Account Security</h3>
              <p className="text-gray-700 mb-4">
                You are responsible for all activities that occur under your account. You must
                immediately notify us of any unauthorized use of your account.
              </p>

              <h3 className="text-xl font-semibold text-gray-800 mb-2">3.3 Account Termination</h3>
              <p className="text-gray-700 mb-4">
                We reserve the right to suspend or terminate your account if you violate these Terms
                or engage in fraudulent, abusive, or illegal activity.
              </p>
            </section>

            <section className="mb-8">
              <h2 className="text-2xl font-semibold text-gray-900 mb-4">4. Booking and Payments</h2>
              <h3 className="text-xl font-semibold text-gray-800 mb-2">4.1 Booking Process</h3>
              <p className="text-gray-700 mb-4">
                All bookings made through the Platform are subject to availability and confirmation
                by the carrier. Xpeditis acts as an intermediary and does not guarantee booking
                acceptance.
              </p>

              <h3 className="text-xl font-semibold text-gray-800 mb-2">4.2 Pricing</h3>
              <p className="text-gray-700 mb-4">
                Rates displayed on the Platform are provided by carriers and may change. Final
                pricing is confirmed upon booking acceptance. All prices are subject to applicable
                surcharges, taxes, and fees.
              </p>

              <h3 className="text-xl font-semibold text-gray-800 mb-2">4.3 Payment Terms</h3>
              <p className="text-gray-700 mb-4">
                Payment terms are established between you and the carrier. Xpeditis may facilitate
                payment processing but is not responsible for payment disputes.
              </p>
            </section>

            <section className="mb-8">
              <h2 className="text-2xl font-semibold text-gray-900 mb-4">5. User Obligations</h2>
              <p className="text-gray-700 mb-4">You agree to:</p>
              <ul className="list-disc pl-6 text-gray-700 mb-4">
                <li>Provide accurate and complete booking information</li>
                <li>Comply with all applicable laws and regulations</li>
                <li>Not use the Platform for illegal or unauthorized purposes</li>
                <li>Not interfere with or disrupt the Platform's operation</li>
                <li>Not attempt to gain unauthorized access to any part of the Platform</li>
                <li>Not transmit viruses, malware, or malicious code</li>
              </ul>
            </section>

            <section className="mb-8">
              <h2 className="text-2xl font-semibold text-gray-900 mb-4">
                6. Intellectual Property
              </h2>
              <p className="text-gray-700 mb-4">
                All content, features, and functionality of the Platform, including but not limited
                to text, graphics, logos, icons, images, audio clips, and software, are the
                exclusive property of Xpeditis and protected by copyright, trademark, and other
                intellectual property laws.
              </p>
            </section>

            <section className="mb-8">
              <h2 className="text-2xl font-semibold text-gray-900 mb-4">
                7. Limitation of Liability
              </h2>
              <p className="text-gray-700 mb-4">
                TO THE MAXIMUM EXTENT PERMITTED BY LAW, XPEDITIS SHALL NOT BE LIABLE FOR ANY
                INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL, OR PUNITIVE DAMAGES, INCLUDING BUT NOT
                LIMITED TO LOSS OF PROFITS, DATA, USE, OR GOODWILL, ARISING OUT OF OR IN CONNECTION
                WITH YOUR USE OF THE PLATFORM.
              </p>
              <p className="text-gray-700 mb-4">
                Xpeditis acts as an intermediary between freight forwarders and carriers. We are not
                responsible for:
              </p>
              <ul className="list-disc pl-6 text-gray-700 mb-4">
                <li>Carrier performance, delays, or cancellations</li>
                <li>Cargo damage, loss, or theft</li>
                <li>Customs issues or regulatory compliance</li>
                <li>Force majeure events</li>
              </ul>
            </section>

            <section className="mb-8">
              <h2 className="text-2xl font-semibold text-gray-900 mb-4">8. Indemnification</h2>
              <p className="text-gray-700 mb-4">
                You agree to indemnify, defend, and hold harmless Xpeditis and its officers,
                directors, employees, and agents from any claims, losses, damages, liabilities, and
                expenses arising out of your use of the Platform or violation of these Terms.
              </p>
            </section>

            <section className="mb-8">
              <h2 className="text-2xl font-semibold text-gray-900 mb-4">
                9. Data Protection and Privacy
              </h2>
              <p className="text-gray-700 mb-4">
                Your use of the Platform is also governed by our Privacy Policy. By using the
                Platform, you consent to the collection, use, and disclosure of your information as
                described in the Privacy Policy.
              </p>
            </section>

            <section className="mb-8">
              <h2 className="text-2xl font-semibold text-gray-900 mb-4">
                10. Third-Party Services
              </h2>
              <p className="text-gray-700 mb-4">
                The Platform may contain links to third-party websites or services. Xpeditis is not
                responsible for the content, privacy policies, or practices of third-party sites.
              </p>
            </section>

            <section className="mb-8">
              <h2 className="text-2xl font-semibold text-gray-900 mb-4">
                11. Service Availability
              </h2>
              <p className="text-gray-700 mb-4">
                We strive to provide continuous service availability but do not guarantee that the
                Platform will be uninterrupted, secure, or error-free. We reserve the right to
                suspend or discontinue any part of the Platform at any time.
              </p>
            </section>

            <section className="mb-8">
              <h2 className="text-2xl font-semibold text-gray-900 mb-4">
                12. Modifications to Terms
              </h2>
              <p className="text-gray-700 mb-4">
                We reserve the right to modify these Terms at any time. Changes will be effective
                immediately upon posting. Your continued use of the Platform after changes
                constitutes acceptance of the modified Terms.
              </p>
            </section>

            <section className="mb-8">
              <h2 className="text-2xl font-semibold text-gray-900 mb-4">13. Governing Law</h2>
              <p className="text-gray-700 mb-4">
                These Terms shall be governed by and construed in accordance with the laws of
                [Jurisdiction], without regard to its conflict of law provisions.
              </p>
            </section>

            <section className="mb-8">
              <h2 className="text-2xl font-semibold text-gray-900 mb-4">14. Dispute Resolution</h2>
              <p className="text-gray-700 mb-4">
                Any disputes arising out of or relating to these Terms or the Platform shall be
                resolved through binding arbitration in accordance with the rules of [Arbitration
                Body].
              </p>
            </section>

            <section className="mb-8">
              <h2 className="text-2xl font-semibold text-gray-900 mb-4">15. Contact Information</h2>
              <p className="text-gray-700 mb-4">
                If you have any questions about these Terms, please contact us at:
              </p>
              <div className="bg-gray-50 p-4 rounded-lg">
                <p className="text-gray-700">
                  <strong>Email:</strong> legal@xpeditis.com
                  <br />
                  <strong>Address:</strong> [Company Address]
                  <br />
                  <strong>Phone:</strong> [Company Phone]
                </p>
              </div>
            </section>
          </div>
        </div>
      </div>
    </>
  );
}
