/* ============================================================================
   HashStamp legal pages — shared chrome for /terms, /privacy, /refund.
   Tokens copied from index.html's :root so the legal surface matches the
   storefront. Three pages share this file rather than triplicating ~90 lines;
   CSP style-src 'self' permits it (see _headers).
   ========================================================================== */
:root {
  --ink: #1a1714;
  --ink-soft: #5c554d;
  --paper: #f4f0e8;
  --card: #fbf9f4;
  --accent: #c8442a;
  --accent-deep: #9e3520;
  --line: #d8d0c0;
  --radius: 4px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Newsreader', Georgia, serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 780px; margin: 0 auto; padding: 0 28px; }

/* ── Nav ─────────────────────────────────────────────────── */
nav {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 780px; margin: 0 auto; padding: 26px 28px;
}
.logo {
  font-family: 'Fraunces', serif; font-weight: 900; font-size: 23px;
  letter-spacing: -0.02em; display: flex; align-items: center; gap: 9px;
  color: var(--ink); text-decoration: none;
}
.logo-mark {
  width: 28px; height: 28px; border: 2.5px solid var(--accent); border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; color: var(--accent);
  font-weight: 600; transform: rotate(-12deg); font-family: 'IBM Plex Mono', monospace;
}
.nav-cta {
  font-family: 'IBM Plex Mono', monospace; font-size: 14px; text-decoration: none;
  color: var(--ink); border-bottom: 2px solid var(--accent); padding-bottom: 2px;
}
.nav-cta:hover { opacity: .6; }

/* ── Document ────────────────────────────────────────────── */
main { padding: 30px 0 72px; }

h1 {
  font-family: 'Fraunces', serif; font-weight: 900;
  font-size: clamp(34px, 5vw, 52px); line-height: 1.04; letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.dateline {
  font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--ink-soft);
  letter-spacing: 0.04em; padding-bottom: 26px; margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.lede { font-size: 19px; margin-bottom: 34px; }

h2 {
  font-family: 'Fraunces', serif; font-weight: 600; font-size: 25px;
  letter-spacing: -0.02em; margin: 42px 0 14px; line-height: 1.2;
}

p { margin-bottom: 16px; }

ul { margin: 0 0 16px 22px; }
li { margin-bottom: 9px; }

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

a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 2px; }
a:hover { opacity: .7; }

/* Callout for the two-tier committed/label distinction and similar blocks */
.note {
  background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--radius); padding: 18px 20px; margin: 0 0 20px;
}
.note p:last-child, .note ul:last-child { margin-bottom: 0; }

.inert {
  background: var(--card); border: 1px dashed var(--line);
  border-radius: var(--radius); padding: 16px 20px; margin-bottom: 16px;
  font-size: 16px; color: var(--ink-soft);
}

/* ── Data table (Privacy §2) ─────────────────────────────── */
.table-scroll { overflow-x: auto; margin-bottom: 20px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 620px; }
th, td { text-align: left; padding: 11px 13px; border: 1px solid var(--line); vertical-align: top; }
th { background: var(--card); font-family: 'IBM Plex Mono', monospace; font-size: 12.5px;
     text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; }

/* ── Footer identity block ───────────────────────────────── */
footer {
  border-top: 1px solid var(--line); padding: 34px 0 56px;
  font-size: 15px; color: var(--ink-soft);
}
footer .idblock { line-height: 1.9; }
footer .idblock .name { color: var(--ink); font-weight: 600; }
footer .legal-links a { color: var(--ink-soft); }

@media (max-width: 560px) {
  body { font-size: 17px; }
  .dateline { font-size: 12px; }
}
