'use client';

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

export default function PrivacyPolicy() {
  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">Privacy Policy</h1>
            <p className="mt-3 text-sm md:text-base text-gray-500">Last updated: June 11, 2025</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">
              <h2><b>1. Introduction</b></h2>
              <p>
                Med Bridge Afrik (“we”, “our”, “us”) is committed to protecting your privacy.
                This Privacy Policy outlines how we collect, use, and safeguard your personal
                information when you access our services.
              </p>
            </section>

            <section className="border-b border-gray-200 pb-6 mb-8">
              <h2><b>2. Information We Collect</b></h2>
              <p>We collect the following types of information:</p>
              <ul>
                <li><strong>Personal Info:</strong> Name, email, phone number, date of birth</li>
                <li><strong>Medical Info:</strong> Medical history, test results, prescriptions</li>
                <li><strong>Professional Info:</strong> Doctor credentials, licenses, certifications</li>
                <li><strong>Usage Data:</strong> IP address, browser type, pages visited</li>
                <li><strong>Communication:</strong> Messages, consultation notes, support queries</li>
              </ul>
            </section>

            <section className="border-b border-gray-200 pb-6 mb-8">
              <h2><b>3. How We Use Your Information</b></h2>
              <ul>
                <li>To facilitate secure consultations between doctors and patients</li>
                <li>To store and retrieve medical data for continuity of care</li>
                <li>To match patients with verified medical professionals</li>
                <li>To process payments and issue receipts</li>
                <li>To enhance user experience and improve platform functionality</li>
                <li>To meet legal and compliance obligations</li>
              </ul>
            </section>

            <section className="border-b border-gray-200 pb-6 mb-8">
              <h2><b>4. Data Sharing & Disclosure</b></h2>
              <p>We do not sell your personal data. We may share data with:</p>
              <ul>
                <li>Licensed doctors for healthcare purposes</li>
                <li>Laboratories and pharmacies associated with your care</li>
                <li>Payment processors and insurance providers</li>
                <li>Government or legal authorities as required by law</li>
              </ul>
            </section>

            <section className="border-b border-gray-200 pb-6 mb-8">
              <h2><b>5. Data Security</b></h2>
              <p>
                We implement encryption, secure servers, and role-based access control
                to protect your data. Regular audits and monitoring ensure high standards
                of security.
              </p>
            </section>

            <section className="border-b border-gray-200 pb-6 mb-8">
              <h2><b>6. Your Rights</b></h2>
              <p>You have the right to:</p>
              <ul>
                <li>Access your personal data</li>
                <li>Request correction or deletion</li>
                <li>Withdraw consent at any time</li>
                <li>Export your health records (when applicable)</li>
              </ul>
            </section>

            <section className="border-b border-gray-200 pb-6 mb-8">
              <h2><b>7. Cookies & Tracking</b></h2>
              <p>
                We use cookies for analytics and to improve functionality. You can modify
                cookie settings in your browser, but disabling cookies may affect usability.
              </p>
            </section>

            <section className="border-b border-gray-200 pb-6 mb-8">
              <h2><b>8. Children&rsquo;s Privacy</b></h2>
              <p>
                Our services are not intended for users under 18 without parental consent.
                We do not knowingly collect data from minors without verified authorization.
              </p>
            </section>

            <section className="border-b border-gray-200 pb-6 mb-8">
              <h2><b>9. Data Retention</b></h2>
              <p>
                We retain your data while your account remains active, or as required by law.
                You may request data deletion at any time.
              </p>
            </section>

            <section className="border-b border-gray-200 pb-6 mb-8">
              <h2><b>10. International Users</b></h2>
              <p>
                Your data may be processed or stored outside your country of residence,
                in accordance with international data protection standards.
              </p>
            </section>

            <section className="mb-6">
              <h2><b>11. Contact Us</b></h2>
              <p>
                For questions about this Privacy Policy, contact us at:{' '}
                <a
                  href="mailto:privacy@medbridgeafrik.com"
                  className="text-primary font-medium underline"
                >
                  privacy@medbridgeafrik.com
                </a>
              </p>
            </section>
          </div>
        </div>
      </main>
      <Footer />
    </>
  );
}
