/* Shared styling for the legal / utility pages on speedrun.study.
   These pages ARE scrollable, only the landing page is locked to one viewport. */

@font-face {
  font-family: 'Inter Variable';
  src: url('./inter-var.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg:      #f6f5f1;
  --surface: #ffffff;
  --ink:     #1d1d1f;
  --ink-2:   #55555a;
  --ink-3:   #8e8e93;
  --line:    #dedbd3;
  --lime:    #c8f135;

  --r: 14px;
  --font: 'Helvetica Now Display', 'Inter Variable', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.62;
  letter-spacing: -0.011em;
  -webkit-text-size-adjust: 100%;
}

/* ── Rails ────────────────────────────────────────────────────────────────── */
.doc-head, .doc-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  max-width: 780px; margin: 0 auto;
  padding: 22px clamp(20px, 5vw, 28px);
}
.doc-head { border-bottom: 1px solid var(--line); }
.doc-foot {
  border-top: 1px solid var(--line);
  margin-top: 56px;
  font-size: 12.5px; color: var(--ink-3);
}

.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.brand img { width: 24px; height: 24px; border-radius: 6px; display: block; }
.brand span { font-size: 14px; font-weight: 700; letter-spacing: -0.025em; }

.doc-head nav { display: flex; gap: 18px; }
.doc-head nav a, .doc-foot a {
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  text-decoration: none; transition: color 0.16s ease;
}
.doc-head nav a:hover, .doc-foot a:hover { color: var(--ink); }

/* ── Document ─────────────────────────────────────────────────────────────── */
.doc {
  max-width: 780px; margin: 0 auto;
  padding: clamp(30px, 6vw, 52px) clamp(20px, 5vw, 28px) 0;
}

.eyebrow {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-2);
  margin-bottom: 12px;
}

.doc h1 {
  font-size: clamp(32px, 6.2vw, 50px);
  font-weight: 700; letter-spacing: -0.04em; line-height: 1.02;
  margin-bottom: 12px;
}
.stamp { font-size: 13px; color: var(--ink-3); margin-bottom: 30px; }

.doc h2 {
  font-size: clamp(18px, 2.6vw, 21px);
  font-weight: 700; letter-spacing: -0.025em;
  margin: 38px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.doc h3 {
  font-size: 15px; font-weight: 700; letter-spacing: -0.02em;
  margin: 24px 0 9px;
}

.doc p { font-size: 15px; color: var(--ink-2); margin-bottom: 14px; }
.doc p strong, .doc li strong { color: var(--ink); font-weight: 700; }
.doc a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--lime);
         text-decoration-thickness: 2px; text-underline-offset: 2px; }

.doc ul, .doc ol { margin: 0 0 16px 20px; }
.doc li { font-size: 15px; color: var(--ink-2); margin-bottom: 7px; }

/* Highlighted summary block. */
.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--lime);
  border-radius: var(--r);
  padding: 18px 20px;
  font-size: 14.5px; color: var(--ink-2);
  margin-bottom: 8px;
}
.callout strong { color: var(--ink); }

/* Unmissable, on purpose, this must not ship unresolved. */
.todo {
  background: #fff8e1;
  border: 1px solid #f0d98a;
  border-radius: var(--r);
  padding: 14px 16px;
  font-size: 14px;
  color: #6b5410 !important;
}
.todo strong { color: #4d3c07; }

/* Tables scroll inside their own box rather than widening the page. */
.tbl-wrap { overflow-x: auto; margin-bottom: 18px; }
.tbl {
  width: 100%; border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 18px;
  font-size: 14px;
  display: block;
  overflow-x: auto;
  white-space: normal;
}
.tbl thead, .tbl tbody { display: table; width: 100%; }
.tbl th, .tbl td {
  text-align: left; padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.tbl th {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--ink-3);
  background: #f0efe9;
  white-space: nowrap;
}
.tbl td { color: var(--ink-2); }
.tbl tbody tr:last-child td { border-bottom: 0; }

@media (max-width: 620px) {
  .tbl th, .tbl td { padding: 9px 11px; font-size: 13px; }
}
