/* global React */
// Privacy Policy
const NS_PV = window.GamekeepersCottageDesignSystem_070bc7;
const { Eyebrow, Card } = NS_PV;

// Shared layout helpers for the legal / policy pages
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 PrivacyContent() {
  return (
    <LegalPage eyebrow="Privacy" title="Privacy Policy" updated="April 2026">
      <div>
        <H2>General</H2>
        <P>This policy explains what information we gather when you visit this website and explains how that information is used.</P>
        <P>Any changes to this privacy policy will be posted on this page.</P>
      </div>

      <div>
        <H2>Data collected</H2>
        <P>In common with most websites, this site automatically logs certain information about every request made of it (see below for more details). This information is used for system administration, for bug tracking, and for producing usage statistics. The logged information may be kept indefinitely.</P>
        <P>Relevant subsets of this data may be passed to computer security teams as part of investigations of computer misuse involving this site or our hosting equipment. Data may be passed to the administrators of other computer systems to enable investigation of problems accessing this site or of system misconfigurations. Data may incidentally be included in information passed to contractors and computer maintenance organisations working for us, in which case it will be covered by appropriate non-disclosure agreements. Otherwise the logged information is not passed to any third party except if required by law. Summary statistics are extracted from this data and some of these may be made publicly available, but those that are do not include information from which individuals could be identified.</P>
        <P>You should appreciate that a log is a record of what a server sees, not necessarily what was initially sent. If a request is sent via a proxy the log file will show the proxy’s address. If someone has forged your address the log file will show your address.</P>
        <P>A number of fill-in forms are provided on this site. The pages containing these forms include information on how data submitted on them will be processed and used.</P>
        <P>This site may use web “cookies” as part of user authentication (login) and to store information needed by other facilities. To find out more about cookies and how to handle them please visit <a href="https://www.aboutcookies.org/" target="_blank" rel="noopener">aboutcookies.org</a>.</P>
        <P>This website does not use any third-party analytics, behaviour-tracking, or advertising tools, and sets no tracking cookies.</P>
      </div>

      <div>
        <H2>Logged data</H2>
        <P>The following data is automatically logged for each request:</P>
        <UL>
          <li>The name or network address of the computer making the request. Note that under some (but not all) circumstances it may be possible to infer from this the identity of the person making the request. Note also that the data recorded may be that of a web proxy rather than that of the originating client.</li>
          <li>The username, when known during authenticated (logged in) access to the site.</li>
          <li>The date and time of connection.</li>
          <li>The HTTP request, which contains the identification of the document requested.</li>
          <li>The status code of the request (success or failure etc.).</li>
          <li>The number of data bytes sent in response.</li>
          <li>Referring URL and domain obtained from the contents of the HTTP Referrer header supplied by the browser.</li>
          <li>Device type, operating system and browser type based on the content of the HTTP User-Agent header supplied by the browser.</li>
          <li>Geographic location.</li>
          <li>Preferred language.</li>
        </UL>
        <P>Logging of additional data may be enabled temporarily from time to time for specific purposes. In addition, the computers on which the website is hosted keep records of attempts (authorised and unauthorised) to use them for purposes other than access to the web server. This data typically includes the date and time of the attempt, the service to which access was attempted, the name and/or network address of the computer making the connection, and may include details of what was done or was attempted to be done.</P>
      </div>

      <Card variant="soft" padding="md">
        <H2>Terms &amp; Conditions</H2>
        <P>Please find our Terms &amp; Conditions <a href="terms">here</a>.</P>
      </Card>
    </LegalPage>
  );
}

window.GKmount('privacy', PrivacyContent);
