// Privacy Policy page, content carried over from scn2aaustralia.org/privacy-policy/

function PrivacyPage({ navigate }) {
  return (
    <div data-screen-label="Privacy Policy">
      <PageHero
        eyebrow="Legal"
        title="Privacy policy."
        body="How SCN2A Australia collects, uses, stores, and protects the personal information you share with us, and the rights you have over your data."
        ledger={["LAST UPDATED · MARCH 2026", "ABN 70 665 788 161", "QUESTIONS? CONTACT US BELOW"]}
        navigate={navigate} />

      <Breadcrumbs items={[{ label: 'Privacy policy' }]} navigate={navigate} />

      <section style={{ background: '#fff', padding: '64px 0 0' }}>
        <div className="container">
          <Prose>
            <p style={{ fontSize: 19 }}>
              SCN2A Australia respects your privacy and is committed to protecting the personal information you share with us. This policy explains what we collect, why we collect it, and the choices you have.
            </p>
          </Prose>
        </div>
      </section>

      <ProseSection eyebrow="What we collect" title="Personal data we collect and why.">
        <h3>Comments and messages</h3>
        <p>When visitors leave comments or send messages through the site, we collect the data shown in the form, and also the visitor's IP address and browser user agent string to help with spam detection. An anonymised string created from your email address (a "hash") may be provided to the Gravatar service to check whether you use it; after a comment is approved, your profile picture is visible to the public alongside your comment.</p>

        <h3>Contact and registration forms</h3>
        <p>When you contact us, subscribe to our newsletter, or join the SCN2A Insights Registry, we collect the details you provide, such as your name, email address, phone number, and postal address, so we can respond to you and provide the service you have requested.</p>

        <h3>Media</h3>
        <p>If you upload images to the website, please avoid uploading images with embedded location data (EXIF GPS) included, as visitors to the website can download and extract location data from images.</p>

        <h3>Embedded content from other websites</h3>
        <p>Articles on this site may include embedded content (for example, videos, images, or articles). Embedded content from other websites behaves in exactly the same way as if you had visited the other website. These websites may collect data about you, use cookies, embed additional third-party tracking, and monitor your interaction with that embedded content.</p>
      </ProseSection>

      <ProseSection eyebrow="Cookies" title="How we use cookies." background="#F7F4F0">
        <p>If you leave a comment on our site, you may opt in to saving your name, email address, and website in cookies. These are for your convenience so you do not have to fill in your details again. These cookies last for one year.</p>
        <p>If you have an account and log in to this site, we will set a temporary cookie to determine whether your browser accepts cookies. This cookie contains no personal data and is discarded when you close your browser. When you log in, we will also set up several cookies to save your login information and screen display choices. Login cookies last for two days and screen-options cookies for a year; selecting "Remember Me" extends your login for two weeks. Logging out removes the login cookies.</p>
      </ProseSection>

      <ProseSection eyebrow="Sharing & retention" title="Who we share your data with, and for how long.">
        <p><strong>Your data is not shared with anyone</strong> outside SCN2A Australia, except where required to deliver a service you have requested or where we are obliged to by law. Visitor comments may be checked through an automated spam-detection service.</p>
        <p>If you leave a comment, the comment and its metadata are retained indefinitely so we can recognise and approve any follow-up comments automatically instead of holding them in a moderation queue. For users who register on our website, we store the personal information they provide in their user profile. All users can see, edit, or delete their personal information at any time (except they cannot change their username); website administrators can also see and edit that information.</p>
      </ProseSection>

      <ProseSection eyebrow="Your rights" title="The rights you have over your data." background="#F7F4F0">
        <p>If you have an account on this site, or have left comments, you can request to receive an exported file of the personal data we hold about you, including any data you have provided to us. You can also request that we erase any personal data we hold about you. This does not include any data we are obliged to keep for administrative, legal, or security purposes.</p>
        <SafetyCallout label="Making a request">
          To request access to, correction of, or deletion of your personal information, contact us using the details below. We will respond as soon as we reasonably can.
        </SafetyCallout>
      </ProseSection>

      <ProseSection eyebrow="Contact" title="How to reach us about privacy.">
        <p>If you have questions about this policy or about how your information is handled, please get in touch:</p>
        <p style={{ lineHeight: 1.8 }}>
          <strong>SCN2A Australia</strong><br />
          PO Box 442, Buddina QLD 4574<br />
          ABN 70 665 788 161
        </p>
        <div style={{ marginTop: 18 }}>
          <Button as="a" href="#contact" onClick={(e) => { e.preventDefault(); navigate('contact'); }}>Contact us <i data-lucide="arrow-right" style={{ width: 14, height: 14, marginLeft: 4, verticalAlign: '-2px' }} /></Button>
        </div>
      </ProseSection>
    </div>
  );
}

// Accessibility statement page
function AccessibilityPage({ navigate }) {
  return (
    <div data-screen-label="Accessibility">
      <PageHero
        eyebrow="Accessibility"
        title="Our accessibility commitment."
        body="We want everyone in the SCN2A and DEE community to be able to use this site, including people with disability and the families and carers who support them."
        ledger={["LAST UPDATED · JUNE 2026", "TARGET · WCAG 2.2 AA", "NEED HELP? CONTACT US BELOW"]}
        navigate={navigate} />

      <Breadcrumbs items={[{ label: 'Accessibility' }]} navigate={navigate} />

      <section style={{ background: '#fff', padding: '64px 0 0' }}>
        <div className="container">
          <Prose>
            <p style={{ fontSize: 19 }}>
              Accessibility is central to who we are. We are working to meet the Web Content Accessibility Guidelines (WCAG) 2.2 at Level AA, and we treat accessibility as ongoing work rather than a one-off task.
            </p>
          </Prose>
        </div>
      </section>

      <ProseSection eyebrow="What we do" title="How we build for access.">
        <ul>
          <li>Colour combinations are chosen and tested for sufficient contrast.</li>
          <li>The site can be operated with a keyboard, and we provide visible focus indicators.</li>
          <li>Content uses clear, plain language, with medical terms explained.</li>
          <li>Layouts reflow for small screens and respond to larger text sizes.</li>
          <li>We respect the system "reduced motion" setting and keep animation restrained.</li>
        </ul>
      </ProseSection>

      <ProseSection eyebrow="Languages & formats" title="Interpreters and alternate formats." background="#F7F4F0">
        <p>If you need an interpreter, call TIS National on <strong>131 450</strong> and ask for SCN2A Australia.</p>
        <p>If you need information from this site in a different format, for example large print, plain text, or an Easy Read summary, contact us and we will do our best to help.</p>
      </ProseSection>

      <ProseSection eyebrow="Tell us" title="Report an accessibility barrier.">
        <p>We know some parts of the site may not yet be fully accessible. If you run into a barrier, please tell us what happened and the page you were on, so we can fix it.</p>
        <SafetyCallout label="Get in touch">
          We aim to respond to accessibility feedback as soon as we reasonably can, and to prioritise fixes that affect people's ability to access essential information and support.
        </SafetyCallout>
        <div style={{ marginTop: 18 }}>
          <Button as="a" href="#contact" onClick={(e) => { e.preventDefault(); navigate('contact'); }}>Contact us <i data-lucide="arrow-right" style={{ width: 14, height: 14, marginLeft: 4, verticalAlign: '-2px' }} /></Button>
        </div>
      </ProseSection>
    </div>
  );
}

Object.assign(window, { PrivacyPage, AccessibilityPage });
