/* Retenna legal pages (privacy notice, early-access terms): a calm reading column on the landing page's canvas.
   Uses the theme tokens from base.css, so they follow the device's light or dark setting like the main page. */
.lg-page { min-height: 100vh; background: radial-gradient(70% 380px at 50% 0%, rgba(178,154,255,.16), rgba(178,154,255,0) 100%), var(--bg); }
html { background: var(--bg); }

/* Header */
.lg-hdr { position: sticky; top: 0; z-index: 20; transition: background-color .3s var(--ease), box-shadow .3s var(--ease); }
.lg-hdr.is-solid { background: var(--glass); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 1px 0 var(--line); }
.lg-hdr-in { max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--fg); }
.lg-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 14px; font-size: 15px; font-weight: 600; color: var(--fg); text-decoration: none; }
.lg-back:hover { background: var(--wash); color: var(--fg); }
.lg-back svg.i { width: 18px; height: 18px; }

/* Layout */
.lg-wrap { max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 24px var(--gut) 88px; display: grid; gap: 28px; }
@media (min-width: 1024px) { .lg-wrap { grid-template-columns: 260px minmax(0, 1fr); gap: 64px; padding-top: 48px; } }
.lg-main { max-width: 42rem; outline: none; }
.lg-kicker { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.lg-h1 { margin-top: 10px; font-family: "Inter Tight", Inter, sans-serif; font-weight: 700; font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.3rem); line-height: 1.04; letter-spacing: -.04em; text-wrap: balance; }
.lg-meta { margin-top: 14px; font-size: 15px; color: var(--muted); }
.lg-note { margin-top: 24px; padding: 16px 18px; border-radius: 18px; background: var(--surface); box-shadow: var(--sh); font-size: 14.5px; line-height: 1.55; color: var(--muted); display: grid; gap: 8px; }
.lg-note p:first-child { color: var(--fg); font-weight: 650; }

/* Reading text */
.lg-main section { margin-top: 44px; scroll-margin-top: 84px; }
.lg-main h2 { font-family: "Inter Tight", Inter, sans-serif; font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.lg-main h3 { margin-top: 22px; font-size: 18px; font-weight: 650; }
.lg-main p, .lg-main li { font-size: 16.5px; line-height: 1.65; color: var(--fg); text-wrap: pretty; }
.lg-main section p { margin-top: 14px; }
.lg-main ul, .lg-main ol { margin-top: 12px; padding-left: 22px; display: grid; gap: 6px; }
.lg-main ul { list-style: disc; }
.lg-main ol { list-style: decimal; }
.lg-main li::marker { color: var(--muted); }
.lg-main strong { font-weight: 650; }
.lg-main code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .88em; padding: 1px 6px; border-radius: 6px; background: var(--wash); }
.lg-main a { color: var(--accent-text); font-weight: 550; }
.lg-table { margin-top: 16px; overflow-x: auto; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.lg-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.lg-table th, .lg-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.lg-table tr:last-child th, .lg-table tr:last-child td { border-bottom: 0; }
.lg-table thead th { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--wash); }
.lg-table tbody th { font-weight: 650; min-width: 9rem; }
.lg-top { margin-top: 48px; font-size: 15px; }

/* Placeholders: always visible so nothing unfinished slips through */
mark.ph { padding: 1px 6px; border-radius: 6px; font-weight: 650; font-size: .92em; color: #6A2F12; background: #FFE3CC; box-shadow: inset 0 0 0 1.5px #E59A6A; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
@media (prefers-color-scheme: dark) { mark.ph { color: #FFE9DA; background: #6A3A2A; box-shadow: inset 0 0 0 1.5px #FFB48A; } }

/* Table of contents: a sticky list on desktop, a disclosure on phones */
.lg-toc summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 0 16px; border-radius: 16px; cursor: pointer; list-style: none;
  font-size: 15px; font-weight: 650; background: var(--surface); box-shadow: var(--sh); }
.lg-toc summary::-webkit-details-marker { display: none; }
.lg-toc summary svg.i { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.lg-toc details[open] summary svg.i { transform: rotate(180deg); }
.lg-toc ol { margin-top: 8px; padding: 6px; border-radius: 16px; background: var(--surface); box-shadow: var(--sh); display: grid; }
.lg-toc a { display: flex; align-items: center; min-height: 40px; padding: 6px 12px; border-radius: 10px; font-size: 14.5px; line-height: 1.35; color: var(--muted); text-decoration: none; }
.lg-toc a:hover { color: var(--fg); background: var(--wash); }
.lg-toc a[aria-current="true"] { color: var(--accent-text); background: var(--accent-soft); font-weight: 650; }
@media (min-width: 1024px) {
  .lg-toc { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 100px); overflow: auto; }
  .lg-toc summary { background: none; box-shadow: none; padding: 0 12px; pointer-events: none; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); min-height: 32px; }
  .lg-toc summary svg.i { display: none; }
  .lg-toc ol { background: none; box-shadow: none; padding: 0; margin-top: 4px; }
}
@media (max-width: 1023px) { .lg-toc a { min-height: 44px; } }
