// privacy-page.jsx — Privacy page for the JTH Beta Club site.

// =============================================================== PRIVACY
function PrivacyPage({ fonts }) {
  const navy = '#04294e';
  const yellow = '#FFD140';
  const mobile = useMobile();

  const sections = [
    {
      t: 'What we collect',
      body: [
        'This site has no accounts, logins, or payments, and you can browse every page without giving us anything.',
        'We only collect information when you fill out one of our forms. The Volunteer Request form (for community partners) collects the contact details and event details you type in. The Submit Hours form (for members) collects the details it asks for, such as your name and the volunteer hours you completed. Both forms are Google Forms.',
      ],
    },
    {
      t: 'Who sees it',
      body: [
        'Form responses go to the Beta Club officers and advisors so we can follow up on volunteer requests and keep track of service hours. We do not sell your information or share it for advertising.',
      ],
    },
    {
      t: 'Outside services this site uses',
      list: [
        ['Google', 'Hosts our Google Forms and the fonts the site displays. Google may collect technical information such as your IP address when these load.'],
        ['Cloudinary', 'Hosts the photos and logos on the site.'],
        ['unpkg', 'Delivers the open-source code libraries the site runs on.'],
        ['Vercel', 'Hosts the website.'],
        ['SignUpGenius, RunSignup, and others', 'Our event pages link to outside sign-up sites. Those sites have their own privacy policies, and what you enter there is handled by them, not by us.'],
      ],
    },
    {
      t: 'Cookies and tracking',
      body: [
        'We do not run analytics, advertising, or tracking tools on this site. The outside services above may set their own cookies or log basic technical information when their content loads.',
      ],
    },
    {
      t: 'Officer names and photos',
      body: [
        'The Leadership page shows our officers’ names, titles, and photos. They are published with the officers’ permission.',
      ],
    },
    {
      t: 'Questions or removal requests',
      body: [
        'If you want us to remove something you submitted, or you have a question about this page, email jthbetaclub@gmail.com. If you are under 18, please check with a parent or guardian before submitting a form.',
      ],
    },
  ];

  return (
    <main style={{ padding: mobile ? '40px 20px' : '64px 48px' }}>
      <div style={{ fontSize: 14, fontWeight: 700, textTransform: 'uppercase', letterSpacing: '.1em', marginBottom: 16 }}>Privacy</div>
      <h1 style={{ fontFamily: fonts.head, fontWeight: 900, fontSize: 'clamp(52px, 10vw, 128px)', letterSpacing: '-.04em', textTransform: 'uppercase', lineHeight: .9, margin: mobile ? '0 0 12px' : '0 0 16px' }}>
        Your <MarkerHighlight animate={true}>privacy.</MarkerHighlight>
      </h1>
      <p style={{ fontSize: mobile ? 16 : 18, lineHeight: 1.5, maxWidth: 680, margin: mobile ? '0 0 36px' : '0 0 56px', fontWeight: 500 }}>
        The short version: we only collect what you type into our forms, we use it to run the club, and we don’t sell it. Last updated November 2026.
      </p>

      <div style={{ border: `2.5px solid ${navy}` }}>
        {sections.map((s, i) => (
          <div key={s.t} style={{
            padding: mobile ? 24 : 36,
            background: i % 2 === 1 ? yellow : '#fff',
            borderBottom: i < sections.length - 1 ? `2.5px solid ${navy}` : 'none',
          }}>
            <div style={{ fontFamily: fonts.head, fontWeight: 900, fontSize: mobile ? 22 : 28, textTransform: 'uppercase', letterSpacing: '-.01em', marginBottom: 12 }}>{s.t}</div>
            {s.body && s.body.map((p, j) => (
              <p key={j} style={{ fontSize: 15, lineHeight: 1.6, margin: j < s.body.length - 1 ? '0 0 12px' : 0, fontWeight: 500, maxWidth: 760 }}>{p}</p>
            ))}
            {s.list && (
              <div style={{ display: 'grid', gap: 10, maxWidth: 760 }}>
                {s.list.map(([name, what]) => (
                  <p key={name} style={{ fontSize: 15, lineHeight: 1.6, margin: 0, fontWeight: 500 }}><strong>{name}:</strong> {what}</p>
                ))}
              </div>
            )}
          </div>
        ))}
      </div>
    </main>
  );
}

Object.assign(window, { PrivacyPage });
