/* Shared styles for QMC4 standalone legal pages (privacy, terms).
   Self-contained, no runtime deps, matches the brand palette. */

:root {
  --bg: #09090b;
  --bg-elevated: #18181b;
  --fg: #e4e4e7;
  --muted: #a1a1aa;
  --subtle: #71717a;
  --border: #27272a;
  --accent: #dc2626;
  --accent-bg: rgba(220, 38, 38, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family:
    ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.nav {
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
}
.nav-inner {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav a.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--fg);
}
.nav a.brand img {
  height: 36px;
  width: auto;
  display: block;
}
.nav a.back {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.nav a.back:hover {
  color: var(--accent);
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 120px;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  margin-bottom: 24px;
  font-family: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-bg);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 999px;
}

h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 12px;
  color: #fff;
}

.subtitle {
  color: var(--subtle);
  margin: 0 0 48px;
  font-size: 14px;
}

h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 56px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
  margin: 28px 0 8px;
}

p,
li {
  color: var(--muted);
}

p {
  margin: 0 0 16px;
}

ul,
ol {
  padding-left: 24px;
  margin: 0 0 16px;
}

li {
  margin-bottom: 8px;
}

a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  transition: color 0.15s;
}
a:hover {
  color: var(--accent);
}

strong {
  color: var(--fg);
  font-weight: 600;
}

.callout {
  background: rgba(220, 38, 38, 0.06);
  border-left: 2px solid var(--accent);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 2px;
}
.callout p:last-child {
  margin-bottom: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}
th,
td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  color: var(--fg);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.12em;
}
td {
  color: var(--muted);
}

footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  font-size: 12px;
  color: var(--subtle);
  font-family: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
}
footer .footer-inner {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
footer a {
  color: var(--subtle);
  text-decoration: none;
}
footer a:hover {
  color: var(--accent);
}
