"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleFullscreen from '@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen';
import LegalSection from '@/components/legal/LegalSection';
import FooterBaseCard from '@/components/sections/footer/FooterBaseCard';

export default function PrivacyPolicyPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="icon-arrow"
      defaultTextAnimation="entrance-slide"
      borderRadius="rounded"
      contentWidth="smallMedium"
      sizing="largeSizeMediumTitles"
      background="aurora"
      cardStyle="soft-shadow"
      primaryButtonStyle="double-inset"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="extrabold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleFullscreen
          navItems={[
            { name: "Home", id: "hero" },
            { name: "About", id: "about" },
            { name: "Adopt", id: "product" },
            { name: "Testimonials", id: "testimonial" },
            { name: "Contact", id: "contact" },
            { name: "Privacy Policy", id: "/privacy-policy" },
            { name: "Terms of Service", id: "/terms-of-service" }
          ]}
          brandName="PawShelter"
          bottomLeftText="Saving Lives, One Paw at a Time"
          bottomRightText="info@pawshelter.org"
        />
      </div>

      <div id="legal-content" data-section="legal-content">
        <LegalSection
          layout="page"
          title="Privacy Policy"
          subtitle="Last updated: January 15, 2025"
          sections={[
            {
              heading: "1. Introduction",              content: [
                {
                  type: "paragraph",                  text: "PawShelter (\"we\", \"us\", \"our\", or \"Company\") operates the PawShelter website and mobile application (collectively, the \"Service\"). This Privacy Policy explains how we collect, use, disclose, and safeguard your information when you visit our website, use our mobile application, or interact with our services."
                },
                {
                  type: "paragraph",                  text: "Please read this Privacy Policy carefully. If you do not agree with our policies and practices, please do not use our Service. By accessing and using PawShelter, you acknowledge that you have read, understood, and agree to be bound by all the terms of this Privacy Policy."
                }
              ]
            },
            {
              heading: "2. Information We Collect",              content: [
                {
                  type: "paragraph",                  text: "We collect information in several ways, including information you provide directly to us, information collected automatically as you use our Service, and information from third-party sources."
                },
                {
                  type: "paragraph",                  text: "Information You Provide Directly:"
                },
                {
                  type: "list",                  items: [
                    "Account registration information (name, email address, password)",                    "Adoption application details (address, phone number, household composition, pet ownership history)",                    "Payment information (processed securely through third-party payment processors)",                    "Volunteer and employment applications",                    "Communications you send to us (emails, messages, support requests)",                    "Survey and feedback responses"
                  ]
                },
                {
                  type: "paragraph",                  text: "Information Collected Automatically:"
                },
                {
                  type: "list",                  items: [
                    "Device information (device type, operating system, browser type)",                    "Usage data (pages visited, time spent on pages, links clicked)",                    "Location data (with your permission)",                    "Cookies and similar tracking technologies",                    "IP address and internet service provider information"
                  ]
                }
              ]
            },
            {
              heading: "3. How We Use Your Information",              content: [
                {
                  type: "paragraph",                  text: "We use the information we collect for various purposes, including:"
                },
                {
                  type: "list",                  items: [
                    "Processing and managing adoption applications and agreements",                    "Managing volunteer and employment applications",                    "Providing customer support and responding to inquiries",                    "Sending administrative communications, updates, and announcements",                    "Conducting marketing campaigns and promotional activities",                    "Improving and optimizing our Service",                    "Detecting, investigating, and preventing fraudulent transactions and other illegal activities",                    "Complying with legal and regulatory requirements",                    "Analyzing trends and usage patterns to enhance our Service"
                  ]
                }
              ]
            },
            {
              heading: "4. Information Sharing and Disclosure",              content: [
                {
                  type: "paragraph",                  text: "We do not sell, trade, or rent your personal information to third parties. However, we may share your information in the following circumstances:"
                },
                {
                  type: "list",                  items: [
                    "With service providers who assist us in operating our website and conducting our business (under confidentiality agreements)",                    "When required by law or legal process",                    "To protect our rights, privacy, safety, or property",                    "In connection with a merger, acquisition, or sale of assets",                    "With your explicit consent or at your direction"
                  ]
                }
              ]
            },
            {
              heading: "5. Data Security",              content: [
                {
                  type: "paragraph",                  text: "We implement appropriate technical and organizational measures to protect your personal information against unauthorized access, alteration, disclosure, or destruction. These measures include encryption, secure servers, and access controls."
                },
                {
                  type: "paragraph",                  text: "However, no method of transmission over the internet or electronic storage is completely secure. While we strive to protect your personal information, we cannot guarantee absolute security."
                }
              ]
            },
            {
              heading: "6. Your Privacy Rights",              content: [
                {
                  type: "paragraph",                  text: "Depending on your location, you may have certain rights regarding your personal information, including:"
                },
                {
                  type: "list",                  items: [
                    "The right to access, review, and obtain a copy of your personal data",                    "The right to correct or update inaccurate information",                    "The right to request deletion of your personal information",                    "The right to opt-out of marketing communications",                    "The right to withdraw consent at any time",                    "The right to data portability"
                  ]
                },
                {
                  type: "paragraph",                  text: "To exercise any of these rights, please contact us at privacy@pawshelter.org with your request. We will respond within 30 days of receiving your request."
                }
              ]
            },
            {
              heading: "7. Cookies and Tracking Technologies",              content: [
                {
                  type: "paragraph",                  text: "We use cookies, web beacons, and similar tracking technologies to enhance your experience on our Service. These technologies help us remember your preferences, understand how you use our Service, and deliver personalized content."
                },
                {
                  type: "paragraph",                  text: "You can control cookie settings through your browser. Most browsers allow you to refuse cookies or alert you when cookies are being sent. Please note that disabling cookies may affect the functionality of our Service."
                }
              ]
            },
            {
              heading: "8. Children's Privacy",              content: [
                {
                  type: "paragraph",                  text: "Our Service is not intended for children under the age of 13. We do not knowingly collect personal information from children under 13. If we become aware that we have collected personal information from a child under 13, we will take steps to delete such information and terminate the child's account."
                },
                {
                  type: "paragraph",                  text: "For children between 13 and 18, we provide additional privacy protections and limit the collection and use of their information."
                }
              ]
            },
            {
              heading: "9. Third-Party Links",              content: [
                {
                  type: "paragraph",                  text: "Our Service may contain links to third-party websites and services that are not operated by PawShelter. This Privacy Policy does not apply to third-party services, and we are not responsible for their privacy practices. We recommend reviewing the privacy policies of any third-party services before providing your personal information."
                }
              ]
            },
            {
              heading: "10. International Data Transfers",              content: [
                {
                  type: "paragraph",                  text: "Your information may be transferred to, stored in, and processed in countries other than your country of residence. These countries may have data protection laws that differ from your home country. By using our Service, you consent to the transfer of your information to countries outside your country of residence."
                }
              ]
            },
            {
              heading: "11. Changes to This Privacy Policy",              content: [
                {
                  type: "paragraph",                  text: "We may update this Privacy Policy from time to time to reflect changes in our practices, technology, legal requirements, or other factors. We will notify you of any material changes by posting the updated Privacy Policy on our website and updating the \"Last updated\" date."
                },
                {
                  type: "paragraph",                  text: "Your continued use of our Service after any changes constitutes your acceptance of the updated Privacy Policy."
                }
              ]
            },
            {
              heading: "12. Contact Us",              content: [
                {
                  type: "paragraph",                  text: "If you have questions, concerns, or requests regarding this Privacy Policy or our privacy practices, please contact us at:"
                },
                {
                  type: "list",                  items: [
                    "Email: privacy@pawshelter.org",                    "Phone: 1-800-PAWSHELTER",                    "Mailing Address: PawShelter, 123 Animal Care Lane, Pet City, PC 12345"
                  ]
                },
                {
                  type: "paragraph",                  text: "We will respond to your inquiry within 30 days."
                }
              ]
            }
          ]}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseCard
          logoText="PawShelter"
          columns={[
            {
              title: "Adopt",              items: [
                { label: "Available Pets", href: "#product" },
                { label: "Adoption Process", href: "#" },
                { label: "Success Stories", href: "#testimonial" },
                { label: "Privacy Policy", href: "/privacy-policy" },
                { label: "Terms of Service", href: "/terms-of-service" }
              ]
            },
            {
              title: "Support",              items: [
                { label: "Volunteer", href: "#contact" },
                { label: "Donate", href: "#" },
                { label: "Become a Sponsor", href: "#" }
              ]
            },
            {
              title: "About",              items: [
                { label: "Our Mission", href: "#about" },
                { label: "Meet the Team", href: "#" },
                { label: "Contact Us", href: "#contact" }
              ]
            },
            {
              title: "Resources",              items: [
                { label: "Pet Care Tips", href: "#" },
                { label: "Blog", href: "#" },
                { label: "FAQ", href: "#" }
              ]
            }
          ]}
          copyrightText="© 2025 PawShelter. All rights reserved. Saving lives, one paw at a time."
        />
      </div>
    </ThemeProvider>
  );
}
