/* ══════════════════════════════════════════════
   Legal & app pages — content styles only.
   Loaded AFTER style.css so the navbar and footer are the site's real ones.
   Everything here is scoped to .lg-* so it cannot restyle the shared header/footer.
   No third-party fonts, scripts or trackers on these pages.
══════════════════════════════════════════════ */
:root {
  --lg-card:   #111f11;
  --lg-card-2: #162216;
  --lg-border: rgba(255,255,255,0.10);
  --lg-text:   #e2e8e2;
  --lg-muted:  #9bb09b;
  --lg-radius: 16px;
  /* System fonts (the site's Google Fonts are intentionally not loaded here) */
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* style.css hides the mouse cursor because the main pages draw a custom one; these pages do not */
body, button, .btn { cursor: auto !important; }
a, button, .btn, summary { cursor: pointer !important; }

body { min-height: 100vh; display: flex; flex-direction: column; }
.lg-main { flex: 1; padding: 120px 0 72px; font-size: 17px; line-height: 1.7; }
.lg-wrap   { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.lg-narrow { max-width: 820px; }

.lg-main a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.lg-main a:hover { color: var(--white); }
.lg-main a:focus-visible, .lg-main button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.lg-main ul, .lg-main ol { list-style: revert; }

.lg-crumbs { font-size: 0.88rem; color: var(--lg-muted); margin-bottom: 20px; }
.lg-main .lg-crumbs a { color: var(--lg-muted); }
.lg-main .lg-crumbs a:hover { color: var(--accent); }
.lg-crumbs span[aria-hidden] { margin: 0 6px; }

.lg-main h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); line-height: 1.2; color: var(--white); margin-bottom: 10px; letter-spacing: -0.01em; font-family: var(--font-head); }
.lg-meta { color: var(--lg-muted); font-size: 0.9rem; margin-bottom: 28px; }
.lg-lead { font-size: 1.1rem; color: var(--lg-text); margin-bottom: 28px; }

.lg-doc h2 { font-size: 1.3rem; line-height: 1.3; color: var(--white); margin: 38px 0 10px; padding-top: 6px; font-family: var(--font-head); }
.lg-doc h3 { font-size: 1.05rem; color: var(--white); margin: 22px 0 6px; font-family: var(--font-head); }
.lg-doc p  { margin-bottom: 14px; }
.lg-doc ul, .lg-doc ol { margin: 0 0 16px 1.3rem; }
.lg-doc li { margin-bottom: 6px; }
.lg-doc strong { color: var(--white); }
.lg-doc code { font-size: 0.92em; background: var(--lg-card); padding: 1px 6px; border-radius: 6px; }

/* ── Table of contents ────────────────────── */
.lg-toc { background: var(--lg-card); border: 1px solid var(--lg-border); border-radius: var(--lg-radius); padding: 18px 22px; margin-bottom: 30px; }
.lg-toc h2 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--lg-muted); margin: 0 0 8px; padding: 0; }
.lg-toc ol { margin: 0 0 0 1.2rem; columns: 2; column-gap: 32px; font-size: 0.93rem; }
.lg-toc li { margin-bottom: 3px; break-inside: avoid; }
.lg-main .lg-toc a { text-decoration: none; }
.lg-main .lg-toc a:hover { text-decoration: underline; }

/* ── Callouts ─────────────────────────────── */
.lg-note { background: var(--lg-card-2); border: 1px solid var(--lg-border); border-left: 3px solid var(--accent); border-radius: 10px; padding: 14px 18px; margin: 0 0 22px; font-size: 0.97rem; }
.lg-note p:last-child { margin-bottom: 0; }

/* ── Tables ───────────────────────────────── */
.lg-table-wrap { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--lg-border); border-radius: 12px; }
.lg-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 560px; }
.lg-table th, .lg-table td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--lg-border); }
.lg-table th { background: var(--lg-card); color: var(--white); font-weight: 600; white-space: nowrap; }
.lg-table tr:last-child td { border-bottom: 0; }

/* ── Buttons & cards ──────────────────────── */
.lg-main .lg-btn { display: inline-block; background: var(--accent); color: #0b1b0b; font-weight: 700; text-decoration: none; padding: 11px 22px; border-radius: 99px; font-size: 0.95rem; border: 1px solid var(--accent); }
.lg-main .lg-btn:hover { background: var(--white); border-color: var(--white); color: #0b1b0b; }
.lg-main .lg-btn-outline { background: transparent; color: var(--accent); }
.lg-main .lg-btn-outline:hover { background: rgba(168,255,60,0.12); color: var(--white); border-color: var(--accent); }
.lg-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 8px; }

.lg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 20px 0 8px; }
.lg-card { background: var(--lg-card); border: 1px solid var(--lg-border); border-radius: var(--lg-radius); padding: 20px 22px; }
.lg-card h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--white); }
.lg-card p { font-size: 0.95rem; color: var(--lg-text); margin-bottom: 10px; }
.lg-card p:last-child { margin-bottom: 0; }
.lg-badge { display: inline-block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(168,255,60,0.4); border-radius: 99px; padding: 3px 12px; margin-bottom: 12px; }
.lg-status { display: inline-block; font-size: 0.78rem; color: var(--lg-muted); border: 1px solid var(--lg-border); border-radius: 99px; padding: 2px 10px; }

.lg-hero { background: linear-gradient(160deg, var(--lg-card) 0%, var(--bg-2) 100%); border: 1px solid var(--lg-border); border-radius: 22px; padding: 34px 30px; margin-bottom: 30px; }
.lg-hero h1 { margin-bottom: 12px; }
.lg-hero p { max-width: 640px; }

@media (max-width: 640px) {
  .lg-main { font-size: 16px; padding-top: 104px; }
  .lg-toc ol { columns: 1; }
  .lg-hero { padding: 24px 20px; }
}

@media print {
  body { background: #fff; color: #111; }
  .navbar, .footer, .lg-actions, .lg-toc { display: none !important; }
  .lg-main { padding-top: 0; font-size: 12pt; }
  .lg-main a { color: #000; }
  .lg-doc h2, .lg-doc h3, .lg-main h1, .lg-doc strong { color: #000; }
}
