/* KPI legal pages. Same palette as the dashboard (src/app/globals.css),
   written as hex so it needs no build step. Light and dark follow the OS. */
:root {
  --background: #ffffff;
  --foreground: #171717;
  --muted: #f5f5f5;
  --muted-foreground: #737373;
  --border: #e5e5e5;
  --primary: #4f39f6;
  --tbd-background: #fef3c7;
  --tbd-foreground: #78350f;
  color-scheme: light;
}

/* The data-theme override exists so both themes can be checked in a
   browser without changing the OS setting. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --background: #0a0a0a;
    --foreground: #fafafa;
    --muted: #262626;
    --muted-foreground: #a3a3a3;
    --border: rgb(255 255 255 / 10%);
    --primary: #8b8cfb;
    --tbd-background: #451a03;
    --tbd-foreground: #fde68a;
    color-scheme: dark;
  }
}

:root[data-theme='dark'] {
  --background: #0a0a0a;
  --foreground: #fafafa;
  --muted: #262626;
  --muted-foreground: #a3a3a3;
  --border: rgb(255 255 255 / 10%);
  --primary: #8b8cfb;
  --tbd-background: #451a03;
  --tbd-foreground: #fde68a;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--primary); text-underline-offset: 2px; }

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header-inner,
main,
.site-footer-inner {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand img { width: 28px; height: 28px; }
.brand-name { font-weight: 700; letter-spacing: -0.01em; }
.brand-by { color: var(--muted-foreground); font-size: 14px; }

.language-switch { font-size: 14px; }

.doc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.doc-nav a { color: var(--muted-foreground); text-decoration: none; }
.doc-nav a[aria-current='page'] { color: var(--foreground); font-weight: 600; }

h1 {
  margin: 32px 0 4px;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.updated { margin: 0 0 32px; color: var(--muted-foreground); font-size: 14px; }

h2 {
  margin: 40px 0 8px;
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

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

.summary {
  margin: 0 0 8px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--muted);
}

.summary p:last-child, .summary ul:last-child { margin-bottom: 0; }

.tbd {
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--tbd-background);
  color: var(--tbd-foreground);
  font-weight: 600;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
}

.site-footer {
  margin-top: 64px;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 14px;
}

.site-footer-inner { padding-top: 20px; padding-bottom: 32px; }
.site-footer p { margin: 0 0 6px; }
