"use client";

import { Navbar } from "@/components/home/Navbar";
import { Footer } from "@/components/home/Footer";
import { PageHeader } from "@/components/shared/PageHeader";

export default function PrivacyPolicyPage() {
  return (
    <div className="flex flex-1 flex-col">
      <Navbar />

      <PageHeader
        title="Privacy Policy"
        breadcrumbs={[
          { label: "Home", href: "/" },
          { label: "Privacy Policy" },
        ]}
      />

      <section className="py-20 lg:py-24 bg-white">
        <div className="mx-auto max-w-4xl px-6 lg:px-8 prose prose-obsidian">
          <p className="text-sm text-obsidian-500">Last updated: May 25, 2026</p>

          <h2>1. Introduction</h2>
          <p>
            Diaspora Property (&quot;we&quot;, &quot;our&quot;, &quot;us&quot;) is committed to protecting your privacy.
            This Privacy Policy explains how we collect, use, disclose, and safeguard your information when you use our
            platform.
          </p>

          <h2>2. Information We Collect</h2>
          <h3>Personal Information</h3>
          <p>When you create an account or use our services, we may collect:</p>
          <ul>
            <li>Name, email address, and phone number</li>
            <li>Country of residence, city, and nationality</li>
            <li>Profile photo</li>
            <li>Payment information (processed securely by third-party providers)</li>
          </ul>

          <h3>Automatically Collected Information</h3>
          <p>When you access our platform, we automatically collect:</p>
          <ul>
            <li>IP address and browser type</li>
            <li>Device information and operating system</li>
            <li>Pages visited and time spent on the platform</li>
            <li>Referring website and search terms</li>
          </ul>

          <h2>3. How We Use Your Information</h2>
          <p>We use the information we collect to:</p>
          <ul>
            <li>Provide, maintain, and improve our services</li>
            <li>Process transactions and manage subscriptions</li>
            <li>Send you relevant property listings, investment updates, and magazine content</li>
            <li>Communicate with you about your account, inquiries, and support requests</li>
            <li>Personalise your experience and deliver targeted content</li>
            <li>Detect, prevent, and address fraud or security issues</li>
            <li>Comply with legal obligations</li>
          </ul>

          <h2>4. Information Sharing</h2>
          <p>We do not sell your personal information. We may share your information with:</p>
          <ul>
            <li><strong>Property Companies:</strong> When you enquire about a listing, your contact details may be shared with the relevant company</li>
            <li><strong>Service Providers:</strong> Third-party services that help us operate the platform (hosting, email, analytics)</li>
            <li><strong>Legal Requirements:</strong> When required by law, court order, or governmental authority</li>
          </ul>

          <h2>5. Data Security</h2>
          <p>
            We implement appropriate technical and organisational measures to protect your personal information,
            including encryption, secure servers, and access controls. However, no method of transmission over the
            internet is 100% secure, and we cannot guarantee absolute security.
          </p>

          <h2>6. Cookies & Tracking</h2>
          <p>
            We use cookies and similar tracking technologies to enhance your experience, analyse usage patterns, and
            deliver relevant advertising. You can manage cookie preferences through your browser settings.
          </p>

          <h2>7. Your Rights</h2>
          <p>Depending on your location, you may have the right to:</p>
          <ul>
            <li>Access the personal data we hold about you</li>
            <li>Request correction of inaccurate data</li>
            <li>Request deletion of your data</li>
            <li>Object to or restrict processing of your data</li>
            <li>Data portability</li>
            <li>Withdraw consent at any time</li>
          </ul>
          <p>
            To exercise these rights, contact us at{" "}
            <a href="mailto:privacy@diasporaproperty.com" className="text-primary hover:text-primary/80">
              privacy@diasporaproperty.com
            </a>.
          </p>

          <h2>8. Data Retention</h2>
          <p>
            We retain your personal information for as long as your account is active or as needed to provide services.
            We may retain certain information as required by law or for legitimate business purposes.
          </p>

          <h2>9. Children&apos;s Privacy</h2>
          <p>
            Our Service is not intended for individuals under the age of 18. We do not knowingly collect personal
            information from children.
          </p>

          <h2>10. International Data Transfers</h2>
          <p>
            Your information may be transferred to and processed in countries other than your country of residence.
            We ensure appropriate safeguards are in place for such transfers in compliance with applicable data
            protection laws.
          </p>

          <h2>11. Changes to This Policy</h2>
          <p>
            We may update this Privacy Policy from time to time. We will notify you of material changes by posting
            the new policy on this page and updating the &quot;Last updated&quot; date.
          </p>

          <h2>12. Contact Us</h2>
          <p>
            If you have questions or concerns about this Privacy Policy, please contact us at{" "}
            <a href="mailto:privacy@diasporaproperty.com" className="text-primary hover:text-primary/80">
              privacy@diasporaproperty.com
            </a>.
          </p>
        </div>
      </section>

      <Footer />
    </div>
  );
}
