/* ==========================================================================
   legal.css — Privacy Policy (privacy.html) and Terms of Use (terms.html), v4 (LOCK3).
   Reads like Docs: mono label · one regular-weight title · the date · a short lead ·
   an "In short" hairline card · a quiet row of section links · numbered sections of
   plain paragraphs, lists and key/value cards. One readable column (760px).
   Builds on nett.css tokens only (docs.css is not loaded). Prefix lg-.
   ========================================================================== */

.lg { max-width: 760px; margin-inline: auto; padding-top: 16px; }

/* ---- Head ---------------------------------------------------------------- */
.lg-head .nt-label { font-size: 12px; letter-spacing: 0.12em; color: #CFCFCF; }
.lg-title { margin-top: 18px; font-size: clamp(30px, 3.1vw, 42px); line-height: 1.12; letter-spacing: -0.022em; font-weight: var(--nt-w-regular); color: var(--nt-text-strong); text-wrap: balance; }
.lg-date { margin-top: 14px; font-size: var(--nt-fs-small); line-height: 1.5; color: var(--nt-muted); font-variant-numeric: tabular-nums; }
.lg-lead { margin-top: 28px; font-size: 17px; line-height: 1.72; color: #D4D4D4; text-wrap: pretty; }
.lg-lead > * + * { margin-top: 12px; }

/* ---- Cards: thin border, key/value rows (the Docs card) --------------------- */
.lg-card { margin-top: 20px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--nt-r-row); background: var(--nt-canvas); }
.lg-card--soft { border-color: var(--nt-border); background: var(--nt-surface); }
.lg-rows { margin: 0; }
.lg-rows[hidden] { display: none; }
.lg-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 4px 24px; padding: 16px 24px; border-bottom: 1px solid var(--nt-border); }
.lg-row:last-child { border-bottom: 0; }
.lg-row > dt { min-width: 0; font-size: 15px; line-height: 1.55; font-weight: var(--nt-w-medium); color: var(--nt-text-strong); }
.lg-row > dd { min-width: 0; margin: 0; font-size: 15px; line-height: 1.6; color: #B5B5B5; text-wrap: pretty; overflow-wrap: break-word; }
.lg-row > dd > * + * { margin-top: 6px; }
.lg-row > dd b { font-weight: var(--nt-w-medium); color: var(--nt-text); }
.lg-sub { display: block; margin-top: 2px; font-size: var(--nt-fs-small); color: var(--nt-muted); }

/* Purpose cards: what, then "Why / Legal basis" lines. */
.lg-uses { margin: 20px 0 0; padding: 0; list-style: none; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--nt-r-row); }
.lg-use { padding: 16px 24px; border-bottom: 1px solid var(--nt-border); }
.lg-use:last-child { border-bottom: 0; }
.lg-use__what { font-size: 15px; line-height: 1.55; font-weight: var(--nt-w-medium); color: var(--nt-text-strong); }
.lg-use__kv { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 2px 16px; margin: 6px 0 0; font-size: 15px; line-height: 1.6; }
.lg-use__kv > dt { color: var(--nt-muted); }
.lg-use__kv > dd { min-width: 0; margin: 0; color: #B5B5B5; text-wrap: pretty; }

/* ---- On this page: one quiet row of section links ---------------------------- */
.lg-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.lg-toc > a {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--nt-border);
  border-radius: var(--nt-r-pill);
  font-size: var(--nt-fs-small);
  line-height: 1;
  color: var(--nt-text-2);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color var(--nt-d-hover) var(--nt-ease), color var(--nt-d-hover) var(--nt-ease), background-color var(--nt-d-hover) var(--nt-ease);
}
.lg-toc > a:hover { border-color: var(--nt-border-strong); background: var(--nt-surface); color: var(--nt-text-strong); }

/* ---- Sections ------------------------------------------------------------- */
.lg-secs { margin-top: 64px; }
.lg-sec { scroll-margin-top: 24px; }
.lg-sec + .lg-sec { margin-top: 64px; }
.lg-h { font-size: 24px; line-height: 1.3; letter-spacing: -0.01em; font-weight: var(--nt-w-medium); color: var(--nt-text-strong); text-wrap: balance; }
.lg-h3 { margin-top: 32px; font-size: 17px; line-height: 1.4; font-weight: var(--nt-w-bold); color: var(--nt-text-strong); }
.lg-sec p { margin-top: 12px; font-size: 16px; line-height: 1.75; color: #D4D4D4; text-wrap: pretty; }
.lg-h3 + p { margin-top: 8px; }
.lg-sec b, .lg-sec strong { font-weight: var(--nt-w-medium); color: var(--nt-text-strong); }
.lg-sec code { font-size: 0.88em; color: var(--nt-text-strong); overflow-wrap: anywhere; }
/* Links in running text (the TOC pills sit outside these). */
.lg-lead a, .lg-card a, .lg-sec a { color: var(--nt-text-strong); text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--nt-border-strong); overflow-wrap: anywhere; transition: text-decoration-color var(--nt-d-hover) var(--nt-ease); }
.lg-lead a:hover, .lg-card a:hover, .lg-sec a:hover { text-decoration-color: var(--nt-text-strong); }

.lg-list { margin: 12px 0 0; padding: 0; list-style: none; }
.lg-list > li { position: relative; padding-left: 20px; font-size: 16px; line-height: 1.75; color: #D4D4D4; text-wrap: pretty; }
.lg-list > li + li { margin-top: 8px; }
.lg-list > li::before { content: ""; position: absolute; left: 4px; top: 0.78em; width: 5px; height: 5px; border-radius: 50%; background: var(--nt-muted); }
.lg-list--tight > li + li { margin-top: 4px; }

.lg-fine { margin-top: 14px; font-size: var(--nt-fs-small); line-height: 1.6; color: var(--nt-muted); text-wrap: pretty; }
.lg-sec p.lg-fine { font-size: var(--nt-fs-small); line-height: 1.6; color: var(--nt-muted); }

/* Notes: bold lead, muted text (the Docs "Legal" card). */
.lg-notes { margin-top: 20px; border: 1px solid var(--nt-border); border-radius: var(--nt-r-row); background: var(--nt-surface); }
.lg-note { padding: 16px 24px; font-size: 15px; line-height: 1.65; color: var(--nt-muted); border-bottom: 1px solid var(--nt-border); text-wrap: pretty; }
.lg-note:last-child { border-bottom: 0; }
.lg-sec .lg-note { margin: 0; font-size: 15px; line-height: 1.65; color: var(--nt-muted); }
.lg-note > b { color: var(--nt-text-strong); font-weight: var(--nt-w-bold); }

/* The operator block (identity facts the operator completes). */
.lg-block { scroll-margin-top: 24px; }

/* ---- Phones -------------------------------------------------------------- */
@media (max-width: 767px) {
  .lg { padding-top: 8px; }
  .lg-title { margin-top: 12px; font-size: 30px; line-height: 1.15; }
  .lg-lead { margin-top: 20px; font-size: 16px; line-height: 1.7; }
  .lg-row { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 14px 18px; }
  .lg-use { padding: 14px 18px; }
  .lg-use__kv { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .lg-use__kv > dd + dt { margin-top: 6px; }
  .lg-toc { gap: 6px; margin-top: 32px; }
  .lg-toc > a { height: 32px; padding: 0 12px; font-size: 13px; }
  .lg-secs { margin-top: 48px; }
  .lg-sec + .lg-sec { margin-top: 48px; }
  .lg-h { font-size: 22px; }
  .lg-sec p, .lg-list > li { font-size: 15.5px; line-height: 1.7; }
  .lg-note { padding: 14px 18px; }
}
@media (max-width: 380px) {
  .lg-title { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .lg-toc > a, .lg-lead a, .lg-card a, .lg-sec a { transition: none; }
}
