/* ===========================================================================
   Booked Wild — the legal pages (/terms/, /privacy/)

   One sheet for both, so the two pages read as a single family. The layout is
   the one from the supplied reference: a dark hero carrying the eyebrow, date
   and H1, then a cream reading area with a sticky "On this page" rail beside a
   single measured column of copy.

   Everything here is scoped to .lgl-hero / .lgl, so no other page is affected.
   Colours, radii, fonts and spacing all come from the tokens in services.css.
   =========================================================================== */

/* ---- hero ---------------------------------------------------------------- */
.lgl-hero {
  background: var(--ink);
  color: var(--cream);
  padding: 186px var(--pad) 78px;
}
.lgl-hero .wrap { max-width: var(--max); margin: 0 auto; }
.lgl-hero .eyebrow {
  color: var(--accent-soft);
  margin: 0 0 24px;
}
.lgl-hero h1 {
  margin: 0;
  font-size: clamp(38px, 5.4vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-weight: 800;
  color: var(--white);
  max-width: 20ch;
  text-wrap: balance;
}
.lgl-hero .lgl__lede {
  margin: 26px 0 0;
  font-family: 'Karla', sans-serif;
  font-size: clamp(18px, 1.5vw, 23px);
  line-height: 1.55;
  color: rgba(242, 246, 238, 0.86);
  max-width: 46ch;
}

/* ---- reading area -------------------------------------------------------- */
.lgl__grid {
  display: grid;
  grid-template-columns: minmax(0, 250px) minmax(0, 1fr);
  gap: 88px;
  align-items: start;
}

/* The rail follows the reader down the page. It is a real <nav> with a list,
   so it is announced as navigation and can be skipped. */
.lgl__toc {
  position: sticky;
  top: 108px;
  font-family: 'Karla', sans-serif;
}
.lgl__toc-h {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}
.lgl__toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.lgl__toc a {
  font-size: 15.5px;
  line-height: 1.4;
  color: var(--body);
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: 14px;
  margin-left: -16px;
  display: block;
  transition: color .2s ease, border-color .2s ease;
}
.lgl__toc a:hover,
.lgl__toc a:focus-visible { color: var(--ink); border-left-color: var(--accent-mid); }

/* A measured column: legal copy is read, not scanned, so the line length is
   held near 70 characters however wide the viewport gets. */
.lgl__body { max-width: 74ch; }

.lgl__sec + .lgl__sec {
  margin-top: 56px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
}
.lgl__sec { scroll-margin-top: 108px; }

.lgl__h2 {
  margin: 0 0 22px;
  font-size: clamp(26px, 2.4vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--ink);
}
.lgl__h3 {
  margin: 34px 0 14px;
  font-family: 'Karla', sans-serif;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
}
.lgl__body p {
  margin: 0 0 18px;
  font-family: 'Karla', sans-serif;
  font-size: 17px;
  line-height: 1.72;
  color: var(--body);
}
.lgl__body p:last-child { margin-bottom: 0; }

.lgl__list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.lgl__list li {
  position: relative;
  padding-left: 26px;
  font-family: 'Karla', sans-serif;
  font-size: 17px;
  line-height: 1.72;
  color: var(--body);
}
/* A marker rather than a list-style disc, so it lines up with the text column
   and keeps its colour on both grounds. */
.lgl__list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-mid);
}
.lgl__list--defs li b { color: var(--ink); font-weight: 700; }

.lgl__body a {
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1.5px solid var(--accent-mid);
  padding-bottom: 1px;
  text-decoration: none;
}
.lgl__body a:hover,
.lgl__body a:focus-visible { color: var(--ink); border-bottom-color: var(--ink); }

/* ---- responsive ---------------------------------------------------------- */
@media (max-width: 1100px) {
  .lgl__grid { gap: 56px; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); }
}

@media (max-width: 900px) {
  /* The rail stops being a sidebar and becomes a contents card above the copy —
     still useful on a long document, but no longer competing for width. */
  .lgl__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .lgl__toc {
    position: static;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 24px 26px;
  }
  .lgl__toc ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 26px; }
  .lgl__toc a { border-left: 0; padding-left: 0; margin-left: 0; }
  .lgl__toc a:hover, .lgl__toc a:focus-visible { border-left-color: transparent; }
  .lgl__body { max-width: none; }
}

@media (max-width: 768px) {
  .lgl-hero { padding: 150px var(--pad) 62px; }
  .lgl__sec + .lgl__sec { margin-top: 44px; padding-top: 44px; }
}

@media (max-width: 560px) {
  .lgl-hero { padding: 132px var(--pad) 54px; }
  .lgl__toc ul { grid-template-columns: minmax(0, 1fr); }
  .lgl__body p, .lgl__list li { font-size: 16.5px; line-height: 1.7; }
}
