import { createFileRoute } from "@tanstack/react-router";
import { PolicyPage } from "@/components/PolicyPage";

export const Route = createFileRoute("/privacy-policy")({
  head: () => ({
    meta: [
      { title: "Privacy Policy — Right On Gloss" },
      { name: "description", content: "How Right On Gloss collects, uses and protects your personal information." },
      { property: "og:title", content: "Privacy Policy — Right On Gloss" },
      { property: "og:description", content: "How we collect, use and protect your information." },
      { property: "og:type", content: "website" },
      { name: "twitter:card", content: "summary" },
    ],
  }),
  component: () => (
    <PolicyPage
      title="Privacy Policy"
      updated="19 October 2026"
      intro="This policy explains what personal information Right On Gloss™ collects when you shop with us, apply for wholesale or get in touch, why we collect it, and the choices you have."
      sections={[
        {
          title: "Information we collect",
          items: [
            "Order details: your name, delivery address, email address and phone number, so we can pick, pack and deliver your gloss.",
            "Account details: your email address and a password you choose, if you create a distributor or admin login.",
            "Wholesale and distributor applications: your business name and address, registration document, contact person, phone numbers, emails, website, references, and your bulk order history.",
            "Reviews: the name and star rating you submit with a review, plus the text you write.",
            "Contact messages: the name, email and message you send through the contact form.",
            "Shade Finder photos: a selfie you choose to upload is used only to generate your shade recommendation and is not kept as a permanent profile.",
            "Technical data: your browser type and the items in your shopping bag, which are stored on your own device so your bag is still there when you come back.",
          ],
        },
        {
          title: "How we use it",
          items: [
            "To take payment, prepare your order and deliver it to you.",
            "To send order updates such as tracking links and delivery notifications.",
            "To approve wholesale and distributor applications, and to let approved partners place bulk orders.",
            "To reply to questions, handle returns and resolve delivery problems.",
            "To improve our products and the shade recommendations we suggest.",
          ],
        },
        {
          title: "Payments",
          body: [
            "Card payments are processed by Stripe. We never see or store your full card number, expiry date or security code — that information goes directly to Stripe's payment systems. Our own records only show the order, the amount paid and the payment status.",
          ],
        },
        {
          title: "Who we share it with",
          items: [
            "Stripe — to process your payment.",
            "Our delivery carriers — name, address and phone number, so they can hand your parcel over.",
            "Our email provider — to send order and account emails.",
            "We do not sell your personal information to anyone.",
          ],
        },
        {
          title: "How long we keep it",
          body: [
            "Order and wholesale records are kept while we need them for accounting, warranties and legal obligations. Contact messages and reviews are kept until you ask us to remove them. Business registration documents are stored in a private, access-controlled document store and are only opened by our team when reviewing an application.",
          ],
        },
        {
          title: "Your choices",
          body: [
            "You can ask us for a copy of the information we hold about you, ask us to correct it, or ask us to delete it. Email hello@rightongloss.com and we'll act within 30 days. You can also stop marketing emails at any time using the unsubscribe link in the message.",
          ],
        },
        {
          title: "Security",
          body: [
            "Your data sits behind authenticated, access-controlled storage, and the wholesale document store is not open to the public. No method of transmission over the internet is completely risk-free, so we only ask for what we genuinely need.",
          ],
        },
        {
          title: "Children",
          body: [
            "Our shop is aimed at adults. Anyone under 18 should shop with a parent or guardian, and wholesale applications must come from an adult.",
          ],
        },
        {
          title: "Changes to this policy",
          body: [
            "If we change this policy we'll update the date at the top of this page. Material changes will be announced on the site.",
          ],
        },
      ]}
    />
  ),
});
