/* legal.html · the shared document template: Terms, Privacy and Cookies behind one tab strip. Print-like typography
   (a book serif for the clauses, Futura for headings, hairline rules), a numbered section index with scroll-spy,
   a back-to-top. Calm by design: the only motion is the tab underline and the index marker. */

.lg { --serif: "Iowan Old Style", "Charter", "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif; }

/* header */
.lg-head { padding: clamp(110px, 12vw, 140px) 0 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.lg-head__t { font-family: var(--display); font-weight: 700; font-size: clamp(36px, 4.6vw, 60px); line-height: 1; letter-spacing: -.03em; color: var(--ink); }
.lg-head__lead { margin-top: 14px; max-width: 36em; font-size: 18px; color: var(--muted); }
.lg-tabs { position: relative; display: flex; gap: clamp(8px, 2vw, 28px); margin-top: 30px; overflow-x: auto; scrollbar-width: none; }
.lg-tabs::-webkit-scrollbar { display: none; }
.lg-tab { position: relative; display: inline-flex; align-items: center; min-height: 52px; padding: 0 4px; font-weight: 700; font-size: 17px; color: var(--muted); text-decoration: none; white-space: nowrap; transition: color .2s; }
.lg-tab:hover { color: var(--ink); }
.lg-tab[aria-selected="true"] { color: var(--ink); }
.lg-tabs__bar { position: absolute; left: 0; bottom: 0; width: 100px; height: 3px; border-radius: 3px 3px 0 0; background: var(--ink); transform-origin: 0 50%; transition: transform .45s var(--spring); }

/* document */
.lg-body { position: relative; padding: clamp(40px, 5vw, 64px) 0 clamp(80px, 9vw, 120px); }
.lg-doc__head { max-width: 46em; padding-bottom: 26px; border-bottom: 1.5px solid var(--ink); }
.lg-doc__t { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3vw, 38px); line-height: 1.05; letter-spacing: -.02em; color: var(--ink); }
.lg-doc__lead { margin-top: 12px; font-family: var(--serif); font-size: 19px; line-height: 1.6; font-style: italic; color: var(--text); }
.lg-doc__meta { margin-top: 12px; font-size: 13.5px; color: var(--faint); }
.lg-doc__grid { display: grid; gap: 22px; margin-top: 26px; }

/* the numbered section index */
.lg-nav__d { border-radius: 14px; background: var(--paper); }
.lg-nav__h { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 16px; font-weight: 700; font-size: 15px; color: var(--ink); cursor: pointer; list-style: none; }
.lg-nav__h::-webkit-details-marker { display: none; }
.lg-nav__c { font-weight: 300; color: var(--faint); }
.lg-nav__l { display: grid; padding: 0 8px 10px; }
.lg-nav__l a { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-items: baseline; padding: 6px 8px; border-radius: 8px; font-size: 14px; line-height: 1.35; color: var(--muted); text-decoration: none; transition: color .2s, background-color .2s; }
.lg-nav__l a:hover { color: var(--ink); background: rgba(3, 21, 20, .04); }
.lg-nav__l a.is-badged { grid-template-columns: 1.8em minmax(0, 1fr); }
.lg-nav__n { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--faint); }
.lg-nav__l a > span:last-child { overflow-wrap: anywhere; }
.lg-nav__l a[aria-current="true"] { color: var(--ink); font-weight: 700; background: #fff; box-shadow: inset 3px 0 0 var(--ink); }
.lg-nav__l a[aria-current="true"] .lg-nav__n { color: var(--ink); }

@media (min-width: 1080px) {
  .lg-doc__grid { grid-template-columns: minmax(0, 1fr) 290px; gap: 64px; align-items: start; }
  .lg-nav { order: 2; position: sticky; top: 96px; max-height: calc(100vh - 110px); overflow: auto; scrollbar-width: thin; }
  .lg-nav__d { background: transparent; }
  .lg-nav__h { min-height: 40px; padding: 0 8px; cursor: default; pointer-events: none; }
  .lg-nav__l { padding: 0; }
}

/* the text: print-like */
.lg-text { max-width: 44em; font-family: var(--serif); font-size: 18px; line-height: 1.7; color: #1d2423; hyphens: auto; -webkit-hyphens: auto; }
.lg-sec { padding: 30px 0 6px; border-bottom: 1px solid var(--line); scroll-margin-top: 8px; }
.lg-sec:last-child { border-bottom: 0; }
.lg-sec__t { margin-bottom: 14px; font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); }
.lg-text p { margin: 0 0 1em; text-wrap: pretty; }
.lg-text p.lg-sub { margin-top: 1.4em; font-family: var(--ui); font-weight: 700; font-size: 16px; color: var(--ink); }
.lg-ul { margin: 0 0 1.1em; padding-left: 1.4em; list-style: none; }
.lg-ul li { position: relative; margin-bottom: .55em; }
.lg-ul li::before { content: ""; position: absolute; left: -1.05em; top: .72em; width: .42em; height: 1.5px; background: var(--ink); }

/* back to top */
.lg-up { position: fixed; z-index: 30; right: max(16px, calc(var(--g) - 8px)); bottom: 20px; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px 0 14px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; font-size: 14.5px; text-decoration: none; box-shadow: var(--shadow-s), inset 0 0 0 1px var(--line); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .4s var(--spring); }
.lg-up svg { width: 16px; height: 16px; transform: rotate(-90deg); }
.lg-up.is-on { opacity: 1; transform: none; pointer-events: auto; }

@media (max-width: 639px) {
  .lg-text { font-size: 17px; hyphens: manual; }
  .lg-tab { font-size: 16px; }
}
@media print {
  .lg-tabs, .lg-nav, .lg-up { display: none !important; }
  .lg-doc[hidden] { display: block !important; }
}

/* phone pass: the three document tabs fit the screen (Cookie Policy no longer cut); back-to-top clears the home
   indicator and tucks away while reading down (legal.js) */
@media (max-width: 767px) {
  .lg-tabs { gap: 6px; }
  .lg-tab { padding: 0 3px; font-size: 15px; }
  .lg-up { bottom: max(20px, calc(env(safe-area-inset-bottom) + 10px)); }
  .lg-up.is-on.is-tuck { opacity: 0; transform: translateY(24px); pointer-events: none; }
}
