/* =====================================================================================
   LEGAL PAGES (/privacy-policy/, /terms-and-conditions/, /cookie-policy/, /refund-policy/,
   /accessibility-statement/)
   Built on styles.css: same tokens, drafting table, paper sheet and frame, the site’s font system (--font-* in styles.css).
   A reading layout: contents on the left (sticky on desktop), the document on the right.
   Static: no scripts except consent.js, no animation.
   ===================================================================================== */
.lg {
  --line: rgba(23, 20, 15, .16);
  --line-strong: rgba(23, 20, 15, .42);
}

/* The sheet: textures painted straight onto it (no paper.js on these pages). */
.paper.lg-sheet {
  display: flex; flex-direction: column;
  min-height: calc(100vh - 2 * var(--paper-y));
  background:
    url("/assets/paper-fibre.webp") 0 0 / 512px 512px repeat,
    url("/assets/paper-crease.webp") 0 0 / 1024px 1024px repeat,
    radial-gradient(ellipse 140% 50% at 30% 0%, rgba(255, 252, 244, .5) 0%, rgba(255, 252, 244, 0) 60%),
    var(--paper);
}
.lg a { color: var(--ink); text-underline-offset: 3px; }
.lg a:hover { color: var(--red-bright); }
.lg a:focus-visible, .lg button:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 4px; }
.lg .btn:focus-visible { outline-offset: 6px; }

/* ---------- Header + footer line (same as the booking page) ---------- */
.lg-header { padding-top: clamp(26px, 3.4vw, 44px); }
.lg-header__inner, .lg-base__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; }
.lg-header__inner { padding-bottom: 18px; }
.lg-header__inner::after, .lg-base__inner::before {
  content: ""; position: absolute; left: var(--gutter); right: var(--gutter); height: 1px;
  background: linear-gradient(90deg, var(--red-bright) 0, var(--red-bright) 48px, var(--line) 48px);
}
.lg-header__inner::after { bottom: 0; }
.lg-base__inner::before { top: 0; }
.lg .lg-header__logo {
  display: inline-flex; align-items: center; min-height: 44px;
  font: italic 900 28px "Inter", sans-serif;
  letter-spacing: .04em;
  color: var(--ink);
  text-decoration: none;
}
.lg .lg-header__back {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font: 500 12px var(--font-body);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
}
.lg .lg-header__back:hover { color: var(--ink); }

/* ---------- Layout ---------- */
.lg-layout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 104px);
  align-items: start;
  padding-top: clamp(40px, 6vh, 72px);
  padding-bottom: clamp(56px, 8vh, 96px);
}
@media (min-height: 700px) and (min-width: 1024px) {
  .lg-aside { position: sticky; top: 32px; }
}
.lg-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 500 12px var(--font-technical);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--red-bright);
}
.lg-eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--red-bright); }
.lg-toc { margin-top: 22px; }
.lg-toc__title, .lg-docs__title {
  font: 600 11px var(--font-technical);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
}
.lg-toc ol, .lg-docs ul { list-style: none; margin-top: 10px; }
.lg-toc li + li, .lg-docs li + li { border-top: 1px solid var(--line); }
.lg .lg-toc a, .lg .lg-docs a {
  display: flex; align-items: baseline; gap: 12px;
  padding: 9px 0;
  font: 400 13.5px/1.4 var(--font-body);
  color: var(--ink-2);
  text-decoration: none;
}
.lg .lg-toc a:hover, .lg .lg-docs a:hover { color: var(--ink); text-decoration: underline; }
.lg-toc a span { flex: none; width: 22px; font-size: 11px; letter-spacing: .1em; color: var(--red-bright); }
.lg-docs { margin-top: 30px; }
.lg .lg-docs a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---------- Document ---------- */
.lg-doc { min-width: 0; max-width: 760px; }
.lg-title {
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  font-size: clamp(54px, 6vw, 96px);
  line-height: .95;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--ink);
}
.lg-title em { font-style: normal; color: var(--red-bright); }
.lg-meta { display: flex; flex-wrap: wrap; margin-top: 22px; border: 1px solid var(--line-strong); width: fit-content; max-width: 100%; }
.lg-meta > div { padding: 8px 14px; }
.lg-meta > div + div { border-left: 1px solid var(--line); }
.lg-meta dt { font: 500 8.5px var(--font-technical); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); }
.lg-meta dd { margin-top: 4px; font: 600 11.5px var(--font-technical); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }

.lg-section { margin-top: clamp(40px, 6vh, 56px); scroll-margin-top: 24px; }
.lg-section h2 {
  display: flex; align-items: baseline; gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.05;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--ink);
}
.lg-section h2 span { flex: none; font: 500 12px var(--font-technical); letter-spacing: .2em; color: var(--red-bright); }
.lg-section h3 {
  margin-top: 22px;
  font: 600 12.5px var(--font-technical);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
}
.lg-section p, .lg-section li { font: 400 16px/1.7 var(--font-body); color: var(--ink-2); }
.lg-section p { margin-top: 14px; }
.lg-section strong { color: var(--ink); font-weight: 600; }
.lg-section ul { margin-top: 12px; padding-left: 0; list-style: none; }
.lg-section ul li { position: relative; padding-left: 22px; }
.lg-section ul li + li { margin-top: 6px; }
.lg-section ul li::before { content: ""; position: absolute; left: 2px; top: .8em; width: 10px; height: 1px; background: var(--red-bright); }
/* Numbered steps (security incident response): red two-digit counters, like the section numbers. */
.lg-section ol { margin-top: 12px; padding-left: 0; list-style: none; counter-reset: lg-step; }
.lg-section ol li { position: relative; padding-left: 34px; counter-increment: lg-step; }
.lg-section ol li + li { margin-top: 6px; }
.lg-section ol li::before { content: counter(lg-step, decimal-leading-zero); position: absolute; left: 0; top: .3em; font: 500 11px var(--font-technical); letter-spacing: .1em; color: var(--red-bright); }
.lg-section code { font: 13.5px ui-monospace, "Cascadia Mono", Consolas, monospace; color: var(--ink); background: rgba(23, 20, 15, .06); padding: 1px 5px; }

/* Important notices inside a section (form status, deletion warning). */
.lg-note { margin-top: 16px; padding: 14px 18px 16px; border: 1px solid var(--line-strong); border-left: 3px solid var(--red-bright); background: rgba(255, 252, 244, .6); }
.lg-note__tag { font: 600 10.5px var(--font-technical); letter-spacing: .2em; text-transform: uppercase; color: var(--red-bright); }
.lg-section .lg-note p { margin-top: 6px; }

/* Short label/value lists (identity, founder contact). */
.lg-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); }
.lg-facts > div { padding: 10px 14px; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); min-width: 0; }
.lg-facts dt { font: 500 9px var(--font-technical); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); }
.lg-facts dd { margin-top: 4px; font: 500 15px/1.4 var(--font-body); color: var(--ink); overflow-wrap: anywhere; }

/* Tables (cookie list): scroll inside their own box on narrow screens, never the page. */
.lg-table-wrap { margin-top: 16px; overflow-x: auto; border: 1px solid var(--line-strong); }
.lg-table { width: 100%; min-width: 560px; border-collapse: collapse; font: 400 14px/1.5 var(--font-body); color: var(--ink-2); }
.lg-table th, .lg-table td { padding: 10px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.lg-table th { border-top: 0; font: 600 10.5px var(--font-technical); letter-spacing: .18em; text-transform: uppercase; color: var(--ink); background: rgba(255, 252, 244, .55); }

/* Category cards (cookie policy) */
.lg-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.lg-cat { padding: 16px; border: 1px solid var(--line); background: rgba(255, 252, 244, .4); }
.lg-cat h3 { margin-top: 0; }
.lg-cat p { margin-top: 8px; font-size: 14px; line-height: 1.55; }
.lg-cat__tag {
  display: inline-block; margin-top: 12px;
  font: 600 10px var(--font-technical); letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-3);
}
.lg-cat__tag--on { color: var(--red-bright); }

/* Current consent + the Cookie settings button (cookie policy) */
.lg-consent { margin-top: 18px; padding: 16px 18px; border: 1px solid var(--line-strong); background: rgba(255, 252, 244, .55); }
.lg-consent__label { font: 600 10.5px var(--font-technical); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.lg-consent__status { margin-top: 6px !important; font-size: 15px !important; color: var(--ink) !important; }
.lg-consent .btn { margin-top: 14px; padding: 13px 28px; font-size: 12.5px; text-transform: uppercase; }

/* ---------- Footer line ---------- */
.lg-base__inner {
  flex-wrap: wrap;
  padding-top: 18px; padding-bottom: clamp(24px, 4vh, 36px);
  font: 400 12.5px var(--font-body);
  letter-spacing: .04em;
  color: var(--ink-3);
}
.lg-base__links { display: flex; flex-wrap: wrap; gap: 0 22px; list-style: none; }
.lg .lg-base__links a, .lg-base__btn {
  display: inline-flex; align-items: center; min-height: 44px;
  font: 400 12.5px var(--font-body);
  letter-spacing: .04em;
  color: var(--ink-2);
}
.lg-base__btn { appearance: none; border: 0; background: none; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lg-base__btn:hover { color: var(--red-bright); }

/* ---------- Tablet + phone ---------- */
/* Phones + tablets: the contents list folds into a closed "On this page" menu under the title. */
.lg-toc-m { display: none; }
@media (max-width: 1023px) {
  .lg-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 36px; }
  .lg-toc, .lg-docs { display: none; }      /* the footer lists the legal pages */
  .lg-toc-m { display: block; margin-top: 22px; border: 1px solid var(--line-strong); background: rgba(255, 252, 244, .45); }
  .lg-toc-m summary {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 48px; padding: 0 16px;
    font: 600 11px var(--font-body);
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
  }
  .lg-toc-m summary::-webkit-details-marker { display: none; }
  .lg-toc-m summary::after { content: "+"; font: 400 22px/1 var(--font-body); color: var(--red-bright); }
  .lg-toc-m[open] summary::after { content: "−"; }
  .lg-toc-m summary:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 2px; }
  .lg-toc-m ol { list-style: none; margin: 0 16px 8px; }
  .lg-toc-m li { border-top: 1px solid var(--line); }
  .lg .lg-toc-m a { display: flex; align-items: baseline; gap: 12px; padding: 11px 0; font: 400 14px/1.4 var(--font-body); color: var(--ink-2); text-decoration: none; }
  .lg-toc-m a span { flex: none; width: 22px; font-size: 11px; letter-spacing: .1em; color: var(--red-bright); }
  .lg-cats { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .lg .lg-header__logo { font-size: 22px; }
  .lg .lg-header__back { font-size: 11px; letter-spacing: .16em; }
  .lg-layout { padding-top: 28px; padding-bottom: 48px; }
  .lg-title { font-size: min(56px, 12vw); }   /* "CYBERSECURITY" and "CANCELLATION." must fit a 320px phone */
  .lg-section p, .lg-section li { font-size: 15px; }
  .lg-base__inner { flex-direction: column; align-items: flex-start; gap: 0; }
  .lg-facts { grid-template-columns: minmax(0, 1fr); }
  /* Tables with labelled cells stack each row on phones instead of scrolling sideways. */
  .lg-table--stack { min-width: 0; }
  .lg-table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lg-table--stack tr { display: block; padding: 6px 0 10px; border-top: 1px solid var(--line); }
  .lg-table--stack tr:first-child { border-top: 0; }
  .lg-table--stack td { display: block; padding: 6px 14px 0; border-top: 0; }
  .lg-table--stack td::before {
    content: attr(data-label); display: block; margin-bottom: 2px;
    font: 600 9.5px var(--font-technical); letter-spacing: .18em; text-transform: uppercase; color: var(--ink);
  }
}
