/* global React */
// Accessibility Statement
const NS_AC = window.GamekeepersCottageDesignSystem_070bc7;
const { Eyebrow, Card } = NS_AC;

function LegalPage({ eyebrow, title, updated, children }) {
  return (
    <React.Fragment>
      <section className="section--tight" style={{ paddingTop: 56 }}>
        <div className="container" style={{ maxWidth: 820 }}>
          <Eyebrow>{eyebrow}</Eyebrow>
          <h1 className="h1" style={{ margin: '14px 0 12px' }}>{title}</h1>
          {updated && <p className="muted" style={{ fontSize: 15.5, margin: 0 }}>Last updated: {updated}</p>}
        </div>
      </section>
      <section className="section" style={{ paddingTop: 28, paddingBottom: 80 }}>
        <div className="container" style={{ maxWidth: 820, display: 'grid', gap: 30 }}>
          {children}
        </div>
      </section>
    </React.Fragment>
  );
}

function H2({ children }) {
  return <h2 className="h3" style={{ margin: '0 0 10px' }}>{children}</h2>;
}
function P({ children }) {
  return <p className="muted" style={{ margin: '0 0 12px', fontSize: 16, lineHeight: 1.7 }}>{children}</p>;
}
function UL({ children }) {
  return <ul className="muted" style={{ margin: '0 0 12px', paddingLeft: 22, fontSize: 16, lineHeight: 1.7, display: 'grid', gap: 6 }}>{children}</ul>;
}

function AccessibilityContent() {
  return (
    <LegalPage eyebrow="Accessibility" title="Accessibility Statement" updated="April 2026">
      <div>
        <H2>Our commitment</H2>
        <P>The Gamekeeper’s Cottage is committed to making this website accessible to as many people as possible, regardless of disability or impairment. We aim to meet the Web Content Accessibility Guidelines (WCAG) 2.1 Level AA standard and comply with our obligations under the Equality Act 2010.</P>
        <P>We are continually working to improve the accessibility of this website and welcome feedback to help us do so.</P>
      </div>

      <div>
        <H2>What we are doing to improve accessibility</H2>
        <P>We are working towards ensuring that this website meets the WCAG 2.1 Level AA standard. Our efforts include:</P>
        <UL>
          <li>Using clear, plain English throughout our website content.</li>
          <li>Providing sufficient colour contrast between text and backgrounds.</li>
          <li>Ensuring all images have descriptive alternative text (alt text).</li>
          <li>Making sure the website can be navigated using a keyboard alone.</li>
          <li>Ensuring text can be resized up to 200% without loss of content or functionality.</li>
          <li>Using headings and structure to make content easier to navigate.</li>
        </UL>
      </div>

      <div>
        <H2>Known accessibility limitations</H2>
        <P>We are aware that some parts of our website may not yet fully meet accessibility standards. Known limitations include:</P>
        <UL>
          <li>Some third-party embedded content (such as booking calendars and Google Maps) may not be fully accessible — we have limited control over third-party tools but are working with suppliers to improve this.</li>
          <li>Some older PDFs or documents linked from our site may not be fully accessible.</li>
        </UL>
        <P>We are actively working to address these issues.</P>
      </div>

      <Card variant="soft" padding="md">
        <H2>Reporting accessibility problems</H2>
        <P>If you experience any difficulty accessing content on this website, or if you have feedback about the accessibility of our site, please contact us:</P>
        <P><b style={{ color: 'var(--text-strong)' }}>Email:</b> <a href="mailto:nickbomayne@tiscali.co.uk">nickbomayne@tiscali.co.uk</a><br />
        <b style={{ color: 'var(--text-strong)' }}>Phone:</b> 01767 261407 or 07915 615207</P>
        <P>We take all feedback seriously and will aim to respond within 5 working days. We will try to provide the information you need in an alternative accessible format where possible.</P>
      </Card>

      <div>
        <H2>Enforcement procedure</H2>
        <P>The Equality Act 2010 requires organisations to make reasonable adjustments to ensure that disabled people can access goods, services, and information. If you are not satisfied with our response to your accessibility concern, you can contact the Equality Advisory and Support Service (EASS):</P>
        <UL>
          <li>Website: <a href="https://www.equalityadvisoryservice.com" target="_blank" rel="noopener">equalityadvisoryservice.com</a></li>
          <li>Phone: 0808 800 0082</li>
          <li>Textphone: 0808 800 0084</li>
        </UL>
      </div>

      <div>
        <H2>Technical information about this website’s accessibility</H2>
        <P>We are working with our web development team to ensure accessibility standards are met across all templates and components.</P>
        <P>We believe this website is partially compliant with WCAG 2.1 Level AA, and we are committed to reaching full compliance as we continue to develop and improve the site.</P>
      </div>

      <div>
        <H2>What to do if you cannot access parts of this website</H2>
        <P>If you need information from this website in a different format — for example, accessible PDF, large print, easy read, audio, or braille — please contact us using the details above and we will do our best to provide it.</P>
      </div>

      <div>
        <H2>Preparation of this accessibility statement</H2>
        <P>This statement was prepared in April 2026 and will be reviewed and updated at least annually, or whenever significant changes are made to the website.</P>
      </div>
    </LegalPage>
  );
}

window.GKmount('accessibility', AccessibilityContent);
