// Privacy, Terms, and Accessibility pages. Plain-language policy templates for a
// pediatric therapy practice — review with legal counsel before relying on them.

function LegalLayout({ eyebrow, title, lead, updated, children }) {
  return (
    <React.Fragment>
      <PageHero eyebrow={eyebrow} tone="sky" title={title} lead={lead} />
      <section className="bw-page-section" style={{ maxWidth: 820, margin: "0 auto", padding: "52px 28px 76px" }}>
        <div className="bw-legal">
          {updated && <p className="bw-legal__updated">Last updated: {updated}</p>}
          {children}
        </div>
      </section>
    </React.Fragment>
  );
}

const CONTACT = (
  <p>
    Bloom Well Therapy<br />
    14470 S LaGrange Rd, Orland Park, IL 60462<br />
    <a href="mailto:hello@bloomwelltherapy.org">hello@bloomwelltherapy.org</a>
  </p>
);

function PrivacyPage() {
  return (
    <LegalLayout
      eyebrow="Privacy"
      title="Privacy Policy"
      lead="How Bloom Well Therapy handles the information you share through this website."
      updated="June 24, 2026"
    >
      <p>
        Bloom Well Therapy ("we," "us," or "our") respects your privacy. This policy explains what
        information we collect through this website, how we use it, and the choices you have. It applies
        to <strong>bloomwelltherapy.org</strong> only.
      </p>

      <h2>Information we collect</h2>
      <p>When you submit our booking or contact forms, we collect the details you choose to provide, which may include:</p>
      <ul>
        <li>Your name and your child's first name</li>
        <li>Your email address and phone number</li>
        <li>The service you're interested in and any message you send us</li>
      </ul>
      <p>
        Our hosting provider also automatically logs standard technical information (such as IP address,
        browser type, and the pages requested) to keep the site secure and running. We do not use
        advertising or tracking cookies.
      </p>

      <h2>Please don't send sensitive health details here</h2>
      <p>
        This website is not a secure patient portal. Please do not include detailed medical history,
        diagnoses, or other protected health information in the website forms. Once you become a client,
        we collect clinical information through secure, HIPAA-appropriate intake processes.
      </p>

      <h2>How we use your information</h2>
      <ul>
        <li>To respond to your inquiry and schedule a consultation</li>
        <li>To provide the services you ask about</li>
        <li>To maintain, secure, and improve the website</li>
      </ul>
      <p>We do not sell or rent your personal information.</p>

      <h2>How we share information</h2>
      <p>We share information only with service providers that help us operate the site, and only as needed:</p>
      <ul>
        <li><strong>Cloudflare</strong> — website hosting and security</li>
        <li><strong>Resend</strong> — delivery of form submissions to our inbox</li>
      </ul>
      <p>We may also disclose information if required by law or to protect the safety of a child or others.</p>

      <h2>Children's privacy</h2>
      <p>
        This website is directed to parents and caregivers, not to children. We do not knowingly collect
        personal information directly from children through this site.
      </p>

      <h2>Data retention</h2>
      <p>
        We keep form submissions only as long as needed to respond to you and meet our recordkeeping and
        legal obligations, then delete or de-identify them.
      </p>

      <h2>Your choices</h2>
      <p>
        You may ask us to access, correct, or delete the information you've submitted through this site by
        emailing us at the address below.
      </p>

      <h2>Changes to this policy</h2>
      <p>We may update this policy from time to time. The "last updated" date above reflects the latest version.</p>

      <h2>Contact us</h2>
      {CONTACT}
    </LegalLayout>
  );
}

function TermsPage() {
  return (
    <LegalLayout
      eyebrow="Terms"
      title="Terms of Use"
      lead="The terms that apply when you use the Bloom Well Therapy website."
      updated="June 24, 2026"
    >
      <p>
        These Terms of Use govern your access to and use of <strong>bloomwelltherapy.org</strong> (the
        "Site"). By using the Site, you agree to these terms. If you do not agree, please do not use the Site.
      </p>

      <h2>Informational purpose only</h2>
      <p>
        The content on this Site is provided for general informational purposes about our services. It is
        not medical, therapeutic, or professional advice.
      </p>

      <h2>No therapeutic relationship</h2>
      <p>
        Using this Site, submitting a form, or contacting us does not create a clinician–client or
        therapeutic relationship. Always seek the advice of a qualified health provider with any questions
        about your child's development or care, and never disregard professional advice because of
        something you read here. If your child has a medical emergency, call 911.
      </p>

      <h2>Acceptable use</h2>
      <p>You agree not to misuse the Site, including by attempting to disrupt it, access it without authorization, or submit false or harmful information.</p>

      <h2>Intellectual property</h2>
      <p>
        The Site and its content — including text, graphics, logos, and design — are owned by Bloom Well
        Therapy and protected by applicable laws. You may not reproduce or reuse them without our permission.
      </p>

      <h2>Third-party links</h2>
      <p>The Site may link to third-party websites. We are not responsible for their content or practices.</p>

      <h2>Disclaimers</h2>
      <p>
        The Site is provided "as is" and "as available" without warranties of any kind, whether express or
        implied, including accuracy, reliability, or fitness for a particular purpose.
      </p>

      <h2>Limitation of liability</h2>
      <p>
        To the fullest extent permitted by law, Bloom Well Therapy will not be liable for any indirect,
        incidental, or consequential damages arising from your use of the Site.
      </p>

      <h2>Changes to these terms</h2>
      <p>We may update these terms at any time. Continued use of the Site means you accept the updated terms.</p>

      <h2>Governing law</h2>
      <p>These terms are governed by the laws of the State of Illinois, without regard to its conflict-of-law rules.</p>

      <h2>Contact us</h2>
      {CONTACT}
    </LegalLayout>
  );
}

function AccessibilityPage() {
  return (
    <LegalLayout
      eyebrow="Accessibility"
      title="Accessibility Statement"
      lead="We want every family to be able to use our website with ease."
      updated="June 24, 2026"
    >
      <p>
        Bloom Well Therapy is committed to making this website accessible to as many people as possible,
        including people with disabilities.
      </p>

      <h2>Our goal</h2>
      <p>
        We aim to conform to the Web Content Accessibility Guidelines (WCAG) 2.1 Level AA. These guidelines
        help make web content more accessible to people with a wide range of abilities.
      </p>

      <h2>What we do</h2>
      <ul>
        <li>Use clear, readable text and sufficient color contrast</li>
        <li>Provide meaningful structure with headings and labels</li>
        <li>Support keyboard navigation and respect reduced-motion preferences</li>
        <li>Design forms with visible labels and helpful error messages</li>
      </ul>

      <h2>Ongoing work</h2>
      <p>
        Accessibility is an ongoing effort. Some areas of the site may not yet be fully optimized, and we
        continue to test and improve as we grow.
      </p>

      <h2>We'd love your feedback</h2>
      <p>
        If you encounter any barrier using this website, please let us know so we can fix it and help you
        directly in the meantime.
      </p>
      {CONTACT}
    </LegalLayout>
  );
}

window.PrivacyPage = PrivacyPage;
window.TermsPage = TermsPage;
window.AccessibilityPage = AccessibilityPage;
