import { LandingNav } from "@/components/landing/LandingNav";
import { Link } from "react-router-dom";
import acmNavIcon from "@/assets/acm-nav-icon.png";

const PrivacyPolicyPage = () => {
  return (
    <div className="min-h-screen bg-background flex flex-col">
      <LandingNav />
      <main className="flex-grow py-16 px-6">
        <div className="max-w-3xl mx-auto prose prose-sm dark:prose-invert">
          <h1 className="text-3xl font-bold tracking-tight text-foreground">Privacy Policy</h1>
          <p className="text-muted-foreground text-sm">Last updated: March 21, 2026</p>

          <h2>1. Information We Collect</h2>
          <p>
            Avria Community Management, LLC ("ACM," "we," "us," or "our") collects personal information you provide when you create an account, use our services, or contact us. This includes:
          </p>
          <ul>
            <li>Name, email address, phone number, and mailing address</li>
            <li>Property and unit information for community management purposes</li>
            <li>Payment and billing information processed through secure third-party providers</li>
            <li>Documents and correspondence submitted through the platform</li>
            <li>Usage data, device information, and cookies collected automatically</li>
          </ul>

          <h2>2. How We Use Your Information</h2>
          <p>We use collected information to:</p>
          <ul>
            <li>Provide and maintain our community management services</li>
            <li>Process transactions, assessments, and payments</li>
            <li>Communicate with homeowners, board members, and vendors</li>
            <li>Generate reports and manage association records</li>
            <li>Comply with legal obligations and enforce our agreements</li>
            <li>Improve our platform and develop new features</li>
          </ul>

          <h2>3. Information Sharing</h2>
          <p>
            We do not sell your personal information. We may share information with:
          </p>
          <ul>
            <li>Association board members as required for community management</li>
            <li>Service providers and vendors who assist in delivering our services</li>
            <li>Payment processors for transaction handling</li>
            <li>Legal authorities when required by law or to protect our rights</li>
          </ul>

          <h2>4. Data Security</h2>
          <p>
            We implement industry-standard security measures including encryption, access controls, and secure data storage to protect your personal information. However, no method of transmission over the Internet is 100% secure.
          </p>

          <h2>5. Data Retention</h2>
          <p>
            We retain personal information for as long as necessary to provide our services and comply with legal obligations. Association records are retained in accordance with applicable state and federal requirements.
          </p>

          <h2>6. Your Rights</h2>
          <p>Depending on your jurisdiction, you may have the right to:</p>
          <ul>
            <li>Access, correct, or delete your personal information</li>
            <li>Opt out of certain data processing activities</li>
            <li>Request a copy of your data in a portable format</li>
            <li>Withdraw consent where processing is based on consent</li>
          </ul>

          <h2>7. Cookies and Tracking</h2>
          <p>
            We use cookies and similar technologies to improve your experience, analyze usage patterns, and remember preferences. You can manage cookie preferences through your browser settings.
          </p>

          <h2>8. Third-Party Services</h2>
          <p>
            Our platform may integrate with third-party services (e.g., payment processors, e-signature providers). These services have their own privacy policies, and we encourage you to review them.
          </p>

          <h2>9. Children's Privacy</h2>
          <p>
            Our services are not directed to individuals under 18. We do not knowingly collect personal information from children.
          </p>

          <h2>10. 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 updated policy on our platform and updating the "Last updated" date.
          </p>

          <h2>11. Contact Us</h2>
          <p>
            If you have questions about this Privacy Policy, please contact us at:
          </p>
          <p>
            <strong>Avria Community Management, LLC</strong><br />
            Email: <a href="mailto:cam@avriacam.com" className="text-primary hover:underline">cam@avriacam.com</a>
          </p>
        </div>
      </main>

      <footer className="border-t bg-card py-12 px-6">
        <div className="max-w-7xl mx-auto flex flex-col md:flex-row justify-between items-center gap-6">
          <div className="flex flex-col items-center md:items-start gap-2">
            <div className="flex items-center gap-1.5">
              <div className="flex h-8 w-8 items-center justify-center rounded-sm bg-foreground overflow-hidden">
                <img src={acmNavIcon} alt="ACM" className="h-5 w-5 object-contain" />
              </div>
              <span className="text-sm font-extrabold tracking-tight">ACM</span>
            </div>
            <p className="text-muted-foreground text-sm mt-2">
              &copy; {new Date().getFullYear()} Avria Community Management, LLC. All rights reserved.
            </p>
          </div>
          <div className="flex gap-8 text-sm font-medium text-muted-foreground">
            <Link to="/privacy" className="hover:text-primary transition-colors">Privacy Policy</Link>
            <Link to="/terms" className="hover:text-primary transition-colors">Terms of Service</Link>
            <a href="mailto:cam@avriacam.com" className="hover:text-primary transition-colors">Contact</a>
          </div>
        </div>
      </footer>
    </div>
  );
};

export default PrivacyPolicyPage;
