'use client';

import React from 'react';
import { useSearchParams } from 'next/navigation';
import Navbar from '../../components/Common/Navbar';
import Footer from '../../components/Common/Footer';

const currentDate = new Date().toLocaleDateString();

export default function ConfidentialityAgreementPage() {
  const searchParams = useSearchParams();
  const firstName = searchParams.get('firstName') || '___________';
  const lastName = searchParams.get('lastName') || '___________';
  const licenceNumber = searchParams.get('licenceNumber') || '___________________________';
  const country = searchParams.get('country') || '___________________________';

  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">
              Confidentiality & Non-Disclosure Agreement (NDA) for Doctors – Med Bridge Afrik
            </h1>
          </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 className="mt-2">
                <strong>Effective Date:</strong> {currentDate}
              </p>
              <p>
                This Confidentiality Agreement (&quot;Agreement&quot;) is made between Med Bridge Afrik Ltd (&ldquo;Company&rdquo;), and the undersigned doctor (&ldquo;Healthcare Provider&rdquo; or &ldquo;Doctor&rdquo;), collectively referred to as the &quot;Parties.&quot;
              </p>

            </section>

            <section className="border-b border-gray-200 pb-6 mb-8">
              <h2><b>1. Definition of Confidential Information</b></h2>
              <ul>
                <li>Patient medical records, health history, and personal information</li>
                <li>Business operations, pricing structures, and strategies of Med Bridge Afrik</li>
                <li>Technology, platform design, processes, software, and proprietary systems</li>
                <li>Any other non-public information disclosed verbally or in writing</li>
              </ul>
            </section>

            <section className="border-b border-gray-200 pb-6 mb-8">
              <h2><b>2. Doctor&quot;s Obligations</b></h2>
              <ul>
                <li>You shall maintain absolute confidentiality regarding any patient or company information accessed during your engagement.</li>
                <li>You shall not disclose, duplicate, transmit, or exploit any confidential information for personal, commercial, or third-party benefit without prior written permission.</li>
                <li>You will only use confidential information for the purpose of delivering telehealth services as contracted.</li>
                <li>You will ensure that any devices, apps, or accounts used for consultations are secured and not accessible to unauthorized individuals.</li>
                <li>You agree to report any data breaches or suspicious access within 24 hours of detection.</li>
              </ul>
            </section>

            <section className="border-b border-gray-200 pb-6 mb-8">
              <h2><b>3. Legal & Ethical Compliance</b></h2>
              <ul>
                <li>The Nigeria Data Protection Act (NDPA) and applicable international data protection laws</li>
                <li>The Medical and Dental Council of Nigeria (MDCN) Code of Ethics</li>
                <li>Any local laws governing confidentiality, consent, and telehealth</li>
              </ul>
            </section>

            <section className="border-b border-gray-200 pb-6 mb-8">
              <h2><b>4. Exclusions</b></h2>
              <ul>
                <li>Information already publicly known at the time of disclosure</li>
                <li>Information that becomes public through no fault of the Doctor</li>
                <li>Information disclosed legally by a third party with the right to do so</li>
                <li>Information required to be disclosed under a valid court or regulatory order (with prior notice to Med Bridge Afrik)</li>
              </ul>
            </section>

            <section className="border-b border-gray-200 pb-6 mb-8">
              <h2><b>5. Duration of Obligation</b></h2>
              <ul>
                <li>Confidentiality remains in force during the engagement and for two (2) years after termination.</li>
                <li>Medical records are bound by indefinite confidentiality under ethical codes and law.</li>
              </ul>
            </section>

            <section className="border-b border-gray-200 pb-6 mb-8">
              <h2><b>6. Breach and Remedies</b></h2>
              <ul>
                <li>Breaches may result in termination of access, regulatory reporting, legal claims, or monetary damages.</li>
                <li>Med Bridge Afrik reserves the right to seek injunctive relief or legal action for unauthorized disclosures.</li>
              </ul>
            </section>

            <section className="border-b border-gray-200 pb-6 mb-8">
              <h2><b>7. Governing Law & Jurisdiction</b></h2>
              <p>This Agreement shall be governed by the laws of the Federal Republic of Nigeria. Disputes shall be resolved through arbitration or courts within Nigeria.</p>
            </section>

            <section className="pb-6 mb-4">
              <h2><b>8. Acknowledgement</b></h2>
              <ul>
                <li>You have read and understood this Confidentiality Agreement</li>
                <li>You agree to uphold data protection and ethical conduct principles</li>
                <li>You understand that violation may lead to legal and professional consequences</li>
              </ul>
            </section>

            <section className="pb-6 mb-4">
              <h2><b>Authorized Signatures</b></h2>
              <p>
                Doctors Name: {firstName} {lastName} <br />
                License Number: {licenceNumber} <br />
                Country of Practice: {country} <br />
                Signature: ________________________________<br />
                Date: {currentDate}
              </p>

              <div className="mt-6">
                Med Bridge Afrik Ltd (CEO): Taye Ayeni<br />

                <div className="flex items-center gap-2 mt-2">
                  <span>Signature: </span> <img
                    src="/images/tayelogo.png"
                    alt="Signature Logo"
                    className="w-12 h-auto"
                  />
                </div>

                Country: Nigeria<br />
                Date: {currentDate}
              </div>

            </section>
          </div>
        </div>
      </main>
      <Footer />
    </>
  );
}
