/* ── pages.css ──────────────────────────────────────────────────
   Shared stylesheet for utility pages (Privacy, Terms, Support,
   Contact). Uses the Dispute Vault design tokens.
   ────────────────────────────────────────────────────────────── */


/* ── Fonts (self-hosted) ── */

@font-face {
  font-family: 'Red Hat Display';
  src: url('/fonts/red-hat-display-latin.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Azeret Mono';
  src: url('/fonts/azeret-mono-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lexend';
  src: url('/fonts/lexend-latin.woff2') format('woff2');
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}


:root {
  /* Neutrals — matching landing page */
  --bg: #FAFAF8;
  --surface: #FFFFFF;
  --border: #E8E6DF;
  --inset: #F5F4F0;
  --text: #1A1A2E;
  --muted: #5A5A6A;
  --faint: #9CA3AF;

  /* Blue accent — matching landing page */
  --accent: #1D4ED8;
  --accent-hover: #2563EB;
  --accent-tint: rgba(29, 78, 216, 0.06);
  --accent-border: rgba(29, 78, 216, 0.18);

  /* Callout variants */
  --info-bg: rgba(29, 78, 216, 0.04);
  --info-border: rgba(29, 78, 216, 0.14);
  --success-bg: rgba(45, 138, 78, 0.04);
  --success-border: rgba(45, 138, 78, 0.14);
  --warn-bg: rgba(196, 125, 30, 0.04);
  --warn-border: rgba(196, 125, 30, 0.14);
  --important-bg: rgba(26, 25, 23, 0.03);
  --important-border: rgba(26, 25, 23, 0.12);

  /* Spacing scale */
  --sp-xs: 0.25rem;
  --sp-s: 0.5rem;
  --sp-m: 0.75rem;
  --sp-l: 1rem;
  --sp-xl: 1.5rem;
  --sp-2xl: 2rem;

  /* Page-level stack spacing */
  --page-stack-gap: 1.375rem;
  --page-stack-gap-callout: 1.625rem;

  /* Radius and shadow */
  --radius: 10px;
  --shadow-rest: 0 1px 3px rgba(26, 25, 23, 0.04), 0 1px 2px rgba(26, 25, 23, 0.06);
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

/* Offset anchor targets below the fixed-height header */
:target {
  scroll-margin-top: 1.5rem;
}

body {
  font-family: 'Lexend', sans-serif;
  font-weight: 300;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  line-height: 1.65;
}


/* ── Container ── */

.container {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--sp-xl);
  padding-right: var(--sp-xl);
  width: 100%;
}


/* ── Header ── */

header {
  background: var(--surface);
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: var(--sp-m);
  flex-shrink: 0;
}

.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
}

.header-brand-logo {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: rgba(29, 78, 216, 0.35);
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linejoin: round;
}

.header-brand-wordmark {
  font-family: 'Red Hat Display', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.header-brand-wordmark strong {
  font-weight: 700;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-l);
}

.nav-link {
  font-size: 0.8125rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s;
}

.nav-link:hover { color: var(--text); }


/* ── Main ── */

main {
  flex: 1;
  padding: var(--sp-xl) 0 var(--sp-2xl) 0;
}

/* Top-level stack rhythm */
main > .container > * {
  margin-top: var(--page-stack-gap);
}

main > .container > :first-child {
  margin-top: 0;
}

main > .container > .callout {
  margin-top: var(--page-stack-gap-callout);
}

main > .container > :last-child {
  margin-bottom: var(--sp-xl);
}


/* ── Footer ── */

footer {
  background: var(--inset);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Azeret Mono', monospace;
  font-size: 0.7rem;
  color: var(--faint);
  letter-spacing: 0.02em;
}

.footer-brand a {
  color: var(--faint);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-brand svg {
  width: 14px;
  height: 14px;
  fill: rgba(29, 78, 216, 0.25);
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linejoin: round;
  opacity: 0.5;
}

.footer-disclosure {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: var(--sp-l);
}

.footer-links {
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--faint);
  text-decoration: none;
  padding: var(--sp-xs) 0;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent); }

.footer-sep {
  color: var(--border);
  margin: 0 var(--sp-m);
}


/* ── Intro Card (Hero) ── */

.intro-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-rest);
  padding: 2.5rem var(--sp-2xl) 2.25rem;
  position: relative;
}

.intro-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 2rem;
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 0 0 2px 2px;
  opacity: 0.6;
}

.intro-card h1 {
  font-family: 'Red Hat Display', serif;
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.035em;
  margin-bottom: 0.75rem;
  line-height: 1.08;
}

.intro-sub {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0;
  max-width: 52ch;
}

.intro-sub + .intro-meta {
  margin-top: var(--sp-m);
}

.intro-meta {
  font-size: 0.7rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  letter-spacing: 0.005em;
}

.intro-meta strong {
  color: var(--text);
  font-weight: 600;
}

.intro-meta .meta-dot {
  margin: 0 0.375rem;
  color: var(--border);
}

.intro-meta .meta-link {
  color: var(--accent);
  text-decoration: none;
}

.intro-meta .meta-link:hover {
  text-decoration: underline;
}

.intro-meta-support {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  margin-top: 1rem;
}

.intro-contact-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.intro-contact-email {
  font-size: 0.8125rem;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}

.intro-contact-email:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.support-status-section h2 {
  margin-bottom: 0.9rem;
}


/* ── Callout blocks ── */

.callout {
  border-radius: var(--radius);
  padding: var(--sp-l) var(--sp-xl);
  border: 1px solid;
}

.callout-info {
  background: var(--info-bg);
  border-color: var(--info-border);
}

.callout-success {
  background: var(--success-bg);
  border-color: var(--success-border);
}

.callout-warn {
  background: var(--warn-bg);
  border-color: var(--warn-border);
}

.callout-important {
  background: var(--important-bg);
  border-color: var(--important-border);
}

.callout-title {
  font-family: 'Red Hat Display', serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.015em;
}

.callout ul,
.callout ol {
  margin: 0;
  padding-left: 1.25rem;
}

.callout li {
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: var(--sp-xs);
}

.callout li:last-child { margin-bottom: 0; }

.callout p {
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.6;
}

.callout-foot {
  font-size: 0.8125rem;
  color: var(--faint);
  margin-top: var(--sp-m);
}

.callout-body {
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: var(--sp-m);
}


/* ── Content Card ── */

.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-rest);
  padding: var(--sp-xl) var(--sp-2xl) var(--sp-2xl);
}

.content-card-compact-bottom {
  padding-bottom: var(--sp-xl);
}

.body-intro {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}


/* ── Section headings ── */

.content-card h2 {
  font-family: 'Red Hat Display', serif;
  font-size: 1.1875rem;
  font-weight: 500;
  color: var(--text);
  margin-top: 0;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.section-num {
  font-family: 'Azeret Mono', monospace;
  font-size: 0.82em;
  font-weight: 500;
  color: var(--accent);
  opacity: 0.45;
  margin-right: 0.35rem;
  letter-spacing: 0.01em;
}


/* ── Subheadings ── */

.content-card h3 {
  font-family: 'Lexend', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: var(--sp-xl);
  margin-bottom: var(--sp-s);
  line-height: 1.3;
}


/* ── Body text ── */

.content-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: var(--sp-m);
  max-width: 65ch;
}

.content-card p:last-child { margin-bottom: 0; }


/* ── Lists ── */

.content-card ul,
.content-card ol {
  margin: 0 0 var(--sp-m) 0;
  padding-left: 1.25rem;
}

.content-card li {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: var(--sp-xs);
}

.content-card li:last-child { margin-bottom: 0; }


/* ── Links ── */

.content-card a {
  color: var(--accent);
  text-decoration: none;
}

.content-card a:hover {
  text-decoration: underline;
}


/* ── Inline emphasis ── */

.content-card strong {
  font-weight: 500;
  color: var(--text);
}


/* ── Section footnote ── */

.section-footnote {
  font-size: 0.8125rem;
  color: var(--faint);
  line-height: 1.5;
  margin-top: var(--sp-l);
}


/* ── Legal caps text ── */

.content-card .legal-caps {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.6;
}


/* ── Code ── */

code {
  font-family: 'Azeret Mono', monospace;
  font-size: 0.8125rem;
  background: rgba(26, 25, 23, 0.04);
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
}


/* ── Dividers ── */

.divider {
  border: none;
  border-top: 1px solid rgba(26, 25, 23, 0.04);
  margin: 0.875rem 0;
}


/* ── Key-value rows ── */

.kv-block {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: var(--sp-m) 0;
}

.kv-row {
  display: flex;
  align-items: flex-start;
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(26, 25, 23, 0.04);
  font-size: 0.875rem;
  gap: var(--sp-l);
}

.kv-row:last-child { border-bottom: none; }

.kv-key {
  color: var(--faint);
  font-weight: 400;
  flex-shrink: 0;
  min-width: 8rem;
}

.kv-val {
  color: var(--text);
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

.kv-val a {
  color: var(--accent);
  text-decoration: none;
}

.kv-val a:hover { text-decoration: underline; }

.kv-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--faint);
  line-height: 1.4;
  margin-top: 0.25rem;
}


/* ── Numbered list (for Terms) ── */

.content-card ol {
  list-style: decimal;
}

.content-card ol li {
  padding-left: var(--sp-xs);
}


/* ── Table (for policies) ── */

.content-card table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sp-m) 0 var(--sp-l);
  font-size: 0.875rem;
}

.content-card th {
  text-align: left;
  font-weight: 500;
  color: var(--text);
  padding: var(--sp-s) var(--sp-m);
  background: var(--inset);
  border-bottom: 1px solid var(--border);
}

.content-card td {
  padding: var(--sp-s) var(--sp-m);
  color: var(--text);
  border-bottom: 1px solid rgba(26, 25, 23, 0.04);
  vertical-align: top;
}

.content-card tr:last-child td { border-bottom: none; }


/* ── TOC card ── */

.toc-card {
  padding-top: var(--sp-l);
  padding-bottom: var(--sp-l);
  background: #FDFCFA;
}

.toc-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.5rem;
  row-gap: 0.5rem;
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.toc-list li {
  margin-bottom: 0;
  line-height: 1.9;
}

.toc-list a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.84rem;
  display: block;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: color 120ms ease, background-color 120ms ease;
}

.toc-list a:hover {
  color: var(--accent);
  text-decoration: none;
  background: rgba(29, 78, 216, 0.06);
}

.toc-list a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* Back to top link */
.back-to-top {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(26, 25, 23, 0.05);
  text-align: center;
}

.back-to-top a {
  font-family: 'Azeret Mono', monospace;
  font-size: 0.65rem;
  color: var(--faint);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
  transition: opacity 200ms ease, color 200ms ease;
}

.back-to-top a:hover {
  color: var(--accent);
  opacity: 1;
}


/* ── Glance table (Privacy at a glance) ── */

.glance-card {
  background: var(--surface);
}

.glance-table {
  margin: var(--sp-m) 0 0;
}

.glance-table th {
  background: rgba(29, 78, 216, 0.08);
  color: var(--text);
  border-bottom: 2px solid rgba(29, 78, 216, 0.15);
  padding: 0.8rem 1.1rem;
  font-family: 'Azeret Mono', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.glance-table th:first-child {
  width: 26%;
}

.glance-table td {
  padding: 1.1rem 1.1rem;
  border-bottom: 1px solid rgba(26, 25, 23, 0.04);
  line-height: 1.65;
}

.glance-table td:first-child {
  width: 26%;
  font-weight: 500;
  color: var(--text);
  font-size: 0.84rem;
}

.glance-table td:last-child {
  font-size: 0.9rem;
}

.glance-table tbody tr:last-child td {
  border-bottom: none;
}

.glance-table tbody tr:nth-child(even) td {
  background: #FDFCFA;
}

.glance-table td strong {
  font-weight: 500;
}


/* ── Privacy policy card ── */

.privacy-policy-card {
  padding-bottom: 2.5rem;
}

.privacy-policy-card h2 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 1.15rem;
}

.privacy-policy-card h3 {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text);
  margin-top: 1.5rem;
  margin-bottom: 0.65rem;
}

.privacy-policy-card p,
.privacy-policy-card li {
  line-height: 1.9;
}

.privacy-policy-card > section + section {
  margin-top: 2.75rem;
}

.privacy-policy-card .divider {
  border-top-color: rgba(26, 25, 23, 0.07);
  margin: 2.75rem 0;
}


/* ── Sub-cards (Section 2 A/B/C in privacy) ── */

.sub-card {
  background: var(--inset);
  border-left: 3px solid rgba(29, 78, 216, 0.22);
  border-radius: 0 6px 6px 0;
  padding: 1.15rem 1.35rem;
  margin-top: 1.1rem;
  margin-bottom: 1.1rem;
}

.sub-card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.sub-card p:last-child,
.sub-card ul:last-child {
  margin-bottom: 0;
}


/* ── Mini-blocks (within sub-cards) ── */

.mini-block {
  margin-bottom: 0.85rem;
}

.mini-block:last-of-type {
  margin-bottom: 0.6rem;
}

.mini-block-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.3rem;
  letter-spacing: -0.005em;
}

.mini-block p {
  margin-bottom: 0;
}

.muted-note {
  font-size: 0.8125rem;
  color: var(--faint);
  font-style: italic;
  margin-top: 0.5rem;
  line-height: 1.5;
}


/* ── Contact grid ── */

.contact-grid {
  background: var(--inset);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-top: 0.5rem;
}

.contact-grid .kv-block {
  margin: 0;
}

.contact-grid .kv-row {
  padding: 0.5rem 0;
}

.contact-grid .kv-key {
  color: var(--faint);
  font-weight: 400;
  font-size: 0.8125rem;
  min-width: 8rem;
}

.contact-grid .kv-val {
  font-weight: 400;
}

.contact-grid .kv-val a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.contact-grid .kv-val a:hover {
  text-decoration: underline;
  color: var(--accent-hover);
}


/* ── Callout note (policy footer) ── */

.callout-note {
  background: rgba(26, 25, 23, 0.025);
  border-color: rgba(26, 25, 23, 0.11);
}


/* ── Roomy kv-block ── */

.kv-block-roomy .kv-row {
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}


/* ── Terms page: TOC grid ── */

.terms-toc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.terms-toc-group {
  border: 1px solid rgba(26, 25, 23, 0.06);
  border-radius: 8px;
  background: #FDFCFA;
  padding: 1.45rem 1.25rem 1.2rem;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.terms-toc-group:hover {
  border-color: rgba(29, 78, 216, 0.15);
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.06);
}

.terms-toc-title {
  font-family: 'Red Hat Display', serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.015em;
  margin-bottom: 0.25rem;
  padding: 0 0 0.6rem 0;
  border-bottom: 1px solid rgba(26, 25, 23, 0.06);
}

.terms-toc-desc {
  font-family: 'Azeret Mono', monospace;
  font-size: 0.65rem;
  color: var(--faint);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  font-style: normal;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.terms-toc-group .toc-list {
  display: block;
  grid-template-columns: none;
  row-gap: 0;
  border-top: none;
  padding-top: 0;
}

.terms-toc-group .toc-list li + li {
  margin-top: 0.3rem;
}

.terms-toc-group .toc-list a {
  padding: 0.3rem 0.45rem;
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 400;
  background: transparent;
  border: none;
  border-radius: 4px;
  transition: background-color 120ms ease, color 120ms ease;
}

.terms-toc-group .toc-list a:hover {
  color: var(--accent);
  background: rgba(29, 78, 216, 0.04);
  text-decoration: none;
}

.terms-toc-card h2 {
  margin-bottom: 1.1rem;
  color: var(--text);
}


/* ── Terms policy card ── */

.terms-policy-card {
  padding-bottom: 2.5rem;
}

.terms-policy-card h2 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 1.15rem;
}

.terms-policy-card h3 {
  font-size: 0.93rem;
  margin-top: 1.4rem;
  margin-bottom: 0.65rem;
  color: var(--text);
}

.terms-policy-card p,
.terms-policy-card li {
  line-height: 1.9;
}

.terms-policy-card > section + section {
  margin-top: 2.75rem;
}

.terms-policy-card .divider {
  margin: 2.75rem 0;
  border-top-color: rgba(26, 25, 23, 0.09);
}


/* ── Terms: legal critical sections ── */

.terms-critical {
  border-left: 3px solid rgba(26, 25, 23, 0.18);
  padding-left: 1.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  background: rgba(26, 25, 23, 0.012);
  margin-left: -1.5rem;
  margin-right: -0.5rem;
  padding-right: 0.5rem;
  border-radius: 0 4px 4px 0;
}

.terms-legal-tail {
  padding-top: 0;
}

.terms-legal-tail h2 {
  margin-bottom: 1.15rem;
}

.terms-critical p {
  line-height: 2.2;
}

.terms-critical li {
  line-height: 2.2;
  margin-bottom: 0.55rem;
}

.terms-critical .legal-caps {
  letter-spacing: 0.015em;
  line-height: 1.78;
  margin-bottom: 1rem;
}

.terms-policy-card p + ul,
.terms-policy-card p + ol {
  margin-top: 0.38rem;
}


/* ── Terms: billing inset ── */

.billing-inset {
  background: var(--inset);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.15rem 1.35rem;
  margin-top: 1.1rem;
}

.billing-inset h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 0.875rem;
}

.billing-inset p {
  line-height: 1.95;
}

.billing-inset p:last-child {
  margin-bottom: 0;
}


/* ── Terms: liability cap emphasis ── */

.liability-cap {
  background: rgba(26, 25, 23, 0.045);
  border: 1px solid rgba(26, 25, 23, 0.13);
  border-left: 3px solid rgba(26, 25, 23, 0.22);
  border-radius: 5px;
  padding: 1.05rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.75;
  margin-top: 0.85rem;
  margin-bottom: 1rem;
}


/* ── Terms: summary callout ── */

.terms-summary-callout .callout-title {
  color: var(--text);
  margin-bottom: 0.58rem;
}

.terms-summary-callout li {
  margin-bottom: 0.48rem;
}

.terms-summary-callout li strong {
  color: var(--text);
}


/* ── Utility spacing ── */

.mt-s { margin-top: var(--sp-s); }
.mt-l { margin-top: var(--sp-l); }
.mt-xl { margin-top: var(--sp-xl); }
.mt-2xl { margin-top: var(--sp-2xl); }


/* ── Responsive ── */

@media (max-width: 840px) {
  .terms-toc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .terms-toc-group:last-child {
    grid-column: 1 / -1;
  }
}


@media (max-width: 640px) {
  :root {
    --page-stack-gap: 1rem;
    --page-stack-gap-callout: 1.25rem;
  }

  .container {
    padding-left: var(--sp-l);
    padding-right: var(--sp-l);
  }

  .intro-card {
    padding: var(--sp-xl) var(--sp-l);
  }

  .intro-card h1 {
    font-size: 1.55rem;
  }

  .content-card {
    padding: var(--sp-xl) var(--sp-l);
  }

  .callout {
    padding: var(--sp-l);
  }

  .kv-row {
    flex-direction: column;
    gap: 0.125rem;
  }

  .kv-key {
    min-width: 0;
    font-size: 0.75rem;
    color: var(--faint);
  }

  .intro-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.125rem;
  }

  .intro-meta .meta-dot { display: none; }

  .content-card h2 { font-size: 1.0625rem; }

  .content-card table {
    display: block;
    overflow-x: auto;
  }

  .toc-list {
    grid-template-columns: 1fr;
    row-gap: 0.35rem;
  }

  .terms-toc-grid {
    grid-template-columns: 1fr;
  }

  .sub-card {
    padding: 0.75rem 1rem;
  }

  .contact-grid {
    padding: 0.5rem 0.75rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }

  .intro-card::before {
    left: 1rem;
    width: 36px;
  }

  .terms-critical {
    margin-left: -1rem;
    margin-right: -0.25rem;
    padding-left: 1rem;
    padding-right: 0.25rem;
  }

  .terms-toc-group:last-child {
    grid-column: auto;
  }
}
