// Privacy Policy + Terms of Service
// NOTE: Industry-standard photography boilerplate. Have an attorney review before launch.

const LegalPage = ({ eyebrow, title, scriptWord, intro, updated, sections }) => (
  <>
    <section className="page-hero container reveal">
      <div className="eyebrow" style={{marginBottom: 16}}>{eyebrow}</div>
      <h1>{title}<br/><span className="script" style={{color: 'var(--rose-deep)'}}>{scriptWord}</span></h1>
      <p className="sub">{intro}</p>
      <div className="mono" style={{color: 'var(--charcoal-mute-text)', marginTop: 24}}>Last updated · {updated}</div>
    </section>

    <section className="container-narrow" style={{paddingBottom: 120}}>
      <div className="reveal">
        {sections.map((s, i) => (
          <div key={i} style={{paddingTop: i === 0 ? 0 : 40, paddingBottom: 8}}>
            <div className="orn" style={{marginBottom: 18}}>
              <span className="mono" style={{color: 'var(--gold-text)'}}>{`0${i + 1}`.slice(-2)}</span>
            </div>
            <h2 style={{fontSize: 32, marginBottom: 18}}>{s.h}</h2>
            {s.p.map((para, j) => (
              typeof para === 'string'
                ? <p key={j} style={{color: 'var(--charcoal-soft)', fontSize: 16}}>{para}</p>
                : (
                  <ul key={j} style={{color: 'var(--charcoal-soft)', fontSize: 16, paddingLeft: 20, margin: '0 0 1em'}}>
                    {para.list.map((li, k) => <li key={k} style={{marginBottom: 6}}>{li}</li>)}
                  </ul>
                )
            ))}
          </div>
        ))}

        <div style={{marginTop: 60, padding: 28, background: 'var(--blush)', borderRadius: 16, fontSize: 15, color: 'var(--charcoal-soft)', textAlign: 'center'}}>
          Questions about this page? Email <a href="mailto:motherhoodlensco@gmail.com" style={{color: 'var(--rose-text)', borderBottom: '1px solid var(--gold)', textDecoration: 'none'}}>motherhoodlensco@gmail.com</a>.
        </div>
      </div>

      <div className="center reveal" style={{marginTop: 60}}>
        <a href="#/contact" className="btn btn-secondary">Back to Contact</a>
      </div>
    </section>
  </>
);

const Privacy = () => (
  <LegalPage
    eyebrow="Privacy Policy"
    title="Your trust,"
    scriptWord="protected"
    intro="What I collect, how I use it, and how I keep your family's information safe."
    updated="April 2026"
    sections={[
      {
        h: 'The basics',
        p: [
          'Motherhood Lens Co. ("I," "me," "Motherhood Lens Co.") is a sole-proprietor photography studio based in Fort Mill, South Carolina. This Privacy Policy explains how I collect, use, and protect personal information when you visit motherhoodlensco.com or book a session.',
          "By using this site or inquiring about a session, you agree to the practices described below. If you don't agree, please don't use the site or submit an inquiry.",
        ],
      },
      {
        h: 'What I collect',
        p: [
          'I only collect information that helps me serve you well as a client. That includes:',
          { list: [
            'Information you give me directly: name, email, phone number, mailing address, session preferences, family details, and anything else you share through the inquiry form, email, text, or in person.',
            'Booking and payment information, collected through my booking platform and payment processor (e.g. Stripe). I do not store full credit card numbers myself.',
            'Gallery account information: name and email used to create your private online gallery, plus images you mark as favorites or download.',
            "Site usage information: basic analytics (pages viewed, device, approximate location) collected automatically to help me improve the site. I don't tie this to your name.",
          ]},
        ],
      },
      {
        h: 'How I use your information',
        p: [
          'I use what you share to:',
          { list: [
            'Respond to your inquiry and answer questions.',
            'Plan, schedule, deliver, and follow up on your session.',
            'Process payments, contracts, and gallery delivery.',
            'Send service-related communication (session reminders, gallery links, print order confirmations).',
            'Send occasional marketing emails, only if you have opted in. You can unsubscribe any time.',
            'Improve my services and this website.',
          ]},
        ],
      },
      {
        h: 'Who I share it with',
        p: [
          "I do not sell your information. Ever. I share information only with the trusted service providers I rely on to run my business, for example, my booking and contract platform, my online gallery host, my payment processor, my email service provider, and my print lab. Each of these vendors is bound by their own privacy and data-protection commitments.",
          'I may also share information when required by law, to enforce my agreements, or to protect the rights and safety of clients, the public, or my business.',
        ],
      },
      {
        h: 'Cookies & analytics',
        p: [
          'This site uses small data files called cookies (and similar technologies) to remember preferences and to gather anonymous usage statistics. You can disable cookies in your browser settings; some parts of the site may not work as smoothly without them.',
          "If I use third-party analytics tools (such as Google Analytics or a similar service), they collect aggregated, anonymized data about how visitors use the site. They do not receive your name or contact information.",
        ],
      },
      {
        h: 'Your rights',
        p: [
          'You may at any time request to:',
          { list: [
            'See what personal information I hold about you.',
            'Correct or update inaccurate information.',
            'Have your personal information deleted (subject to legal record-keeping requirements, such as tax records).',
            'Opt out of marketing email.',
            'Opt out of any future sale of your information (I do not sell information).',
          ]},
          'To make any of these requests, email motherhoodlensco@gmail.com. I will respond within 30 days.',
        ],
      },
      {
        h: "Children's privacy",
        p: [
          "Children appear in many of my photographs, but a parent or legal guardian is always the contracting client. I do not knowingly collect personal information directly from children under 13. If you believe a child has submitted information through this site, contact me and I will delete it.",
        ],
      },
      {
        h: 'How I keep it safe',
        p: [
          'I use industry-standard safeguards (encrypted connections, password-protected galleries, reputable vendor platforms) to protect your information. No system is perfectly secure, but I take reasonable steps to minimize risk and will notify affected clients in the event of a security incident as required by law.',
        ],
      },
      {
        h: 'Changes to this policy',
        p: [
          'I may update this policy from time to time. The "Last updated" date at the top of the page reflects the most recent revision. Material changes will be communicated to active clients by email.',
        ],
      },
      {
        h: 'Contact',
        p: [
          'For any privacy question, write to motherhoodlensco@gmail.com.',
        ],
      },
    ]}
  />
);

const Terms = () => (
  <LegalPage
    eyebrow="Terms of Service"
    title="Honest terms,"
    scriptWord="thoughtful work"
    intro="The handshake behind every booking: what you can expect from me, and what I ask in return."
    updated="April 2026"
    sections={[
      {
        h: 'Booking & retainer',
        p: [
          'A signed booking contract and a non-refundable retainer (typically 25–50% of the session fee, depending on session type) are required to reserve your date. The remaining balance is due on or before the session date unless otherwise agreed in writing. Dates are not held until both the contract and retainer are received.',
        ],
      },
      {
        h: 'Session day, weather & little humans',
        p: [
          "Outdoor sessions are subject to weather. If conditions threaten the session, I will reach out to discuss rescheduling. There's no fee for a weather-related reschedule.",
          "I work with babies and small children every week and build flexibility into every session. If your little one needs feeding, snuggles, or a meltdown break, that is part of the work, not a problem.",
        ],
      },
      {
        h: 'Cancellations & rescheduling',
        p: [
          { list: [
            'Retainers are non-refundable.',
            'You may reschedule once with at least 48 hours notice at no additional cost (other than a possible difference in seasonal pricing).',
            'Less than 48 hours notice, or a second reschedule, may require a new retainer.',
            "If I must cancel due to illness or emergency, I will work with you to reschedule as quickly as possible, or provide a full refund of any payments made if rescheduling isn't possible.",
          ]},
        ],
      },
      {
        h: 'Photo selection & editing',
        p: [
          "I personally hand-select and edit every image you receive. Images that are out of focus, duplicate, or unflattering are not delivered. All images are edited in my signature warm, light, true-to-skin style. Heavy retouching (body modification, removal of permanent features) is generally not provided.",
          'Raw, unedited files are not delivered.',
        ],
      },
      {
        h: 'Delivery timeline',
        p: [
          { list: [
            'Mini sessions: within 7 days of the session.',
            'Standard sessions: within 2–3 weeks of the session.',
            'Newborn sessions: within 2–3 weeks of the session.',
            'Rush delivery may be available for an additional fee.',
          ]},
        ],
      },
      {
        h: 'Print release & personal use',
        p: [
          'Each session includes a personal print release for your edited high-resolution images. You may print them for personal use, share them on personal social media (credit appreciated), and gift them to immediate family. You may not sell the images, alter them substantially (including additional filters or heavy edits), enter them in contests, or use them for any commercial purpose without my written permission.',
        ],
      },
      {
        h: 'Copyright & portfolio use',
        p: [
          'All images created during your session remain the copyrighted property of Motherhood Lens Co. By booking a session, you grant me the right to use selected images for portfolio, website, social media, marketing, blog, and educational purposes. If you prefer your images not be shared publicly, please let me know in writing before the session and I will honor that request.',
        ],
      },
      {
        h: 'Image storage & backups',
        p: [
          'Galleries remain available for download for at least 60 days after delivery, after which they may be archived. I keep a backup copy of edited images for one year. After that, I make no guarantee of file recovery, so please download and back up your gallery promptly.',
        ],
      },
      {
        h: 'Limitation of liability',
        p: [
          "In the rare event of equipment failure, illness, accident, act of God, or any other circumstance beyond my reasonable control that prevents the delivery of some or all images, my total liability is limited to a refund of the amounts you have paid. I am not liable for indirect, incidental, or consequential damages.",
        ],
      },
      {
        h: 'Governing law',
        p: [
          'These Terms are governed by the laws of the State of South Carolina, without regard to conflict-of-law principles. Any dispute arising under these Terms will be resolved in the state or federal courts located in York County, South Carolina.',
        ],
      },
      {
        h: 'Contact',
        p: [
          'For questions about these terms, write to motherhoodlensco@gmail.com. I will always do my best to be transparent and fair.',
        ],
      },
    ]}
  />
);

const AccessibilityStatement = () => (
  <LegalPage
    eyebrow="Accessibility"
    title="A site for"
    scriptWord="every family"
    intro="I want every parent who lands on this site to find what they need, regardless of how they browse the web."
    updated="May 2026"
    sections={[
      {
        h: 'My commitment',
        p: [
          'Motherhood Lens Co. is committed to making this website accessible to as many people as possible, including those who use screen readers, keyboard navigation, voice control, or other assistive technologies.',
          'I treat accessibility as an ongoing practice, not a one-time checklist. As the site grows, every new page is built and reviewed with these standards in mind.',
        ],
      },
      {
        h: 'Conformance standard',
        p: [
          'This site is built to conform with the Web Content Accessibility Guidelines (WCAG) 2.2 at Level AA. Level AA is the standard recommended by the U.S. Department of Justice for compliance with the Americans with Disabilities Act (ADA), and the standard used by similar laws in Canada, the UK, and the EU.',
          'Specific things I have implemented:',
          { list: [
            'Visible keyboard focus indicators on every interactive element.',
            'Skip-to-main-content link as the first stop when tabbing through the page.',
            'Color contrast of at least 4.5:1 for body text and 3:1 for large text and interface elements.',
            'Programmatically associated labels on every form field, with appropriate input types and autocomplete attributes.',
            'Semantic HTML landmarks (header, nav, main, footer) so screen readers can navigate the page structure.',
            'Mobile-responsive layout tested down to 320px wide with no horizontal scroll.',
            'Animations that respect the reduced-motion preference set in your operating system.',
          ]},
        ],
      },
      {
        h: 'Date of last review',
        p: [
          'This site was audited and updated for WCAG 2.2 Level AA conformance in May 2026. Re-reviews happen any time the site is meaningfully changed, and at minimum every quarter.',
        ],
      },
      {
        h: 'Known limitations',
        p: [
          "I'm being honest here so you know exactly what to expect. As of the last review:",
          { list: [
            'A few large script-font accents (the cursive flourishes that say things like "Hi, friend") use a brand color that meets the 3:1 contrast standard for large text but not the 4.5:1 standard for body text. Where this color is used at body-text size, I switched to a darker variant that does meet 4.5:1.',
            "Some uppercase mono-spaced labels are 11–12px in size. This is intentional for the visual rhythm of the brand. The text is letter-spaced for legibility and color contrast meets AA at that size, but if you'd prefer larger text, browser zoom (Ctrl/Cmd + scroll or Ctrl/Cmd + plus) works smoothly without breaking the layout.",
            'The in-browser image gallery and any embedded third-party platforms (booking software, payment forms) are accessibility-reviewed when added, but their conformance depends on the vendor.',
          ]},
        ],
      },
      {
        h: 'How to report an accessibility issue',
        p: [
          'If you run into anything on this site that prevents you from getting what you need, please tell me. I take these reports seriously and will work to fix the issue quickly.',
          'Email: motherhoodlensco@gmail.com',
          'When you write, please include the page you were on (the URL helps), the device and browser you were using, the assistive technology if any (screen reader, voice control, etc.), and a short description of what went wrong. I will respond within 5 business days and let you know the plan for resolving it.',
        ],
      },
      {
        h: 'Formal complaints',
        p: [
          "If you're not satisfied with my response to an accessibility issue, you have the right to file a complaint with the U.S. Department of Justice through the ADA website (ada.gov), or with the equivalent regulator for your country or state. I'd much rather hear from you first and fix it directly, but I want you to know that option exists.",
        ],
      },
    ]}
  />
);

Object.assign(window, { Privacy, Terms, AccessibilityStatement });
