/* Legal reading workspace, shared by responsible-wagering, terms-and-conditions,
 * cookie-policy and privacy-policy. The base numbers are the responsible-wagering
 * frame's (16:243 / 44:4); each page sets its own widths, gaps and colours on the
 * .doc--<page> modifier in pages/<slug>.css. Numbers from fig-spec.
 *
 * Desktop: hero → (metadata) → .doc = sidebar (sticky) + body.
 * Mobile:  hero → (metadata) → directory block → body block (same DOM). */

/* ── hero ─────────────────────────────────────────────────────────────── */
.lhero { display: flex; flex-direction: column; gap: 16px; padding: 96px var(--container-pad); background: var(--color-purple); }
.lhero__eyebrow { font-weight: 800; font-size: 14px; line-height: 18px; letter-spacing: .11em; text-transform: uppercase; color: var(--color-brand); }
.lhero__eyebrow-b { color: var(--color-brand); }                /* mobile frames paint the second half white */
.lhero__title { font-family: var(--font-display); font-size: 64px; line-height: 70px; text-transform: uppercase; color: var(--color-text); }
.lhero__sub { font-family: var(--font-display); font-size: 28px; line-height: 30px; text-transform: uppercase; color: var(--color-brand); opacity: .9; }
.lhero__lead { font-size: 15px; line-height: 23px; color: var(--color-card-2); }

/* ── workspace ────────────────────────────────────────────────────────── */
.doc {
  --doc-side: 280px; --doc-gap: 80px; --doc-line: var(--color-border-light);
  display: flex; align-items: flex-start; gap: var(--doc-gap);
  padding: 80px var(--container-pad) 120px; background: var(--color-card-2);
}
.doc__nav { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 12px; flex: none; width: var(--doc-side); max-height: calc(100vh - 112px); overflow-y: auto; scrollbar-width: thin; }   /* taller than a laptop viewport: the list scrolls inside, so every entry stays reachable */
.doc__nav-title { font-family: var(--font-display); font-size: 14px; line-height: 15px; letter-spacing: .07em; text-transform: uppercase; color: var(--color-muted); }
.doc__nav-line { display: none; height: 1px; margin: 0 0 -1px; border: 0; background: var(--color-border); }   /* Figma LINE (mobile frames only) */
.doc-toc { display: flex; flex-direction: column; gap: 2px; }
.doc-toc__link {
  display: flex; align-items: center; gap: .3em; padding: 10px 12px; border-radius: var(--radius-sm);   /* "01 Our Commitment" is one text run in the frame */
  font-weight: 500; font-size: 13px; line-height: 17px; color: var(--color-ink-2); text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.doc-toc__link:hover { background: rgba(139, 92, 246, .12); color: var(--color-ink); }
.doc-toc__link.is-active { background: var(--color-purple-light); font-weight: 700; color: var(--color-text); }
.doc-toc__num { flex: none; }
.doc-toc__link.is-hidden { display: none; }                      /* filtered out by the document search */

.doc__body { display: flex; flex-direction: column; gap: 80px; flex: 1; min-width: 0; }
.doc-sec { position: relative; display: flex; flex-direction: column; gap: 24px; scroll-margin-top: 96px; }
.doc-sec[hidden] { display: none; }
.doc-sec__head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.doc-sec__num { font-family: var(--font-mono); font-weight: 800; font-size: 36px; line-height: 47px; color: var(--color-purple-light); }
.doc-sec__title { font-family: var(--font-display); font-size: 28px; line-height: 30px; text-transform: uppercase; color: var(--color-ink); }
.doc-sec__line { flex-basis: 100%; height: 1px; margin: 8px 0 -1px; border: 0; background: var(--doc-line); }   /* LINE after the 47px head row: 24 gap − 16 = 8 */
.doc-sec__end { display: none; }

/* ── blocks (responsible-wagering look; other pages override) ─────────── */
.doc-p { max-width: 700px; font-size: 16px; line-height: 27px; color: var(--color-ink); }
.doc-tel { color: inherit; text-decoration: none; }
.doc-tel:hover { text-decoration: underline; }
.doc-note { max-width: 700px; font-weight: 700; font-size: 16px; line-height: 27px; color: var(--color-purple); }
.doc-ps { display: flex; flex-direction: column; gap: 16px; }
.doc-ps--gap14 { gap: 14px; }
.doc-list { display: flex; flex-direction: column; gap: 12px; max-width: 700px; }
.doc-list__item { display: flex; gap: 12px; }
.doc-list__marker { flex: none; font-weight: 700; font-size: 16px; line-height: 21px; color: var(--color-purple-light); }
.doc-list--ol .doc-list__marker { font-family: var(--font-mono); font-weight: 800; font-size: 15px; line-height: 20px; }
.doc-list__text { font-size: 15px; line-height: 24px; color: var(--color-ink); }
.doc-list__text--bullet { display: block; }   /* the glyph is part of the text, as typed in the frame; wrapped lines run flush like the frame */
.doc-card { display: flex; flex-direction: column; gap: 32px; max-width: 700px; padding: 32px; background: var(--color-card); box-shadow: inset 0 0 0 1px var(--color-border-light); border-radius: var(--radius-md); }
.doc-card__item { display: flex; flex-direction: column; gap: 8px; scroll-margin-top: 96px; }
.doc-card__title { font-family: var(--font-display); font-size: 16px; line-height: 17px; text-transform: uppercase; color: var(--color-ink); }
.doc-card__text { font-size: 15px; line-height: 24px; color: var(--color-ink-2); }
.doc-subs { display: contents; }
.doc-sub { display: flex; flex-direction: column; gap: 16px; max-width: 700px; scroll-margin-top: 96px; }
.doc-sub__title { font-family: var(--font-display); font-size: 18px; line-height: 20px; text-transform: uppercase; color: var(--color-ink); }
.doc-sub__text { font-size: 16px; line-height: 27px; color: var(--color-ink); }
.doc-support { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 700px; padding: 32px; background: var(--color-card); box-shadow: inset 0 0 0 2px var(--color-purple-light); border-radius: var(--radius-md); }
.doc-support__title { font-family: var(--font-display); font-size: 18px; line-height: 20px; text-transform: uppercase; color: var(--color-purple); }
.doc-support__phone { font-family: var(--font-display); font-size: 40px; line-height: 44px; color: var(--color-red); text-decoration: none; }   /* red as drawn (F3) */
.doc-support__phone:hover { text-decoration: underline; }
.doc-support__meta { font-family: var(--font-mono); font-weight: 700; font-size: 14px; line-height: 18px; color: var(--color-ink-2); }
.doc-age { display: flex; align-items: center; gap: 24px; max-width: 700px; }
.doc-age__badge { display: inline-flex; flex: none; padding: 16px; background: var(--color-red); border-radius: var(--radius-md); font-family: var(--font-display); font-size: 24px; line-height: 26px; color: var(--color-text); }
.doc-age__text { font-size: 16px; line-height: 27px; color: var(--color-ink); }
.doc-phone { display: flex; max-width: 700px; padding: 24px; background: var(--color-card); box-shadow: inset 0 0 0 1px var(--color-border-light); border-radius: var(--radius-sm); }
.doc-phone__number { font-family: var(--font-display); font-size: 36px; line-height: 39px; color: var(--color-red); text-decoration: none; }
.doc-phone__number:hover { text-decoration: underline; }
.doc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; align-self: flex-start; padding: 12px 24px;
  border: 0; border-radius: var(--radius-sm); background: var(--color-purple-light); color: var(--color-text); cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 14px; line-height: 18px; text-transform: uppercase; text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.doc-btn:hover { background: var(--color-purple-btn-hover); }
.doc-btn:active { transform: translateY(1px); }
.doc-btn:focus-visible { outline: none; box-shadow: var(--focus-ring-light); }
.doc-btn--red { background: var(--color-red); }
.doc-btn--red:hover { background: #dc2626; }                      /* darker step of the mockup red (no token) */
.doc-btn--brand { background: var(--color-purple-light); }          /* "VIEW DEPOSIT LIMITS" is purple on desktop, yellow on mobile */
.doc-link { align-self: flex-start; font-family: var(--font-display); font-size: 15px; line-height: 16px; color: var(--color-purple); text-decoration: none; }
.doc-link:hover { text-decoration: underline; }

/* end-of-document row (cookie / privacy) */
.doc-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.doc-foot__end { font-family: var(--font-mono); font-size: 12px; line-height: 16px; text-transform: uppercase; color: var(--color-muted-2); }
.doc-foot__top { font-weight: 700; font-size: 13px; line-height: 17px; text-transform: uppercase; color: var(--color-brand); text-decoration: none; }
.doc-foot__top:hover { text-decoration: underline; }

/* document search (cookie / privacy) */
.doc-search { display: flex; flex-direction: column; gap: 8px; }
.doc-search__label { font-weight: 700; font-size: 12px; line-height: 16px; text-transform: uppercase; color: var(--color-muted-2); }
.doc-search__box { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 12px; background: var(--color-card); box-shadow: inset 0 0 0 1px var(--color-border); }
.doc-search__box:focus-within { box-shadow: inset 0 0 0 1px var(--color-purple-btn), var(--focus-ring-light); }
.doc-search__icon { width: 16px; height: 16px; color: var(--color-muted); }
.doc-search__input { flex: 1; align-self: stretch; margin: -12px 0; min-width: 0; padding: 12px 0;   /* fills the box's height: the tap zone is the box, not the 18px line */ border: 0; background: none; color: var(--color-ink); font-size: 14px; line-height: 18px; outline: none; }
.doc-search__input::placeholder { color: var(--color-muted); }
.doc-search__empty { font-size: 14px; line-height: 20px; color: var(--color-muted-2); }
.doc-search__empty[hidden] { display: none; }

/* ── mobile (390 frames) ──────────────────────────────────────────────── */
@media (max-width: 1199px) {
  .lhero { gap: 20px; padding: 32px var(--container-pad); }
  .lhero__eyebrow { font-size: 11px; line-height: 14px; letter-spacing: 1px; }
  .lhero__eyebrow-b { color: var(--color-text); }
  .lhero__text { display: flex; flex-direction: column; gap: 12px; }
  .lhero__title { font-size: 42px; line-height: 46px; }
  .lhero__sub { font-size: 20px; line-height: 24px; opacity: 1; }
  .lhero__lead { font-size: 14px; line-height: 20px; }

  .doc { display: block; padding: 0; background: var(--color-card-2); }
  .doc__nav { position: static; width: auto; max-height: none; overflow: visible; gap: 12px; padding: 16px var(--container-pad); background: var(--color-surface); box-shadow: inset 0 -1px 0 var(--color-border); }
  .doc__nav-title { font-size: 14px; line-height: 15px; letter-spacing: 0; color: var(--color-text); }
  .doc__nav-line { display: block; }
  .doc-toc { gap: 6px; }
  .doc-toc__link { gap: 12px; padding: 4px 0; border-radius: 0; font-weight: 400; color: var(--color-muted); }
  .doc-toc__link:hover, .doc-toc__link.is-active { background: none; font-weight: 400; color: var(--color-text); }
  .doc-toc__num { font-family: var(--font-mono); font-weight: 700; font-size: 12px; line-height: 16px; color: var(--color-brand); }
  .doc-toc__label { text-transform: uppercase; }

  .doc__body { gap: 32px; padding: 32px var(--container-pad) 40px; }
  .doc-sec { gap: 16px; scroll-margin-top: 72px; }
  .doc-sec__head { flex-direction: column; align-items: stretch; gap: 8px; }
  .doc-sec__num { font-size: 24px; line-height: 31px; color: var(--color-purple-btn); }
  .doc-sec__title { font-size: 20px; line-height: 22px; }
  .doc-sec__line { flex-basis: auto; margin: 0 0 -1px; }
  .doc-sec:last-child .doc-sec__end { display: none; }
  .doc-sec__end { display: block; width: 100px; height: 20px; background: linear-gradient(var(--doc-line), var(--doc-line)) bottom / 100% 1px no-repeat; }   /* 100×20 end marker with the line at its bottom */

  .doc-p, .doc-note, .doc-list__text, .doc-sub__text, .doc-age__text { font-size: 15px; line-height: 24px; }
  .doc-list { gap: 10px; }
  .doc-list__marker { color: var(--color-purple-btn); }
  .doc-card { gap: 20px; padding: 16px; }
  .doc-card__item { gap: 6px; padding-bottom: 6px; box-shadow: inset 0 -1px 0 var(--color-border-light); }   /* title, 6, text, 6, LINE */
  .doc-card__item:last-child { padding-bottom: 0; box-shadow: none; }
  .doc-card__title { font-size: 14px; line-height: 15px; }
  .doc-card__text { font-size: 14px; line-height: 21px; color: var(--color-ink); }
  .doc-subs { display: flex; flex-direction: column; gap: 20px; padding: 16px; background: var(--color-card); box-shadow: inset 0 0 0 1px var(--color-border-light); border-radius: var(--radius-md); }
  .doc-sub { gap: 6px; padding-bottom: 6px; box-shadow: inset 0 -1px 0 var(--color-border-light); }
  .doc-sub:last-child { padding-bottom: 0; box-shadow: none; }
  .doc-sub__title { font-size: 14px; line-height: 15px; }
  .doc-sub__text { font-size: 14px; line-height: 21px; }
  .doc-support { gap: 12px; padding: 20px; box-shadow: inset 0 0 0 2px var(--color-purple-btn); }
  .doc-support__title { font-size: 16px; line-height: 17px; color: var(--color-purple-btn); }
  .doc-support__phone { font-size: 32px; line-height: 35px; }
  .doc-support__meta { font-weight: 400; font-size: 13px; line-height: 17px; color: var(--color-dim); }
  .doc-age { flex-direction: column; align-items: flex-start; gap: 16px; }
  .doc-age__badge { padding: 12px; border-radius: var(--radius-sm); font-size: 18px; line-height: 20px; }
  .doc-phone { padding: 16px; }
  .doc-phone__number { font-size: 32px; line-height: 35px; }
  .doc-btn, .doc-btn--red, .doc-btn--brand { align-self: stretch; min-height: 41px; padding: 12px 16px; background: var(--color-brand); color: var(--color-ink); font-weight: 900; font-size: 13px; line-height: 17px; }
  .doc-btn:hover, .doc-btn--red:hover, .doc-btn--brand:hover { background: var(--color-brand-hover); }

  .doc-search__box { min-height: 48px; border-radius: var(--radius-sm); }
}

@media (max-width: 389px) {
  .lhero__title { font-size: 34px; line-height: 38px; }   /* "RESPONSIBLE" at 42px is wider than a 320 screen */
}

/* The mobile frames of terms / cookie / privacy draw the shared strips slightly
   differently from the other eleven frames (13/17 text, a boxed 36px logo strip).
   Scoped to body.strips-alt so the canonical strips stay canonical elsewhere. */
@media (max-width: 1199px) {
  .strips-alt .badge-18--lg { font-weight: 900; color: var(--color-muted); }
  .strips-alt .helpline__name { font-size: 14px; line-height: 15px; }
  .strips-alt .helpline__text { font-size: 13px; line-height: 17px; }
  .strips-alt .helpline__phone { font-size: 16px; line-height: 21px; }
  .strips-alt .betstop-strip__title, .strips-alt .betstop-strip__text, .strips-alt .betstop-strip__link { font-size: 13px; line-height: 17px; }
  .strips-alt .payments__logos { display: flex; align-items: center; width: 100%; height: 36px; padding: 0 12px; border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--color-border); }
  .strips-alt .payments__logos img { width: auto; height: 24px; }
  .strips-alt .payments__tag--mob { color: var(--color-muted); }
}

.doc-search:focus-within { box-shadow: var(--focus-ring-light); }
@media (max-width: 1199px) {
  .strips-alt .helpline { box-shadow: inset 0 1px 0 var(--color-border), inset 0 -1px 0 var(--color-border); }
  .strips-alt .betstop-strip { box-shadow: inset 0 1px 0 var(--color-red), inset 0 -1px 0 var(--color-red); }
}
