import React, { useEffect } from 'react';

export default function PrivacyPolicy() {
  useEffect(() => {
    document.title = "Privacy Policy - Legacy Kairos | Premium 3.5 & 4 BHK in Pune";
    const metaDesc = document.querySelector('meta[name="description"]');
    if (metaDesc) {
      metaDesc.setAttribute("content", "Review the Privacy Policy for Legacy Kairos. Learn how we handle secure communications, property inquiries, and cookies according to the DPDP Act 2023.");
    }
  }, []);

  return (
    <main className="flex-grow bg-[#fbfbfb] py-24 px-4 sm:px-6">
      <div className="max-w-4xl mx-auto bg-white p-8 sm:p-12 shadow-sm border border-gray-100 rounded-2xl">
        <h1 className="text-4xl font-serif text-secondary mb-8 pb-4 border-b border-gray-200">Privacy Policy</h1>
        
        <p className="mb-6 text-gray-600 leading-relaxed">
          Your privacy is important to us. This Privacy Policy explains how we collect, use, store, and protect your personal information when you use our website or services, in accordance with the Digital Personal Data Protection Act, 2023 (“DPDP Act”).
        </p>

        <h2 className="text-2xl font-serif text-secondary mt-10 mb-4">1. Information We Collect (As per Section 4 and 6)</h2>
        <p className="mb-4 text-gray-600 leading-relaxed">We may collect and process the following categories of personal data:</p>
        <ul className="list-disc pl-6 mb-6 text-gray-600 space-y-2">
          <li><strong className="text-gray-800 font-medium">Identity Data</strong> – Name, age, gender.</li>
          <li><strong className="text-gray-800 font-medium">Contact Data</strong> – Email address, telephone number, postal address.</li>
          <li><strong className="text-gray-800 font-medium">Property Enquiry Data</strong> – Project preferences, budget range, location interests.</li>
          <li><strong className="text-gray-800 font-medium">Technical Data</strong> – IP address, browser type, device information.</li>
          <li><strong className="text-gray-800 font-medium">Communication Data</strong> – Emails, messages or enquiries sent to us.</li>
        </ul>
        <p className="mb-6 text-gray-600 leading-relaxed">
          We do not knowingly collect sensitive personal data such as financial information, passwords, biometric data, or health data unless expressly required and with explicit consent.
        </p>

        <h2 className="text-2xl font-serif text-secondary mt-10 mb-4">2. Mode of Collection: (As per section 5, 6 and 8)</h2>
        <p className="mb-4 text-gray-600 leading-relaxed">Personal data is collected when you:</p>
        <ul className="list-disc pl-6 mb-6 text-gray-600 space-y-2">
          <li>Fill out enquiry or registration forms,</li>
          <li>Contact us via email, phone or website,</li>
          <li>Subscribe to newsletters or updates,</li>
          <li>Browse the website (through cookies and analytics tools)</li>
        </ul>

        <h2 className="text-2xl font-serif text-secondary mt-10 mb-4">3. Purpose and Use Made of The Collection (Section 4, 5, 6 and 7)</h2>
        <p className="mb-4 text-gray-600 leading-relaxed">The personal data collected is used for the following lawful purposes:</p>
        <ul className="list-disc pl-6 mb-6 text-gray-600 space-y-2">
          <li>To respond to your enquiries and requests,</li>
          <li>To provide information relating to our projects and services,</li>
          <li>To process applications, bookings or expressions of interest,</li>
          <li>To improve website functionality and user experience,</li>
          <li>To communicate administrative or service-related information,</li>
          <li>To comply with statutory and regulatory requirements,</li>
          <li>To prevent fraud and ensure website security</li>
        </ul>
        <p className="mb-6 text-gray-600 leading-relaxed">Processing is carried out only for purposes that are lawful, necessary and proportionate.</p>

        <h2 className="text-2xl font-serif text-secondary mt-10 mb-4">4. Consent and Your Rights: (Section 6, 7, 11, 12, 13, 14)</h2>
        <p className="mb-4 text-gray-600 leading-relaxed">By sharing your information, you consent to its collection and use as per this Policy.</p>
        <p className="mb-4 text-gray-600 leading-relaxed">You have the right to:</p>
        <ul className="list-disc pl-6 mb-6 text-gray-600 space-y-2">
          <li>Access your personal data</li>
          <li>Correct inaccurate information</li>
          <li>Withdraw consent at any time</li>
          <li>Request erasure of personal data</li>
          <li>Raise grievances regarding your data</li>
          <li>Nominate another person to exercise your rights in case of incapacity or death</li>
        </ul>
        <p className="mb-6 text-gray-600 leading-relaxed">You may withdraw consent through the unsubscribe option or by contacting us.</p>

        <h2 className="text-2xl font-serif text-secondary mt-10 mb-4">5. Legal Basis for Processing</h2>
        <p className="mb-4 text-gray-600 leading-relaxed">We process your personal data on the basis of:</p>
        <ul className="list-disc pl-6 mb-6 text-gray-600 space-y-2">
          <li>Your consent under Section 6 of the Digital Personal Data Protection Act, 2023,</li>
          <li>Performance of contractual obligations,</li>
          <li>Compliance with legal obligations,</li>
          <li>Legitimate business interests</li>
        </ul>

        <h2 className="text-2xl font-serif text-secondary mt-10 mb-4">6. Data Protection: (Section 8 Sub sec-5)</h2>
        <p className="mb-6 text-gray-600 leading-relaxed">
          We collect and use personal information only for the stated purposes or as required by law. We take reasonable steps to keep the information accurate, secure, and protected from loss, theft, unauthorized access, disclosure, or misuse.
        </p>

        <h2 className="text-2xl font-serif text-secondary mt-10 mb-4">7. Sharing of Information: (Our Voluntary disclosure)</h2>
        <p className="mb-4 text-gray-600 leading-relaxed">We do not sell or rent your personal information. Your information may be shared only with our authorized internal department and authorities such as:</p>
        <ul className="list-disc pl-6 mb-6 text-gray-600 space-y-2">
          <li>Only Our Authorized CRM & Marketing Department.</li>
          <li>Government or legal authorities when required by law. (U/s. 16 of DPDP Act, 2023)</li>
        </ul>

        <h2 className="text-2xl font-serif text-secondary mt-10 mb-4">8. Data Retention: (Section 8 Sub Sec- 7)</h2>
        <p className="mb-6 text-gray-600 leading-relaxed">
          We retain your information only for as long as necessary for the purpose it was collected or as required under applicable law. Thereafter, the data will be deleted or anonymized.
        </p>

        <h2 className="text-2xl font-serif text-secondary mt-10 mb-4">9. Cookie:</h2>
        <p className="mb-6 text-gray-600 leading-relaxed">
          Our website may use cookies to improve your browsing experience and website performance. You can manage cookie preferences through your browser settings.
        </p>

        <h2 className="text-2xl font-serif text-secondary mt-10 mb-4">10. Children’s Privacy: (Section-9)</h2>
        <p className="mb-6 text-gray-600 leading-relaxed">
          This website is not intended for individuals below 18 years of age. We do not knowingly collect data from minors.
        </p>

        <h2 className="text-2xl font-serif text-secondary mt-10 mb-4">11. Changes to This Policy:</h2>
        <p className="mb-6 text-gray-600 leading-relaxed">
          We may update this Privacy Policy from time to time. Updated policies will be posted on our website and will become effective immediately upon posting.
        </p>

        <h2 className="text-2xl font-serif text-secondary mt-10 mb-4">12. Third Party Link: (Section – 8 Sub sec- 1, 2 and 3)</h2>
        <p className="mb-6 text-gray-600 leading-relaxed">
          Our website may contain links to third-party websites for your convenience or information purposes. We are not responsible for the privacy practices, content, or policies of such third-party websites. Users are advised to review the privacy policies of those websites before sharing any personal information.
        </p>

        <h2 className="text-2xl font-serif text-secondary mt-10 mb-4">13. Grievance Redressal Officer: (Section -13)</h2>
        <p className="mb-4 text-gray-600 leading-relaxed">For any questions, complaints, or requests regarding your personal data, you may contact:</p>
        <div className="bg-gray-50 border border-gray-100 p-6 rounded-xl mb-6 text-gray-600 leading-relaxed">
          <p><strong className="text-secondary">Name:</strong> Mangesh Kate</p>
          <p><strong className="text-secondary">Designation:</strong> Manager - CRM</p>
          <p><strong className="text-secondary">Email:</strong> <a href="mailto:mangesh.kate@legacylifespaces.com" className="text-primary hover:underline">mangesh.kate@legacylifespaces.com</a></p>
          <p><strong className="text-secondary">Contact Number:</strong> <a href="tel:8793058486" className="text-primary hover:underline">8793058486</a></p>
          <p><strong className="text-secondary">Address:</strong> Office No. 313, 3rd Floor, Rainbow Plaza, Shivar Chowk, Rahatani, Pune – 411017</p>
        </div>

        <h2 className="text-2xl font-serif text-secondary mt-10 mb-4">14. Contact Us:</h2>
        <p className="mb-6 text-gray-600 leading-relaxed">
          If you have any questions regarding this Privacy Policy or your personal data, please contact us through the details provided above.
        </p>
      </div>
    </main>
  );
}
