:root {
  --bg: #FAFAF9;
  --surface: #FFFFFF;
  --surface-muted: #F2F2F0;
  --border: #E5E5E2;
  --border-strong: #D4D4D1;
  --ink: #0A0A0A;
  --ink-2: #404040;
  --ink-3: #737373;
  --ink-4: #A3A3A3;
  --accent: #0A0A0A;
  --accent-ink: #FFFFFF;
  --font-display: "Helvetica Neue", Helvetica, "Arial Black", sans-serif;
  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max: 760px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 17px;
  line-height: 1.5;
}
a { color: inherit; }

/* ────────── HEADER (matches landing-page nav) ────────── */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 249, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(229, 229, 226, 0.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 max(20px, calc((100vw - 1240px) / 2 + 32px));
}
.brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.04em;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand::before {
  content: "Q";
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: -0.03em;
}
nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.15s ease;
}
nav a:hover { color: var(--ink); }

@media (max-width: 560px) {
  header { padding: 0 20px; height: 60px; }
  nav { gap: 18px; }
  nav a { font-size: 13.5px; }
}

/* ────────── MAIN ────────── */
main {
  padding: 0 max(20px, calc((100vw - var(--max)) / 2));
}

/* ────────── LEGAL / HELP ARTICLE ────────── */
article.legal {
  padding: 72px 0 96px;
}
article.legal h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0 0 16px;
  color: var(--ink);
}
article.legal .meta {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  background: var(--surface);
  margin: 4px 0 40px;
  letter-spacing: -0.01em;
}
article.legal > p:first-of-type {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-2);
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}
article.legal h2 {
  font-family: var(--font-display);
  margin: 52px 0 16px;
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--ink);
}
article.legal h3 {
  font-family: var(--font-display);
  margin: 32px 0 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}
article.legal p,
article.legal li {
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.005em;
}
article.legal p { margin: 0 0 16px; }
article.legal ul {
  padding-left: 22px;
  margin: 0 0 20px;
}
article.legal li { margin-bottom: 8px; }
article.legal li::marker { color: var(--ink-4); }
article.legal strong { color: var(--ink); font-weight: 600; }

article.legal a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
article.legal a:hover { text-decoration-color: var(--ink); }

/* ────────── FOOTER ────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px max(20px, calc((100vw - var(--max)) / 2));
  color: var(--ink-3);
  font-size: 14px;
  letter-spacing: -0.01em;
  text-align: center;
}
footer p { margin: 0; }
footer a {
  color: var(--ink-2);
  text-decoration: none;
}
footer a:hover { color: var(--ink); }
