/* T-AV — Privacy page. Plain text content, no third-party trackers
   referenced. Linked from form submit notes (added in later Phase C
   tasks) and the footer. */

function PrivacyPage({ navigate }) {
  return (
    <div className="page">
      <section className="container-wide" style={{ padding: '64px 40px 32px' }}>
        <div className="overline">PRIVACY</div>
        <h1 className="display" style={{ marginTop: 24, marginBottom: 24 }}>
          What we do with <span className="accent">your details.</span>
        </h1>
        <p className="section__sub">Updated 2026-05-20.</p>
      </section>

      <section className="container-wide" style={{ paddingBottom: 96 }}>
        <div className="privacy-prose">
          <h2>What we collect</h2>
          <p>When you submit the contact form, we collect: your first name, last name, company (if provided), email, phone (if provided), and the message you write.</p>
          <p>When you submit the careers form, we additionally collect the CV file you choose to upload (PDF, DOC, or DOCX, up to 10 MB).</p>

          <h2>Why we collect it</h2>
          <p>We use these details only to respond to your inquiry or application. We do not add you to any mailing list. We do not share your details with third parties.</p>

          <h2>Where it lives</h2>
          <p>Submissions arrive as email at <strong>hello@t-av.com</strong> (contact) or <strong>careers@t-av.com</strong> (careers). They live in our Google Workspace mailbox until we delete them per the retention schedule below. The email-delivery vendor (Resend) sees the message in transit and retains it per their own retention policy, which we do not control.</p>

          <h2>How long we keep it</h2>
          <ul>
            <li><strong>Contact inquiries:</strong> up to 24 months from submission.</li>
            <li><strong>Careers applications + CVs:</strong> up to 12 months from submission.</li>
          </ul>
          <p>After those windows, we delete the messages from our mailbox. If you want us to delete sooner, email <a href="mailto:hello@t-av.com">hello@t-av.com</a> with your request.</p>

          <h2>Cookies + tracking</h2>
          <p>This site does not use marketing cookies or third-party tracking pixels. It uses one functional cookie (a CSRF-style honeypot helper) that has no identifier and expires when you close the browser.</p>

          <h2>How we secure the forms</h2>
          <p>Submissions go through a rate-limit and a hidden honeypot check to discourage spam. Uploaded CVs are validated by file type before being attached to email. Form data is sent over HTTPS only.</p>

          <h2>Changes to this notice</h2>
          <p>If we change what we collect, we will update the date at the top of this page. The current version is the only one in effect.</p>

          <h2>Contact</h2>
          <p>Questions? <a href="mailto:hello@t-av.com">hello@t-av.com</a>.</p>
        </div>

        <div style={{ marginTop: 48, textAlign: 'center' }}>
          <button className="btn" onClick={() => navigate('home')}>Back to home <ArrowRight /></button>
        </div>
      </section>
    </div>
  );
}

window.PrivacyPage = PrivacyPage;
