import { createFileRoute } from "@tanstack/react-router";
import LegalLayout, { type LegalSection } from "@/components/LegalLayout";

const TITLE = "Privacy Policy — Belarsen Quality Paints";
const DESC =
  "How Belarsen Quality Paints collects, uses, shares and safeguards your personal information, and how to exercise your privacy rights.";

const SECTIONS: LegalSection[] = [
  {
    heading: "Introduction",
    body: 'Belarsen Quality Paints ("Company", "we", "us", or "our") is committed to protecting your privacy and ensuring the security of your personal data. This Privacy Policy outlines how we collect, use, and safeguard information when you use our services or interact with us.',
  },
  {
    heading: "Information We Collect",
    body: "We collect personal information necessary to deliver our services, including:",
    bullets: [
      <>
        <strong className="font-semibold">Contact Details:</strong> Name, phone number, email
        address, and physical site address.
      </>,
      <>
        <strong className="font-semibold">Service Request Data:</strong> Property type,
        paint/texture choices, and site evaluation details.
      </>,
      <>
        <strong className="font-semibold">Communication Records:</strong> Inquiries, feedback, and
        customer support history.
      </>,
    ],
  },
  {
    heading: "How We Use Your Information",
    body: "We process your personal information for the following purposes:",
    bullets: [
      "Fulfilling service requests, executing painting projects, and providing estimates.",
      "Processing payments and managing customer accounts.",
      "Improving our product offerings, application methods, and website services.",
      "Complying with legal obligations.",
    ],
  },
  {
    heading: "Communication Consent",
    body: "To Communicate with You: We may use your information to respond to your inquiries, provide customer service support, send you important information about the services, and send you marketing communications (with your consent) via different channels, including but not limited to SMS, RCS, Email, WhatsApp, and Voice.",
  },
  {
    heading: "Data Sharing and Disclosure",
    body: "We do not sell, rent, or trade your personal information. We may share your information only with:",
    bullets: [
      "Authorized service contractors and field staff executing projects on site.",
      "Communication and IT service providers operating on our behalf under strict confidentiality terms.",
      "Legal authorities, if required to satisfy applicable legal or regulatory requests.",
    ],
  },
  {
    heading: "Data Security and Retention",
    body: "We implement appropriate technical and organizational measures to safeguard your personal data against unauthorized access, loss, or misuse. Your information is retained only as long as necessary to fulfill project requirements, resolve disputes, and satisfy accounting or legal obligations.",
  },
  {
    heading: "Your Rights and Opt-Out Choice",
    body: "You have the right to access, update, or request the deletion of your personal information. You may also withdraw your consent for promotional communications at any time by following the unsubscribe instructions in our messages or contacting us directly.",
  },
  {
    heading: "Contact Information",
    body: "For privacy-related inquiries or to update your preferences, contact:",
    bullets: [
      <>
        Phone:{" "}
        <a href="tel:+919828898283" className="text-brand hover:underline">
          +91 9828898283
        </a>
      </>,
      <>
        Email:{" "}
        <a href="mailto:info@belarsen.com" className="text-brand hover:underline">
          info@belarsen.com
        </a>
      </>,
      <>
        Website:{" "}
        <a href="https://www.belarsen.com" className="text-brand hover:underline">
          www.belarsen.com
        </a>
      </>,
    ],
  },
];

export const Route = createFileRoute("/privacy-policy")({
  head: () => ({
    meta: [
      { title: TITLE },
      { name: "description", content: DESC },
      { property: "og:title", content: TITLE },
      { property: "og:description", content: DESC },
      { property: "og:type", content: "website" },
      { name: "twitter:card", content: "summary_large_image" },
    ],
  }),
  component: PrivacyPolicyPage,
});

function PrivacyPolicyPage() {
  return (
    <LegalLayout
      eyebrow="Legal"
      title="Privacy Policy"
      intro="How we collect, use and protect the information you share with Belarsen Quality Paints."
      sections={SECTIONS}
    />
  );
}
