/* ==========================================================================
   Legal pages (privacy.html, terms.html)
   The platform hero (pp-hero) shortened, then a calm reading layout: an
   "On this page" list that stays in view on the left, the text on the
   right at a comfortable line length. No motion beyond the site's reveal.
   Prefixed .lg-.
   ========================================================================== */

.lg-hero { padding-bottom: clamp(40px, 5vw, 64px); }
.lg-updated {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

.lg {
  display: grid;
  grid-template-columns: 240px minmax(0, 720px);
  justify-content: center;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(48px, 6vw, 80px) var(--page-px) clamp(72px, 8vw, 112px);
  background: var(--surface);
}

/* ─── On this page ─────────────────────────────────────────────────── */
.lg-toc { position: sticky; top: calc(var(--nav-height) + 32px); align-self: start; }
.lg-toc-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.lg-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
.lg-toc a {
  display: block;
  margin-left: -1px;
  padding: 6px 0 6px 14px;
  border-left: 2px solid transparent;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition), border-color var(--transition);
}
.lg-toc a:hover { color: var(--text-primary); }
.lg-toc a.is-current { color: var(--accent-text); border-left-color: var(--accent); }
.lg-toc a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

/* ─── The text ─────────────────────────────────────────────────────── */
.lg-body { font-size: 16px; line-height: 1.7; color: var(--text-body); }
.lg-intro { font-size: 17.5px; color: var(--text-secondary); margin-bottom: 8px; }
.lg-body section { padding-top: 36px; scroll-margin-top: calc(var(--nav-height) + 24px); }
.lg-body h2 {
  font-family: var(--font-display);
  font-size: clamp(21px, 2vw, 24px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.lg-body h3 { font-size: 16.5px; font-weight: 600; color: var(--text-primary); margin: 20px 0 6px; }
.lg-body p { margin-bottom: 12px; }
.lg-body ul { margin: 0 0 14px; padding-left: 20px; list-style: disc; }
.lg-body li { margin-bottom: 6px; padding-left: 4px; }
.lg-body li::marker { color: var(--text-muted); }
.lg-body strong { font-weight: 600; color: var(--text-primary); }
.lg-body a, .lg-link {
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-color: var(--accent-line);
  text-underline-offset: 3px;
}
.lg-body a:hover, .lg-link:hover { text-decoration-color: currentColor; }
.lg-link { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }

/* storage table */
.lg-table-wrap { overflow-x: auto; margin: 6px 0 16px; border: 1px solid var(--border); border-radius: var(--radius-md); }
.lg-table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.lg-table th, .lg-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.lg-table th { font-weight: 600; color: var(--text-primary); background: var(--surface-raised); }
.lg-table tr:last-child td { border-bottom: 0; }
.lg-table code { font-family: var(--font-mono); font-size: 13.5px; color: var(--text-primary); }

/* the contact block at the end */
.lg-contact {
  margin-top: 16px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
}
.lg-contact p { margin-bottom: 4px; }

@media (max-width: 900px) {
  .lg { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .lg-toc { position: static; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius-md); }
  .lg-toc ol { columns: 2; column-gap: 24px; border-left: 0; }
  .lg-toc a { padding-left: 0; border-left: 0; }
  .lg-toc a.is-current { color: var(--text-secondary); }
  .lg-body { margin-top: 24px; }
}
@media (max-width: 400px) {
  .lg-toc ol { columns: 1; }
}
