/* Shared by /privacy and /terms. Colours match the dashboard (index.html). */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:       #181A20;
  --surface:  #1E2329;
  --surface2: #2B3139;
  --border:   #2B3139;
  --gold:     #F0B90B;
  --text:     #EAECEF;
  --text2:    #848E9C;
}

html { background: var(--bg); scroll-padding-top: 72px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); }

/* ── Top bar ── */
.lg-top {
  position: sticky; top: 0; z-index: 10;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.lg-top-inner {
  max-width: 820px; margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
}
.lg-brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--gold); font-weight: 800; font-size: 15px; letter-spacing: -0.3px;
  text-decoration: none;
}
.lg-brand img { width: 32px; height: 32px; border-radius: 8px; object-fit: contain; }
.lg-nav { margin-left: auto; display: flex; gap: 4px; }
.lg-nav a {
  color: var(--text2); text-decoration: none; font-size: 13px; font-weight: 600;
  padding: 7px 10px; border-radius: 8px;
}
.lg-nav a:hover { background: var(--surface2); color: var(--text); }
.lg-nav a[aria-current="page"] { color: var(--gold); background: rgba(240,185,11,0.12); }

/* ── Document ── */
.lg-doc { max-width: 820px; margin: 0 auto; padding: 36px 16px 24px; }
.lg-doc h1 { font-size: 32px; line-height: 1.2; font-weight: 800; letter-spacing: -0.6px; }
.lg-updated { color: var(--text2); font-size: 13px; margin-top: 6px; }
.lg-lead { color: var(--text); font-size: 16px; margin-top: 20px; }

.lg-summary {
  margin-top: 24px; padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--gold); border-radius: 10px;
}
.lg-doc .lg-summary h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--gold); margin: 0 0 8px; }
.lg-summary ul { margin: 0; }

.lg-toc { margin-top: 24px; padding: 16px 20px; background: var(--surface); border-radius: 10px; }
.lg-doc .lg-toc h2 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text2); margin: 0 0 6px; }
.lg-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.lg-doc .lg-toc li { font-size: 14px; margin: 0; padding: 2px 0; break-inside: avoid; }
.lg-toc a { color: var(--text); text-decoration: none; }
.lg-toc a:hover { color: var(--gold); }

.lg-doc h2 { font-size: 21px; font-weight: 700; letter-spacing: -0.3px; margin: 40px 0 10px; }
.lg-doc h3 { font-size: 16px; font-weight: 700; margin: 24px 0 6px; }
.lg-doc p { margin: 0 0 12px; color: #C9CED6; }
.lg-doc ul, .lg-doc ol { margin: 0 0 12px; padding-left: 22px; color: #C9CED6; }
.lg-doc li { margin: 4px 0; }
.lg-doc strong { color: var(--text); font-weight: 600; }
.lg-doc code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px;
  background: var(--surface2); padding: 1px 6px; border-radius: 4px; color: var(--text);
}

.lg-table-wrap { overflow-x: auto; margin: 0 0 14px; }
.lg-doc table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.lg-doc th, .lg-doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.lg-doc th { color: var(--text2); font-size: 12px; text-transform: uppercase; letter-spacing: 0.6px; font-weight: 700; }
.lg-doc td { color: #C9CED6; }
.lg-doc td:first-child { color: var(--text); font-weight: 600; }

.lg-btn-link {
  background: none; border: none; padding: 0; font: inherit; color: var(--gold);
  text-decoration: underline; cursor: pointer;
}

/* ── Footer (same content as the dashboard's) ── */
.site-footer {
  max-width: 820px; margin: 24px auto 0; padding: 20px 16px 32px;
  border-top: 1px solid var(--border);
  color: var(--text2); font-size: 12px; line-height: 1.6; text-align: center;
}
.sf-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-bottom: 10px; }
.sf-links a, .sf-links button {
  color: var(--text2); font: inherit; font-size: 13px; font-weight: 600;
  text-decoration: none; background: none; border: none; padding: 0; cursor: pointer;
}
.sf-links a:hover, .sf-links button:hover { color: var(--gold); }
.sf-note { max-width: 640px; margin: 0 auto 6px; }

@media (max-width: 600px) {
  .lg-doc { padding-top: 24px; }
  .lg-doc h1 { font-size: 26px; }
  .lg-toc ol { columns: 1; }
  .lg-brand span { display: none; }
}
