/* Shared styles for the static legal documents (terms.html, privacy.html).
   Same tokens, fonts, and brand plum as the holding page (index.html), but a
   document layout instead of a centred hero. No scripts, no external requests. */
:root {
  --bg: #fbfbfa;
  --fg: #18181b;
  --muted: #52525b;
  --accent: #6d3a9e;
  --border: #e4e4e7;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e11;
    --fg: #f4f4f5;
    --muted: #a1a1aa;
    --accent: #b478e0;
    --border: #27272a;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  /* Comfortable reading measure: ~68 characters. */
  width: 100%;
  max-width: 68ch;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--fg);
  text-decoration: none;
}

.brand .dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--accent);
}

.brand:hover {
  color: var(--accent);
}

header {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

h1 {
  margin: 2.5rem 0 0;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 640;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h2 {
  margin: 2.5rem 0 0;
  font-size: 1.1rem;
  font-weight: 640;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

p {
  margin: 1rem 0 0;
}

.effective {
  margin-top: 0.75rem;
  color: var(--muted);
}

strong {
  font-weight: 640;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: border-color 0.15s ease;
}

a:hover {
  border-bottom-color: var(--accent);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 0.3rem;
}

footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.75rem;
  font-size: 0.95rem;
}

footer a {
  color: var(--muted);
  border-bottom-color: var(--border);
}

footer a:hover {
  color: var(--fg);
}
