/* Privacy notice and shop terms (page D). Shared by /privacy/ and /terms/.
   Builds on kit.css and base.css. Dark tokens only (DARK.md). */

.lg { padding-bottom: 24px; }
.lg-head { padding: clamp(32px, 6vw, 64px) 0 24px; }
.lg-head h1 { margin-bottom: 18px; color: var(--brand); }
.lg-head .lede { margin-bottom: 0; }
.lg-banner { border-radius: var(--radius-lg); background: var(--warn); color: var(--ground); padding: 14px 20px; margin: 0 0 8px; font-weight: 600; }
.lg-banner p { margin: 0; }
.lg-stamp { font-family: var(--font-body); font-weight: 600; font-size: .875rem; color: var(--muted); margin: 10px 0 0; }

.lg-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; padding-top: 16px; }
@media (max-width: 899px) { .lg-grid { grid-template-columns: 1fr; } }

.lg-toc { position: sticky; top: calc(var(--header-h) + 16px); align-self: start; }
@media (max-width: 899px) { .lg-toc { position: static; border-block: 1px solid var(--line); padding: 14px 0; } }
.lg-toc h2 { font-family: var(--font-body); font-size: .875rem; font-weight: 600; color: var(--fg); margin-bottom: 10px; line-height: 1.2; }
.lg-toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; counter-reset: toc; }
.lg-toc li { counter-increment: toc; }
.lg-toc a { display: flex; align-items: center; min-height: 44px; padding: 4px 0; font-size: 1rem; line-height: 1.3; text-decoration: none; }
.lg-toc a::before { content: counter(toc); display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; margin-right: 10px; border-radius: 50%; background: var(--surface-2); color: var(--accent); font-family: var(--font-body); font-weight: 700; font-size: .875rem; }
.lg-toc a:hover, .lg-toc a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

.lg-body > section { padding: 28px 0; border-top: 1px solid var(--line); }
.lg-body h2 { color: var(--brand); }
.lg-body > section:first-child { border-top: 0; padding-top: 8px; }
.lg-body h2 { font-family: var(--font-body); font-weight: 700; font-size: clamp(1.4rem, 2.4vw, 1.8rem); line-height: 1.05; margin-bottom: 14px; }
.lg-body h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; margin: 20px 0 8px; }
.lg-body ul, .lg-body ol:not(.lg-toc ol) { margin: 0 0 1em; padding-left: 1.3em; }
.lg-body li { margin-bottom: .4em; }
.lg-body p:last-child, .lg-body ul:last-child { margin-bottom: 0; }

/* Facts that are not known yet: plain semi-bold text in the warn colour, never a pill. */
.confirm { font-family: var(--font-body); font-weight: 600; font-size: .875rem; color: var(--warn); white-space: nowrap; }
.lg-todo { border: 2px solid var(--warn); border-radius: var(--radius-lg); background: var(--surface); padding: 20px 22px; color: var(--fg); }
.lg-todo h3 { margin-top: 0; color: var(--fg); }
.lg-todo ul { margin-bottom: 0; }

/* Tables: stack on narrow screens, no sideways scroll. */
.lg-table { width: 100%; border-collapse: collapse; font-size: .9375rem; margin: 0 0 1em; }
.lg-table th, .lg-table td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }
.lg-table thead th { font-family: var(--font-body); font-size: .875rem; font-weight: 600; color: var(--fg); border-bottom: 2px solid var(--fg); }
.lg-table tbody th { font-weight: 600; }
.lg-table code { font-family: var(--font-body); font-weight: 600; font-size: .875rem; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .lg-table thead { position: absolute; width: 1px; height: 1px; overflow: clip; clip: rect(0 0 0 0); }
  .lg-table, .lg-table tbody, .lg-table tr, .lg-table th, .lg-table td { display: block; width: 100%; }
  .lg-table tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .lg-table th, .lg-table td { padding: 4px 0; border: 0; }
  .lg-table td[data-label]::before { content: attr(data-label) ": "; font-family: var(--font-body); font-weight: 600; font-size: .875rem; color: var(--fg); display: block; }
}
