/* Shared styling for SDSL legal documents (privacy, terms, DPA).
   Mirrors the tokens used by the injected footer in index.html:
   dark by default, light via `html:not(.dark)`. No framework. */

:root { color-scheme: dark light; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #050a14;
  color: rgba(255, 255, 255, 0.72);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
html:not(.dark) body { background: #ffffff; color: #334155; }

/* ── Top bar ── */
.lg-top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(5, 10, 20, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px 24px;
}
html:not(.dark) .lg-top { background: rgba(255, 255, 255, 0.88); border-bottom-color: rgba(0, 0, 0, 0.07); }
.lg-top-inner { max-width: 880px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lg-home { color: #fff; font-weight: 800; font-size: 1rem; text-decoration: none; letter-spacing: -0.01em; }
html:not(.dark) .lg-home { color: #0f172a; }
.lg-top nav { display: flex; gap: 18px; flex-wrap: wrap; }
.lg-top nav a { color: rgba(255, 255, 255, 0.5); text-decoration: none; font-size: 13px; transition: color .2s; }
.lg-top nav a:hover, .lg-top nav a[aria-current="page"] { color: #60a5fa; }
html:not(.dark) .lg-top nav a { color: #64748b; }
html:not(.dark) .lg-top nav a:hover, html:not(.dark) .lg-top nav a[aria-current="page"] { color: #2563eb; }

/* ── Page shell ── */
.lg-wrap { max-width: 880px; margin: 0 auto; padding: 56px 24px 96px; }

.lg-eyebrow {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  color: #60a5fa; margin: 0 0 12px;
}
html:not(.dark) .lg-eyebrow { color: #2563eb; }

h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem); line-height: 1.15; font-weight: 800;
  color: #fff; margin: 0 0 16px; letter-spacing: -0.02em;
}
html:not(.dark) h1 { color: #0f172a; }

.lg-meta {
  font-size: 13px; color: rgba(255, 255, 255, 0.4);
  padding-bottom: 28px; margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
html:not(.dark) .lg-meta { color: #94a3b8; border-bottom-color: rgba(0, 0, 0, 0.08); }
.lg-meta strong { color: rgba(255, 255, 255, 0.7); font-weight: 600; }
html:not(.dark) .lg-meta strong { color: #475569; }

h2 {
  font-size: 1.35rem; font-weight: 700; color: #fff;
  margin: 48px 0 14px; letter-spacing: -0.01em; scroll-margin-top: 80px;
}
html:not(.dark) h2 { color: #0f172a; }

h3 { font-size: 1.02rem; font-weight: 700; color: rgba(255,255,255,0.9); margin: 28px 0 8px; }
html:not(.dark) h3 { color: #1e293b; }

p, li { margin: 0 0 14px; }
ul, ol { padding-left: 22px; margin: 0 0 18px; }
li { margin-bottom: 8px; }

a { color: #60a5fa; text-decoration: underline; text-underline-offset: 2px; }
html:not(.dark) a { color: #2563eb; }

strong { color: rgba(255, 255, 255, 0.92); font-weight: 650; }
html:not(.dark) strong { color: #0f172a; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86em;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 5px; padding: 1px 6px; color: rgba(255,255,255,0.85);
}
html:not(.dark) code { background: #f1f5f9; border-color: #e2e8f0; color: #334155; }

/* ── Table of contents ── */
.lg-toc {
  border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.02);
  border-radius: 14px; padding: 22px 26px; margin: 32px 0 8px;
}
html:not(.dark) .lg-toc { border-color: #e2e8f0; background: #f8fafc; }
.lg-toc h4 {
  margin: 0 0 12px; font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: rgba(255,255,255,0.35);
}
html:not(.dark) .lg-toc h4 { color: #94a3b8; }
.lg-toc ol { margin: 0; padding-left: 20px; font-size: 14px; }
.lg-toc li { margin-bottom: 5px; }
.lg-toc a { text-decoration: none; }
.lg-toc a:hover { text-decoration: underline; }

/* ── Callout ── */
.lg-note {
  border-left: 3px solid #60a5fa; background: rgba(96, 165, 250, 0.07);
  border-radius: 0 10px 10px 0; padding: 16px 20px; margin: 22px 0;
  font-size: 14.5px;
}
html:not(.dark) .lg-note { border-left-color: #2563eb; background: #eff6ff; }
.lg-note p:last-child { margin-bottom: 0; }

.lg-note.warn { border-left-color: #fbbf24; background: rgba(251, 191, 36, 0.07); }
html:not(.dark) .lg-note.warn { border-left-color: #d97706; background: #fffbeb; }

/* ── Tables ── */
.lg-table-wrap { overflow-x: auto; margin: 20px 0 24px; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 14px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid rgba(255,255,255,0.07); vertical-align: top; }
html:not(.dark) th, html:not(.dark) td { border-bottom-color: #e2e8f0; }
th {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
  color: rgba(255,255,255,0.4); font-weight: 700; border-bottom-width: 1px;
}
html:not(.dark) th { color: #64748b; }
tbody tr:last-child td { border-bottom: none; }

/* ── Contact block ── */
.lg-contact {
  border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.02);
  border-radius: 14px; padding: 24px 26px; margin: 28px 0;
}
html:not(.dark) .lg-contact { border-color: #e2e8f0; background: #f8fafc; }
.lg-contact p { margin-bottom: 6px; }

/* ── Footer ── */
.lg-foot {
  border-top: 1px solid rgba(255,255,255,0.06); margin-top: 64px; padding-top: 24px;
  font-size: 12.5px; color: rgba(255,255,255,0.32);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
html:not(.dark) .lg-foot { border-top-color: rgba(0,0,0,0.07); color: #94a3b8; }
.lg-foot a { color: inherit; text-decoration: none; }
.lg-foot a:hover { color: #60a5fa; }

@media (max-width: 640px) {
  .lg-wrap { padding: 36px 20px 72px; }
  .lg-top nav { gap: 12px; }
  .lg-top nav a { font-size: 12px; }
}
