'use client';

import React from 'react';
import Navbar from '../../components/Common/Navbar';
import Footer from '../../components/Common/Footer';

export default function PatientTermsAndConditions() {
  const currentDate = new Date().toLocaleDateString();

  return (
    <>
      <Navbar />
      <main className="bg-white min-h-screen text-gray-800 mt-6">
        <div className="max-w-5xl mx-auto px-6 py-12 mt-6">
          <header className="text-center mb-12 mt-6">
            <h1 className="text-4xl md:text-5xl font-bold text-primary mt-12">
              Terms & Conditions – Med Bridge Afrik
            </h1>
            <p className="mt-4 text-lg">
              <strong>Effective Date:</strong> {currentDate}
            </p>
          </header>

          <div className="prose max-w-none prose-headings:text-primary prose-li:marker:text-primary">
            <section className="border-b border-gray-200 pb-6 mb-8">
              <p>
                Welcome to Med Bridge Afrik. These Terms and Conditions govern your access and use of our website, mobile app, and virtual health consultation services.
              </p>
              <p>
                By signing up, booking an appointment, or using this platform, you agree to these Terms. If you do not agree, do not use the platform.
              </p>
            </section>

            <section className="border-b border-gray-200 pb-6 mb-8">
              <h2><b>1. Eligibility</b></h2>
              <ul>
                <li>Be at least 18 years old, or have guardian consent if younger.</li>
                <li>Reside in Nigeria or other parts of Africa.</li>
                <li>Provide accurate, complete, and updated registration information.</li>
              </ul>
            </section>

            <section className="border-b border-gray-200 pb-6 mb-8">
              <h2><b>2. Nature of Services</b></h2>
              <ul>
                <li>Med Bridge Afrik connects you with licensed Nigerian doctors (many based abroad) for virtual consultations.</li>
                <li>This platform does not replace emergency care. In case of a medical emergency, visit a hospital immediately.</li>
                <li>You agree that services are provided “as is” and non-urgent in nature.</li>
              </ul>
            </section>

            <section className="border-b border-gray-200 pb-6 mb-8">
              <h2><b>3. Privacy & Data Protection</b></h2>
              <ul>
                <li>All data collected will be handled according to Nigeria&quot;s Data Protection Act (NDPA) and our <a href="/privacy" className="text-primary underline">Privacy Policy</a>.</li>
                <li>You consent to the collection, storage, and transfer of your health data to licensed healthcare professionals.</li>
                <li>You acknowledge that while we implement industry-grade encryption, no system is 100% secure online.</li>
              </ul>
            </section>

            <section className="border-b border-gray-200 pb-6 mb-8">
              <h2><b>4. Prescriptions & Referrals</b></h2>
              <ul>
                <li>All prescriptions issued are subject to the professional discretion of the consulting doctor.</li>
                <li>Med Bridge Afrik may recommend partner pharmacies or laboratories, but has no liability for their service delivery.</li>
                <li>Med Bridge Afrik is not a pharmacy or drug supplier.</li>
              </ul>
            </section>

            <section className="border-b border-gray-200 pb-6 mb-8">
              <h2><b>5. Payment & Refunds</b></h2>
              <ul>
                <li>All services must be paid for before consultations.</li>
                <li>Once a consultation starts or a doctor is assigned, no refunds will be issued unless caused by a platform error.</li>
                <li>Prices may change at our discretion, but you will be notified before booking.</li>
              </ul>
            </section>

            <section className="border-b border-gray-200 pb-6 mb-8">
              <h2><b>6. User Responsibilities</b></h2>
              <ul>
                <li>Not to impersonate others or provide false information.</li>
                <li>Not to record or distribute sessions without written consent.</li>
                <li>Not to misuse the platform for illegal, harmful, or abusive purposes.</li>
              </ul>
              <p>
                Violation may lead to account suspension, legal action, or reporting to authorities.
              </p>
            </section>

            <section className="border-b border-gray-200 pb-6 mb-8">
              <h2><b>7. Disclaimers & Limitation of Liability</b></h2>
              <ul>
                <li>We are not liable for any medical decisions made by doctors or outcomes from using third-party services.</li>
                <li>Med Bridge Afrik shall not be held responsible for:
                  <ul className="ml-6 list-disc">
                    <li>Diagnostic errors</li>
                    <li>Network or device failures</li>
                    <li>Delayed responses due to technical issues</li>
                  </ul>
                </li>
              </ul>
              <p>Use of this platform is at your own risk.</p>
            </section>

            <section className="border-b border-gray-200 pb-6 mb-8">
              <h2><b>8. Jurisdiction & Governing Law</b></h2>
              <p>
                These Terms are governed by the laws of the Federal Republic of Nigeria.
                All disputes shall be subject to the exclusive jurisdiction of Nigerian courts.
              </p>
            </section>

            <section className="border-b border-gray-200 pb-6 mb-8">
              <h2><b>9. Contact</b></h2>
              <p>
                For questions or complaints, email us at: <a href="mailto:support@medbridgeafrik.com" className="text-primary underline">support@medbridgeafrik.com</a>
              </p>
            </section>

            <section className="pb-6 mb-4">
              <h2><b>10. Acceptance</b></h2>
              <ul>
                <li>By clicking &quot;I Agree&quot; or using our platform, you confirm that:</li>
                <ul className="ml-6 list-disc">
                  <li>You have read and understood these Terms</li>
                  <li>You consent to medical consultation via digital means</li>
                  <li>You agree to abide by the rules and responsibilities outlined above</li>
                </ul>
              </ul>
            </section>
          </div>
        </div>
      </main>
      <Footer />
    </>
  );
}
