import { Metadata } from "next";

export const metadata: Metadata = {
  title: "Privacy Policy – Americas.Pet",
  description: "Learn how Americas.Pet collects, uses, and protects your personal information.",
};

export default function PrivacyPage() {
  return (
    <div className="min-h-screen bg-gray-50">
      <div className="bg-primary-600 text-white py-14">
        <div className="max-w-4xl mx-auto px-4 text-center">
          <h1 className="text-4xl font-bold mb-3">Privacy Policy</h1>
          <p className="text-primary-100">Last updated: January 15, 2026</p>
        </div>
      </div>

      <div className="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-14">
        <div className="bg-white rounded-2xl shadow-sm p-8 lg:p-12 border border-gray-100 prose prose-gray max-w-none">
          <h2>1. Information We Collect</h2>
          <p>We collect information you provide directly, including:</p>
          <ul>
            <li><strong>Account Information:</strong> Name, email address, password, and phone number when you create an account.</li>
            <li><strong>Order Information:</strong> Shipping address, billing address, payment method details (processed by our secure payment provider).</li>
            <li><strong>Pet Information:</strong> Pet name, type, breed, age, and health information (for insurance services).</li>
            <li><strong>Communications:</strong> Messages you send to our support team, reviews, and feedback.</li>
          </ul>

          <h2>2. How We Use Your Information</h2>
          <ul>
            <li>Process and fulfill your orders and insurance enrollments.</li>
            <li>Send order confirmations, shipping updates, and policy documents.</li>
            <li>Provide customer support and respond to inquiries.</li>
            <li>Personalize your shopping experience and recommend products.</li>
            <li>Send promotional emails and newsletters (with your consent).</li>
            <li>Improve our website, products, and services.</li>
            <li>Detect and prevent fraud and unauthorized access.</li>
            <li>Comply with legal obligations.</li>
          </ul>

          <h2>3. Information Sharing</h2>
          <p>We do not sell your personal information. We may share information with:</p>
          <ul>
            <li><strong>Service Providers:</strong> Payment processors, shipping carriers, and cloud hosting services that help us operate.</li>
            <li><strong>Insurance Partners:</strong> Underwriters and claims processors for your pet insurance policy.</li>
            <li><strong>Legal Requirements:</strong> When required by law, court order, or to protect our rights and safety.</li>
          </ul>

          <h2>4. Data Security</h2>
          <p>We implement industry-standard security measures including SSL encryption, secure payment processing, regular security audits, and access controls. However, no method of transmission over the Internet is 100% secure, and we cannot guarantee absolute security.</p>

          <h2>5. Cookies and Tracking</h2>
          <p>We use cookies and similar technologies to:</p>
          <ul>
            <li>Keep you signed in to your account.</li>
            <li>Remember your cart contents and preferences.</li>
            <li>Analyze website traffic and usage patterns.</li>
            <li>Deliver relevant advertisements.</li>
          </ul>
          <p>You can control cookies through your browser settings. Disabling cookies may affect some site functionality.</p>

          <h2>6. Your Rights</h2>
          <p>Depending on your location, you may have the right to:</p>
          <ul>
            <li>Access the personal information we hold about you.</li>
            <li>Request correction of inaccurate information.</li>
            <li>Request deletion of your personal information.</li>
            <li>Opt out of marketing communications at any time.</li>
            <li>Request data portability.</li>
            <li>Withdraw consent where processing is based on consent.</li>
          </ul>

          <h2>7. Children's Privacy</h2>
          <p>Our Service is not directed to children under 13. We do not knowingly collect personal information from children under 13. If you are a parent and believe your child has provided us with personal information, please contact us.</p>

          <h2>8. Data Retention</h2>
          <p>We retain your personal information for as long as necessary to fulfill the purposes outlined in this policy, unless a longer retention period is required by law. Order data is retained for 7 years for tax and legal purposes. You can request account deletion at any time.</p>

          <h2>9. Third-Party Links</h2>
          <p>Our website may contain links to third-party sites. We are not responsible for the privacy practices of these sites. We encourage you to review their privacy policies.</p>

          <h2>10. California Residents (CCPA)</h2>
          <p>If you are a California resident, you have additional rights under the California Consumer Privacy Act, including the right to know what personal information is collected, the right to delete, and the right to opt out of the sale of personal information. We do not sell personal information.</p>

          <h2>11. Changes to This Policy</h2>
          <p>We may update this Privacy Policy from time to time. Changes will be posted on this page with an updated effective date. Continued use of the Service after changes constitutes acceptance.</p>

          <h2>12. Contact Us</h2>
          <p>For privacy-related inquiries:</p>
          <p>Americas.Pet – Privacy Team<br />123 Pet Avenue<br />Miami, FL 33101<br />Email: privacy@americas.pet<br />Phone: 1-800-AMERICAS-PET</p>
        </div>
      </div>
    </div>
  );
}
