/* ════════════════════════════════════════════════════════════════════
   lm-static.css — typography for legal / info static pages
   (/terms, /privacy, /about). Loaded only on $page == 'static'.

   The page renders inside the normal site chrome (static.tpl → _header/
   _footer). This file styles just the document body so it reads as cleanly
   as the landing versions: a centred ~820px column, a boxed table of
   contents, generous section spacing, and primary-tinted callouts.

   Colours come from the site's existing --lm-* tokens (defined in
   lm-profile.css for both light and dark), so these pages follow the
   active theme automatically. Hard fallbacks mirror the landing palette.
   Stored page_text is plain semantic HTML — all styling lives here, never
   inline (the content is also run through Smarty, so it must stay brace-free).
   ════════════════════════════════════════════════════════════════════ */

/* Readable centred column for the whole static page. .p-3 keeps its
   Bootstrap padding; we only constrain width + centre it. */
html.lm-static-active .p-3 {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

/* Page title (static.tpl renders <h1> from page_title). */
html.lm-static-active .p-3 > h1 {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 500;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 48px 0 0;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--lm-border, #e2e8f0);
  color: var(--lm-text, #0f172a);
}
@media (max-width: 600px) {
  html.lm-static-active .p-3 > h1 { font-size: 34px; margin-top: 28px; }
}

/* ── Document body ──────────────────────────────────────────────── */
.static-page-content {
  font-size: 15px;
  line-height: 1.7;
  color: var(--lm-text, #0f172a);
}
/* Neutralise the source's own container — width is owned by .p-3 above. */
.static-page-content .lm-container { max-width: none; margin: 0; padding: 0; }

.static-page-content .lm-doc-updated {
  font-size: 14px;
  color: var(--lm-muted-2, #64748b);
  margin: 16px 0 0;
}

/* Table of contents */
.static-page-content .lm-toc {
  background: var(--lm-surface, #f8fafc);
  border: 1px solid var(--lm-border, #e2e8f0);
  border-radius: 12px;
  padding: 22px 26px;
  margin: 32px 0;
}
.static-page-content .lm-toc h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lm-muted, #475569);
  margin: 0 0 14px;
}
.static-page-content .lm-toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 32px;
}
.static-page-content .lm-toc li { font-size: 13.5px; line-height: 1.9; }
@media (max-width: 600px) { .static-page-content .lm-toc ol { columns: 1; } }

/* Sections */
.static-page-content .lm-doc-body { padding: 16px 0 24px; }
.static-page-content .lm-doc-body h2 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 44px 0 14px;
  scroll-margin-top: 80px;   /* clear the fixed topbar when jumping via TOC */
  color: var(--lm-text, #0f172a);
}
.static-page-content .lm-doc-body h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin: 26px 0 10px;
  color: var(--lm-text, #0f172a);
}
.static-page-content .lm-doc-body p { margin: 0 0 16px; }
.static-page-content .lm-doc-body ul,
.static-page-content .lm-doc-body ol { margin: 0 0 16px; padding-left: 22px; }
.static-page-content .lm-doc-body li { margin-bottom: 8px; }
.static-page-content .lm-doc-body strong { font-weight: 600; }
.static-page-content a { color: var(--lm-primary, #0f6f4f); }
.static-page-content a:hover { text-decoration: underline; }

/* Highlighted note box */
.static-page-content .lm-callout {
  background: var(--lm-primary-soft, #f3f8f5);
  border: 1px solid var(--lm-primary-soft-2, #dcebe2);
  border-left: 3px solid var(--lm-primary, #0f6f4f);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 14.5px;
}
.static-page-content .lm-callout strong { color: var(--lm-primary-strong, #0a5439); }
