'use client';

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

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

  return (
    <>
      <Navbar />
      <main className="bg-white min-h-screen text-gray-800">
        <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">
              Med Bridge Afrik – Terms & Conditions for Doctors
            </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, a virtual healthcare platform connecting licensed Nigerian doctors both in Nigeria and the diaspora with patients across Africa, especially Nigeria.
                By registering as a healthcare provider (“Doctor”) you agree to be bound by these Terms and Conditions.
              </p>
            </section>

            <section className="border-b border-gray-200 pb-6 mb-8">
              <h2><b>1. Eligibility & Registration</b></h2>
              <ul>
                <li>Be a licensed medical doctor by the Medical and Dental Council of Nigeria (MDCN) or equivalent international board.</li>
                <li>Hold a valid, active medical license in your country of practice.</li>
                <li>Provide authentic credentials, certificates, and professional references.</li>
                <li>Pass our internal vetting and onboarding process.</li>
              </ul>
            </section>

            <section className="border-b border-gray-200 pb-6 mb-8">
              <h2><b>2. Scope of Engagement</b></h2>
              <ul>
                <li>Provide non-emergency, general medical consultations through the platform.</li>
                <li>Conduct services remotely via the Med Bridge Afrik app, adhering to ethical, legal, and professional standards.</li>
                <li>You are not an employee of Med Bridge Afrik; you act as an independent healthcare provider.</li>
              </ul>
            </section>

            <section className="border-b border-gray-200 pb-6 mb-8">
              <h2><b>3. Availability & Scheduling</b></h2>
              <ul>
                <li>You are responsible for managing your own availability and consultation slots.</li>
                <li>You agree to attend all scheduled appointments punctually, and to notify us and the patient of unavoidable absences at least 4 hours in advance.</li>
              </ul>
            </section>

            <section className="border-b border-gray-200 pb-6 mb-8">
              <h2><b>4. Clinical Responsibility</b></h2>
              <ul>
                <li>Keep detailed records of consultations using our platform tools.</li>
                <li>Respect patient confidentiality and NDPA-compliant data practices.</li>
                <li>Avoid prescribing restricted substances or making unverified diagnoses.</li>
                <li>Refer patients to local labs, pharmacies, or clinics when necessary.</li>
                <li>You bear sole responsibility for your medical advice, diagnosis, and prescriptions.</li>
              </ul>
            </section>

            <section className="border-b border-gray-200 pb-6 mb-8">
              <h2><b>5. Data Confidentiality & Compliance</b></h2>
              <ul>
                <li>Comply with the Nigeria Data Protection Act (NDPA), HIPAA, or applicable data laws in your jurisdiction.</li>
                <li>Protect all patient health data obtained through the platform.</li>
                <li>Never download, transfer, or share patient information outside the Med Bridge Afrik system without patient consent.</li>
              </ul>
            </section>

            <section className="border-b border-gray-200 pb-6 mb-8">
              <h2><b>6. Compensation & Payment</b></h2>
              <ul>
                <li>You will receive payment per consultation, at rates agreed upon in advance.</li>
                <li>Payments are made monthly to your nominated account, after deduction of platform service fees.</li>
                <li>You are responsible for any tax or reporting obligations in your jurisdiction.</li>
              </ul>
            </section>

            <section className="border-b border-gray-200 pb-6 mb-8">
              <h2><b>7. Prohibited Conduct</b></h2>
              <ul>
                <li>Misrepresent your identity or qualifications.</li>
                <li>Solicit patients for off-platform services.</li>
                <li>Prescribe or recommend non-medically approved treatments.</li>
                <li>Record or distribute consultations without explicit consent.</li>
                <li>Discriminate, abuse, or harass any patient or staff.</li>
              </ul>
              <p>Breaches may result in immediate account suspension or legal action.</p>
            </section>

            <section className="border-b border-gray-200 pb-6 mb-8">
              <h2><b>8. Indemnity & Liability</b></h2>
              <ul>
                <li>You agree to indemnify Med Bridge Afrik from any claims, malpractice suits, or liabilities arising from your actions or omissions.</li>
                <li>Med Bridge Afrik is not liable for your clinical decisions, patient outcomes, or platform downtime.</li>
                <li>We recommend maintaining professional indemnity insurance.</li>
              </ul>
            </section>

            <section className="border-b border-gray-200 pb-6 mb-8">
              <h2><b>9. Suspension or Termination</b></h2>
              <ul>
                <li>We reserve the right to suspend or terminate your account if:</li>
                <ul className="ml-6">
                  <li>You breach these Terms</li>
                  <li>Receive repeated patient complaints</li>
                  <li>Fail credential checks or provide false documentation</li>
                  <li>Fail to comply with regulatory bodies</li>
                </ul>
              </ul>
            </section>

            <section className="border-b border-gray-200 pb-6 mb-8">
              <h2><b>10. Governing Law</b></h2>
              <p>
                These Terms shall be governed by the laws of the Federal Republic of Nigeria. Disputes will be resolved through arbitration or court within Nigeria.
              </p>
            </section>

            <section className="pb-6 mb-4">
              <h2><b>11. Contact</b></h2>
              <p>
                For support or questions, contact us at: <a href="mailto:doctors@medbridgeafrik.com">doctors@medbridgeafrik.com</a>
              </p>
            </section>

            <section className="pb-6 mb-4">
              <h2><b>Declaration of Acceptance</b></h2>
              <ul>
                <li>By registering and clicking “I Agree”, you:</li>
                <ul className="ml-6">
                  <li>Confirm that all information provided is accurate</li>
                  <li>Accept and agree to these Terms and Conditions</li>
                  <li>Consent to provide teleconsultation services via Med Bridge Afrik</li>
                </ul>
              </ul>
            </section>
          </div>
        </div>
      </main>
      <Footer />
    </>
  );
}
