import { createFileRoute } from "@tanstack/react-router";
import { PolicyPage, policyHead } from "@/components/site/Policy";

export const Route = createFileRoute("/privacy")({
  head: () => policyHead("Privacy Policy", "How CareShare Initiative collects, uses and protects your personal information."),
  component: () => (
    <PolicyPage title="Privacy Policy" intro="Your trust matters. Here's how we handle your information." sections={[
      { h: "What we collect", p: "Your name, email, optional country, and donation records including public blockchain transaction IDs." },
      { h: "How we use it", p: "To verify and record donations, issue receipts, and send updates you opt into. We never sell your data." },
      { h: "Beneficiary privacy", p: "We publish identifiable images of beneficiaries only with informed consent, and never share sensitive location or identity details of children." },
      { h: "Your rights", p: "You can update or delete your account at any time from your dashboard, or by contacting us." },
    ]} />
  ),
});
