/* =============================================================================
   hyyryn-legal-card.css                                       21 Oct 2026 (rp186)
   The Terms and the Privacy notice (terms.html, privacy.html: their own inline
   sheets, one build, and hyyryn-legal.js), the footer pass's tenth and
   eleventh pages. Loaded after each page's inline sheet.

   Sir, 21 Oct 2026: improve each footer page, push it live, then the next.
   Measured (the walk at 390 and 1440): the same reading room as Help and the
   policy pages before rp184 and rp185: every surface square; the docket and
   the form's box marked by a gold bar down one side, the current row by a bar
   down its side; and on a phone the longest pages on the site (the Terms
   58,000px, 32 sections and their clauses) with the contents once at the top,
   shut. Now as rp184 and rp185:
     - the glance, the docket, the contents and the sheet 22px (18 on a
       phone); the key terms' box 16px; the print button a pill;
     - a state a tint, a ring and a corner, never a bar down a side; the
       margin's change bars on a draft stay (they are the document's own mark
       of what changed, the drafting convention);
     - on a phone and a tablet the contents is a bar that stays under the
       masthead and says the section being read ("Contents · 12. Termination");
       the list, of sections only (the clauses of the open one), opens over
       the page; choosing a section shuts it and lands it under the bar; the
       scroll padding is the masthead's alone (rp184); where the masthead slides
       away as you read (these two pages), the bar rises with it.
   ============================================================================= */
.legal-wrap, .lg-glance { --lk-r: 22px; }
@media (max-width: 600px) { .legal-wrap, .lg-glance { --lk-r: 18px; } }

/* ── the panes and the sheet ── */
.lg-glance.lg-glance, .legal-wrap .legal-meta, .legal-wrap .lg-doc { border-radius: var(--lk-r); }
@media (min-width: 1001px) { .legal-wrap .legal-toc { border-radius: var(--lk-r); } }
.legal-wrap .lg-doc { overflow: clip; }
.legal-wrap .legal-meta::after { display: none; }
.legal-wrap .legal-meta { box-shadow: inset 0 0 0 1px var(--lg-glass-ring, rgba(255,255,255,.8)), 0 0 0 1px var(--lg-glass-edge, rgba(10,22,40,.09)), inset 0 0 0 1px rgba(212,169,67,.38), 0 22px 44px -30px rgba(10,22,40,.42); }
.legal-wrap .lg-keys { border-radius: 16px; overflow: hidden; }
.legal-wrap .lg-keys::before { display: none; }   /* the double rule along its top went with the square corner it ruled */
.legal-wrap .legal-box { border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(212,169,67,.45); }
.legal-wrap .legal-box::before { display: none; }
.legal-wrap .legal-form p { border-radius: 12px; }
.legal-wrap .lg-print { border-radius: 999px; padding: 0 18px; }
.legal-wrap .lg-doc .lg-find li { border-radius: 14px; }   /* the Privacy notice's "Find your part" */

/* ── the current row: a tint, a ring and a corner, never a bar down a side ── */
.legal-wrap .legal-toc a:is(:hover, [aria-current="true"]) { border-radius: 10px; }
.legal-wrap .legal-toc a[aria-current="true"] { box-shadow: inset 0 0 0 1px rgba(212,169,67,.45); }

/* ── a phone and a tablet: the contents, a bar that stays and says where you are ── */
.lg-toc-now { display: none; }
@media (max-width: 768px) { :root { --bar: 64px; } }
@media (max-width: 1000px) {
  .legal-wrap .legal-toc { position: sticky; top: var(--bar, 64px); z-index: 40; height: 48px; margin-bottom: 20px; padding: 0;
    background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; border-radius: 0; }
  /* the legal pages' masthead slides away as you read down and back as you scroll up (hyyryn.js, an inline transform):
     the bar goes up with it, so nothing peeks above it, and comes down under it again */
  .legal-wrap .legal-toc { transition: top 320ms ease; }
  html:has(header.topbar[style*="translateY(-100%)"]) .legal-wrap .legal-toc { top: 0; }
  .legal-wrap .legal-toc details { position: absolute; left: 0; right: 0; top: 0; padding: 0 16px; border-radius: 16px;
    background: rgba(255,253,248,.96); -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.8), 0 0 0 1px rgba(10,22,40,.09), 0 22px 44px -30px rgba(10,22,40,.42); }
  .legal-wrap .legal-toc details[open] { max-height: calc(100vh - var(--bar, 64px) - 24px); max-height: calc(100dvh - var(--bar, 64px) - 24px); overflow-y: auto; overscroll-behavior: contain;
    padding-bottom: 12px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.8), 0 0 0 1px rgba(10,22,40,.09), 0 30px 60px -20px rgba(10,22,40,.45); }
  .legal-wrap .legal-toc details > summary { min-height: 48px; padding: 0; align-items: center; }
  .legal-wrap .legal-toc details[open] > summary { border-bottom: 1px solid var(--line-2); }
  /* sections only, and the clauses of the one being read, as at a desk (g36): 32 sections and their clauses would be a list three screens long */
  .lg-live .legal-wrap .legal-toc .lg-sub { display: none; }
  .lg-live .legal-wrap .legal-toc li.is-open > .lg-sub { display: block; }
  .lg-toc-now:not(:empty) { display: inline; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-family: var(--lg-serif, serif); font-size: 15px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--navy); }
  .lg-toc-now:not(:empty)::before { content: '\00B7' / ''; margin: 0 8px 0 2px; color: var(--lg-gold-ink, #5B4318); }
  .legal-wrap .legal-toc details[open] .lg-toc-now { display: none; }
  html { scroll-padding-top: var(--bar, 64px); }
  .lg-doc :is(h2, h3)[id] { scroll-margin-top: 64px; }
}
@media (forced-colors: active) { .legal-wrap .legal-toc a[aria-current="true"] { border: 1px solid CanvasText; } }
