// PRLX site — Privacy Policy (static legal content, plus a minimal page footer)
function PrivacyPolicy() {
  const { useViewport } = window;
  const { isMobile } = useViewport();

  const h2 = { fontFamily: "var(--font-display)", fontWeight: 800, textTransform: "uppercase", letterSpacing: "-0.01em", fontSize: "clamp(20px, 2.4vw, 28px)", lineHeight: 1.1, margin: "40px 0 14px", color: "#fff" };
  const p  = { fontWeight: 300, fontSize: 16, lineHeight: 1.7, color: "var(--prlx-graphite-300)", maxWidth: "68ch", margin: "0 0 16px" };
  const ul = { fontWeight: 300, fontSize: 16, lineHeight: 1.7, color: "var(--prlx-graphite-300)", maxWidth: "68ch", margin: "0 0 16px", paddingLeft: 22 };

  return (
    <section data-screen-label="Privacy Policy" id="privacy" style={{ background: "var(--prlx-ink)", color: "#fff", padding: isMobile ? "56px 20px 40px" : "72px 32px 48px" }}>
      <div style={{ fontWeight: 700, fontSize: 11, textTransform: "uppercase", letterSpacing: "0.32em", color: "var(--prlx-graphite-500)", marginBottom: 16 }}>
        ↳ Legal
      </div>
      <h1 style={{ fontFamily: "var(--font-display)", fontWeight: 800, textTransform: "uppercase", letterSpacing: "-0.02em", fontSize: "clamp(34px, 4.5vw, 56px)", lineHeight: 0.98, margin: "0 0 10px" }}>
        Privacy Policy
      </h1>
      <p style={{ ...p, color: "var(--prlx-graphite-400)", fontSize: 13, fontFamily: "var(--font-mono)", letterSpacing: "0.04em", textTransform: "uppercase" }}>
        Last updated 1 July 2026
      </p>

      <h2 style={h2}>Who we are</h2>
      <p style={p}>
        This policy is issued by PRLX Pty Ltd (ABN 34 629 707 348), a video production company operating out of Darwin and Hobart, Australia ("PRLX", "we", "us"). It explains what personal information we collect through this website, why, and how it's handled — in line with the Australian Privacy Principles (APPs) under the Privacy Act 1988 (Cth).
      </p>

      <h2 style={h2}>What we collect</h2>
      <p style={p}>We only collect what you give us directly, through one of two forms on this site:</p>
      <ul style={ul}>
        <li>Contact form — your name, email, phone number, project type, and message.</li>
        <li>Hire quote form — your name, email, phone number, notes, and the gear you've added to your quote.</li>
      </ul>
      <p style={p}>
        We don't run analytics or tracking scripts, and this site doesn't set any first-party cookies of its own. Nothing is collected automatically just from browsing the site.
      </p>

      <h2 style={h2}>Third parties involved</h2>
      <ul style={ul}>
        <li><strong>Formspree</strong> — processes and delivers both forms above to our inbox.</li>
        <li><strong>Vercel</strong> — hosts this website.</li>
        <li><strong>Vimeo</strong> — some video on this site is embedded from Vimeo. Vimeo may set its own cookies when you play an embedded video; that's governed by Vimeo's privacy policy, not ours.</li>
      </ul>

      <h2 style={h2}>How we use it</h2>
      <p style={p}>
        We use the information you submit solely to respond to your enquiry or quote request — to get back to you, understand your project or hire needs, and arrange bookings. We don't maintain a mailing list, send marketing emails, or sell or share your information with anyone outside the third parties listed above.
      </p>

      <h2 style={h2}>Storage &amp; retention</h2>
      <p style={p}>
        We keep enquiry and quote details only as long as needed to handle your request and for basic business record-keeping (e.g. invoicing, past-job reference). If you'd like us to delete your details sooner, just ask — see Contact below.
      </p>

      <h2 style={h2}>Your rights</h2>
      <p style={p}>
        Under the Australian Privacy Principles, you can ask us what personal information we hold about you and request that it be corrected or deleted. Contact us using the details below and we'll respond within a reasonable time. If you believe we've mishandled your information and we haven't resolved it to your satisfaction, you can lodge a complaint with the Office of the Australian Information Commissioner (OAIC) at oaic.gov.au.
      </p>

      <h2 style={h2}>Security</h2>
      <p style={p}>
        This site is served over HTTPS, and we take reasonable technical and organisational steps to protect the information submitted to us. We don't hold more data than we need, and we don't store form submissions ourselves outside of Formspree's delivery.
      </p>

      <h2 style={h2}>Changes to this policy</h2>
      <p style={p}>
        We may update this policy from time to time — for example if we change how the site works or add a new third-party tool. Material changes will update the date at the top of this page.
      </p>

      <h2 style={h2}>Contact</h2>
      <p style={p}>
        Questions about this policy, or a request to access, correct, or delete your information? Email{" "}
        <a href="mailto:info@prlx.com.au" style={{ color: "#fff", textDecoration: "underline" }}>info@prlx.com.au</a>.
      </p>

      <div style={{ marginTop: 56, paddingTop: 28, borderTop: "1px solid rgba(255,255,255,0.10)", display: "flex", alignItems: "center", justifyContent: "space-between", flexWrap: "wrap", gap: 20 }}>
        <img src="../../assets/logos/prlx-horizontal-rev.png" alt="PRLX — Video Production, Hobart &amp; Darwin" style={{ height: 26 }} />
        <a href="index.html" style={{ fontFamily: "var(--font-body)", fontWeight: 600, fontSize: 12, textTransform: "uppercase", letterSpacing: "0.14em", color: "var(--prlx-graphite-400)", cursor: "pointer" }}>
          ← Back to PRLX
        </a>
        <span style={{ fontFamily: "var(--font-mono)", fontSize: 11, color: "var(--prlx-graphite-500)", letterSpacing: "0.06em" }}>
          © 2025 PRLX CREATIVE PRODUCTION · ALL FRAMES RESERVED
        </span>
      </div>
    </section>
  );
}
Object.assign(window, { PrivacyPolicy });
