/* Structure and reset. Brand colours live in tokens.css; this file should read the same on
 * any site that imports tokens.css ahead of it. */

*, *::before, *::after { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:hover { color: var(--accent-pale); }

.wrap {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bg-raised);
  color: var(--text);
  padding: 12px 20px;
  z-index: 100;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

section { padding-block: 56px; }

h1, h2, h3 { line-height: 1.15; margin-top: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.15rem; }

p { color: var(--text-dim); }

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-light); border-color: var(--accent-light); color: var(--bg); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-soft);
}
.btn-outline:hover { border-color: var(--accent-light); color: var(--accent-light); }

.grid { display: grid; gap: 24px; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

/* Legal pages, rendered from docs/policy_legal/*.md */
.legal .legal-body h2 { margin-top: 2.2em; font-size: 1.3rem; }
.legal .legal-body h3 { margin-top: 1.6em; }
.legal .legal-body ul, .legal .legal-body ol { color: var(--text-dim); }
.legal-meta {
  color: var(--text-faint);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 32px;
}
