/* VA Classes, Privacy Policy page (Canada-facing, PIPEDA-aware, children's data) */

const LAST_UPDATED = "June 2026";

const PRIVACY_SECTIONS = [
  {
    title: "1. Who we are",
    intro: "VA Classes (\"we\", \"us\", \"our\") provides live, one-on-one online tutoring in Math, Science, English and Coding for students in grades 1 to 10. We operate from India and provide our services to families in Canada. This policy explains what personal information we collect, how we use and protect it, and the choices you have. We handle personal information in line with Canada's Personal Information Protection and Electronic Documents Act (PIPEDA).",
  },
  {
    title: "2. Information we collect",
    intro: "We only collect what we need to provide tutoring and run our business:",
    items: [
      "Parent or guardian details: name, email address, and phone / WhatsApp number, provided when you book a trial or enrol.",
      "Student details: the child's first name, grade level, subject(s) and learning needs, used to match a tutor and tailor lessons.",
      "Booking & class information: scheduling, attendance, tutor notes and progress feedback.",
      "Payment information: handled by our third-party payment processor. We do not see or store full card numbers.",
      "Technical & usage data: IP address, browser type and pages visited, collected through cookies to keep the site working and improve it.",
    ],
  },
  {
    title: "3. Children's privacy & parental consent",
    intro: "Our students are children. Protecting their information is a responsibility we take seriously.",
    items: [
      "Accounts are created and managed by a parent or legal guardian, not by the child.",
      "We collect the minimum information about a child needed to deliver classes, and we never require more than that.",
      "We do not use children's personal information for marketing or advertising, and we never sell it.",
      "A parent or guardian may review, update or request deletion of their child's information at any time by contacting us.",
    ],
  },
  {
    title: "4. How we use your information",
    items: [
      "To confirm, schedule and deliver your free trial and any ongoing classes.",
      "To match your child with a suitable tutor and personalise their lessons.",
      "To send class reminders, progress updates and essential account messages by email or WhatsApp.",
      "To process payments and keep records required for tax and accounting.",
      "To respond to your enquiries and provide customer support.",
      "To maintain the security of, and improve, our website and services.",
    ],
  },
  {
    title: "5. How we share information",
    intro: "We share personal information only where necessary to run the service, and never for third-party marketing:",
    items: [
      "Tutors: your assigned tutor receives the student's first name, grade and subject so they can teach effectively.",
      "Service providers: our online-classroom platform, scheduling tools, payment processor and email/messaging providers, each only receives what is needed for their function.",
      "Legal reasons: where required by law, court order, or to protect the rights, safety or property of our users or VA Classes.",
      "We do not sell, rent or trade your personal information to anyone.",
    ],
  },
  {
    title: "6. International transfer of data",
    intro: "Because our team and tutors are based in India while our families are in Canada, your information is processed outside Canada.",
    items: [
      "By using our services you understand that your and your child's information will be transferred to and processed in India.",
      "We take reasonable steps to ensure your information receives a comparable level of protection wherever it is processed, through contractual and security safeguards with our tutors and providers.",
    ],
  },
  {
    title: "7. Data retention",
    items: [
      "We keep personal information only as long as your account is active or as needed to provide our services.",
      "After you stop using VA Classes, we retain limited records as required for legal, tax and accounting purposes, then securely delete or anonymise them.",
      "You can ask us to delete your information sooner, subject to any legal obligations we must meet.",
    ],
  },
  {
    title: "8. How we protect your information",
    items: [
      "We use encryption in transit, access controls, and trusted service providers to safeguard your data.",
      "Access to personal information is limited to people who need it to do their job.",
      "No system is perfectly secure, but if a breach affecting your information occurs, we will notify you and the relevant authorities as required by law.",
    ],
  },
  {
    title: "9. Cookies",
    items: [
      "Essential cookies keep the website functioning and remember your preferences.",
      "Analytics cookies (for example, Google Analytics) help us understand how visitors use the site. This data is aggregated and not used to identify you.",
      "You can control or disable cookies through your browser settings at any time.",
    ],
  },
  {
    title: "10. Your rights & choices",
    items: [
      "Access: request a copy of the personal information we hold about you or your child.",
      "Correction: ask us to fix information that is inaccurate or incomplete.",
      "Deletion: ask us to delete your information, subject to legal limits.",
      "Opt out: unsubscribe from marketing emails, or reply STOP to any WhatsApp message, at any time.",
      "To exercise any of these rights, email us at contact@vaclasses.live and we will respond within a reasonable time.",
    ],
  },
  {
    title: "11. Changes to this policy",
    intro: "We may update this policy from time to time. We will post the new version here with an updated date, and where changes are significant we will let you know by email. Continuing to use VA Classes after an update means you accept the revised policy.",
  },
  {
    title: "12. Contact us",
    intro: "Questions about your privacy or this policy? We're happy to help.",
    items: [
      "VA Classes · vaclasses.live",
      "Email: contact@vaclasses.live",
      "Phone / WhatsApp: +91 94524 47742",
    ],
  },
];

function PrivacyApp() {
  useLucide();
  return (
    <div className="site">
      <Nav onTrial={() => {}} />
      <header className="section policy-hero">
        <div className="wrap">
          <p className="eyebrow">Legal</p>
          <h1>Privacy Policy</h1>
          <p className="lead">Last updated: {LAST_UPDATED}</p>
          <p className="lead" style={{ marginTop: 8 }}>Your family's privacy matters to us. This policy explains, in plain language, what we collect, why, and the control you have over it.</p>
        </div>
      </header>
      <section className="section">
        <div className="wrap policy-body">
          {PRIVACY_SECTIONS.map((s, i) => (
            <div className="policy-section" key={i}>
              <h2>{s.title}</h2>
              {s.intro && <p>{s.intro}</p>}
              {s.items && <ul>{s.items.map((it, j) => <li key={j}>{it}</li>)}</ul>}
            </div>
          ))}

        </div>
      </section>
      <Footer />
    </div>
  );
}

ReactDOM.createRoot(document.getElementById("root")).render(<PrivacyApp />);
