import type { Metadata } from "next";

export const metadata: Metadata = {
  title: "Privacy Policy",
  description: "How The Simple Heart Initiative collects, uses, and protects your information.",
};

export default function Privacy() {
  return (
    <article className="max-w-3xl mx-auto px-6 py-16 prose prose-neutral">
      <h1 className="text-4xl font-semibold tracking-tight text-[var(--color-primary-dark)]">Privacy Policy</h1>
      <p className="text-sm text-[var(--color-text-secondary)] mt-2">Last updated: April 14, 2026</p>

      <section className="mt-8 space-y-6 text-[var(--color-text)] leading-relaxed">
        <p>
          The Simple Heart Initiative (&ldquo;Simple Heart,&rdquo; &ldquo;we,&rdquo; &ldquo;our,&rdquo; or
          &ldquo;us&rdquo;) respects your privacy. This Privacy Policy explains what information we collect,
          how we use it, and the choices you have. It applies to simpleheart.org and any subdomain operated
          by The Simple Heart Initiative, including placement.savethedogs.io while that site is hosted by
          Simple Heart.
        </p>

        <h2 className="text-2xl font-semibold text-[var(--color-primary-dark)]">Information We Collect</h2>
        <p>
          We collect information you provide directly — such as your name, email address, phone number,
          and mailing address — when you subscribe to our newsletter, make a donation, sign a petition,
          volunteer for a campaign, or contact us. We also collect limited technical information
          automatically, including your IP address, browser type, device type, referring pages, and pages
          viewed, using standard server logs and privacy-respecting analytics.
        </p>

        <h2 className="text-2xl font-semibold text-[var(--color-primary-dark)]">How We Use Information</h2>
        <p>We use the information we collect to:</p>
        <ul className="list-disc pl-6 space-y-2">
          <li>Send newsletters, campaign updates, and mobilization alerts you have requested.</li>
          <li>Process donations and provide tax receipts.</li>
          <li>Coordinate volunteers, events, and rescue actions.</li>
          <li>Respond to messages you send us.</li>
          <li>Understand how our site is used so we can improve it.</li>
          <li>Comply with legal obligations.</li>
        </ul>

        <h2 className="text-2xl font-semibold text-[var(--color-primary-dark)]">SMS &amp; Phone Communications</h2>
        <p>
          If you provide your phone number, you consent to receive SMS messages and calls from Simple Heart
          related to our programs and campaigns. Message and data rates may apply. Reply STOP at any time
          to opt out. We do not sell or share phone numbers with third parties for their marketing
          purposes.
        </p>

        <h2 className="text-2xl font-semibold text-[var(--color-primary-dark)]">Sharing of Information</h2>
        <p>
          We do not sell your personal information. We share information only with service providers who
          help us operate (for example, email, SMS, and payment processors), and only to the extent
          necessary for them to perform that work. We may disclose information when required by law or to
          protect the rights, safety, or property of Simple Heart, our supporters, or the public.
        </p>

        <h2 className="text-2xl font-semibold text-[var(--color-primary-dark)]">Cookies</h2>
        <p>
          We use essential cookies and minimal analytics to run the site. You can disable cookies in your
          browser settings; parts of the site may not work without them.
        </p>

        <h2 className="text-2xl font-semibold text-[var(--color-primary-dark)]">Your Choices</h2>
        <p>
          You may unsubscribe from emails at any time using the link in any message, or by contacting us.
          You may request access to, correction of, or deletion of your personal information by emailing{" "}
          <a href="mailto:info@simpleheart.org" className="text-[var(--color-accent)] underline">
            info@simpleheart.org
          </a>
          .
        </p>

        <h2 className="text-2xl font-semibold text-[var(--color-primary-dark)]">Children</h2>
        <p>
          Our site is not directed to children under 13, and we do not knowingly collect information from
          children under 13.
        </p>

        <h2 className="text-2xl font-semibold text-[var(--color-primary-dark)]">Changes</h2>
        <p>
          We may update this Privacy Policy from time to time. We will post the revised policy here with a
          new &ldquo;Last updated&rdquo; date.
        </p>

        <h2 className="text-2xl font-semibold text-[var(--color-primary-dark)]">Contact</h2>
        <p>
          The Simple Heart Initiative, Santa Cruz, California.{" "}
          <a href="mailto:info@simpleheart.org" className="text-[var(--color-accent)] underline">
            info@simpleheart.org
          </a>
        </p>
      </section>
    </article>
  );
}
