/* /terms and /privacy (static, rendered by tools/legal-build.js). Classic = seo.css palette; Glass = html[data-theme=glass] (theme.js) */
.lg-wrap { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; padding: 36px 0 60px; align-items: start; }
.lg-toc { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; max-height: calc(100vh - 110px); overflow: auto;
  padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.lg-toc b { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 6px; }
.lg-toc a { color: var(--muted); text-decoration: none; padding: 5px 8px; border-radius: 8px; line-height: 1.3; }
.lg-toc a:hover { color: var(--ink); background: rgba(255,255,255,.05); }
.lg-doc { min-width: 0; max-width: 860px; font-size: 16px; }
.lg-doc h1 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 12px; }
.lg-doc h2 { font-family: var(--display); font-size: 21px; margin: 34px 0 10px; letter-spacing: -.01em; scroll-margin-top: 84px; }
.lg-doc h3 { font-size: 17px; margin: 22px 0 8px; }
.lg-doc p, .lg-doc li { color: #d9d6e2; }
.lg-doc a { color: var(--accent); text-underline-offset: 3px; }
.lg-doc hr { border: 0; border-top: 1px solid var(--line); margin: 26px 0; }
.lg-doc blockquote { margin: 14px 0; padding: 4px 18px; border-left: 3px solid var(--accent); background: var(--card); border-radius: 0 12px 12px 0; }
.lg-doc blockquote p { color: var(--ink); }
.lg-table { overflow-x: auto; margin: 14px 0; border: 1px solid var(--line); border-radius: 12px; }
.lg-doc table { width: 100%; border-collapse: collapse; font-size: 14px; }
.lg-doc th, .lg-doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.lg-doc th { background: var(--bg2); color: var(--muted); font-weight: 700; }
.lg-doc tr:last-child td { border-bottom: 0; }
mark.lg-todo { background: rgba(232,192,122,.18); color: var(--warn); border-radius: 4px; padding: 0 3px; }
@media (max-width: 860px) {
  .lg-wrap { grid-template-columns: minmax(0, 1fr); padding-top: 20px; gap: 18px; }
  .lg-toc { position: static; max-height: 240px; }
  .nav-links a:not(.btn) { display: none; }
  .lg-doc { font-size: 15.5px; }
}
/* Glass */
html[data-theme="glass"] body.lg-page { background: radial-gradient(1200px 700px at 80% -10%, rgba(46,230,255,.13), transparent 60%),
  radial-gradient(900px 600px at -10% 30%, rgba(160,90,255,.16), transparent 60%), #06070f; }
html[data-theme="glass"] .lg-page { --accent: #2ee6ff; --card: rgba(16,18,36,.72); --line: rgba(120,140,255,.22); --bg2: rgba(10,12,26,.8); }
html[data-theme="glass"] .lg-page .nav { background: rgba(6,7,15,.7); }
html[data-theme="glass"] .lg-page .brand i { background: linear-gradient(135deg, #2ee6ff, #a05aff); }
html[data-theme="glass"] .lg-toc, html[data-theme="glass"] .lg-doc blockquote, html[data-theme="glass"] .lg-table { box-shadow: 0 0 0 1px rgba(46,230,255,.06), 0 10px 30px rgba(0,0,0,.35); backdrop-filter: blur(10px); }
html[data-theme="glass"] .lg-page .btn { background: linear-gradient(135deg, #2ee6ff, #7c5cff); color: #06070f; }
#tfGlassWall { display: none; }
