  :root {
    --paper: #f6f4ef;
    --paper-warm: #efece4;
    --ink: #18181a;
    --ink-soft: #4a4a4f;
    --ink-mute: #8a8a90;
    --rule: rgba(24,24,26,0.14);
    --rule-strong: rgba(24,24,26,0.4);
    --gold: #C9911A;
    --gold-bright: #FFC105;
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--paper); color: var(--ink);
    -webkit-font-smoothing: antialiased; line-height: 1.6;
    font-feature-settings: "ss01" 1, "cv11" 1;
  }
  h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; margin: 0; letter-spacing: -0.02em; }
  a { color: inherit; text-decoration: none; }

  /* ===== Masthead (shared with rest of site) ===== */
  .masthead {
    border-bottom: 1px solid var(--ink);
    padding: 14px 32px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px;
  }
  .masthead .brand {
    display: flex; align-items: center; gap: 10px;
    font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 20px;
    letter-spacing: -0.02em; white-space: nowrap;
  }
  .masthead .brand .brand-mark {
    width: 30px; height: 30px; border-radius: 7px; background: var(--ink);
    display: inline-flex; align-items: center; justify-content: center;
    font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 18px;
    letter-spacing: -0.06em; line-height: 1; flex-shrink: 0;
  }
  .masthead .brand .brand-mark .t { color: var(--paper); }
  .masthead .brand .brand-mark .bang { color: var(--gold-bright); }
  .masthead .brand .accent { color: var(--gold); }
  .masthead .brand .wordmark { display: inline; }
  .masthead .right { display: flex; align-items: center; gap: 22px; font-size: 13px; }
  .masthead .right a { color: var(--ink-soft); }
  .masthead .right a:hover { color: var(--ink); }
  .masthead .right .cta { color: var(--ink); border-bottom: 2px solid var(--gold-bright); padding-bottom: 1px; font-weight: 600; }

  /* Language switcher */
  .masthead .right .lang {
    position: relative;
    font-family: 'Space Grotesk', sans-serif;
    margin-right: -6px;
  }
  .masthead .right .lang-trigger {
    background: none; border: none; padding: 4px 8px;
    font: inherit; font-size: 13px; font-weight: 500;
    color: var(--ink-soft); cursor: pointer;
    display: inline-flex; align-items: center; gap: 4px;
    letter-spacing: 0.04em;
  }
  .masthead .right .lang-trigger:hover { color: var(--ink); }
  .masthead .right .lang-trigger .chev {
    font-size: 9px; line-height: 1; transition: transform 0.2s; opacity: 0.7;
  }
  .masthead .right .lang:hover .lang-trigger .chev,
  .masthead .right .lang:focus-within .lang-trigger .chev { transform: rotate(180deg); }
  .masthead .right .lang-menu {
    position: absolute; top: calc(100% + 4px); right: 0;
    background: var(--paper); border: 1px solid var(--ink);
    min-width: 140px;
    display: none; flex-direction: column;
    box-shadow: 0 8px 24px -10px rgba(24,24,26,0.2);
    z-index: 50;
  }
  .masthead .right .lang:hover .lang-menu,
  .masthead .right .lang:focus-within .lang-menu { display: flex; }
  .masthead .right .lang-menu a {
    padding: 8px 12px; font-size: 13px; color: var(--ink-soft);
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    border-bottom: 1px solid var(--rule);
  }
  .masthead .right .lang-menu a:last-child { border-bottom: none; }
  .masthead .right .lang-menu a:hover { color: var(--ink); background: var(--paper-warm); }
  .masthead .right .lang-menu a.active { color: var(--ink); background: var(--paper-warm); font-weight: 600; }
  .masthead .right .lang-menu a .code {
    font-family: 'JetBrains Mono', monospace; font-size: 10px;
    color: var(--ink-mute); letter-spacing: 0.08em;
  }
  .masthead .right .lang-menu a.active .code { color: var(--gold); }

  @media (max-width: 720px) { .masthead .right a:not(.cta) { display: none; } }

  /* ===== Document hero ===== */
  .doc-hero {
    border-bottom: 1px solid var(--ink);
    padding: 64px 32px 48px;
  }
  .doc-hero-inner { max-width: 820px; margin: 0 auto; }
  .doc-hero .breadcrumb {
    font-family: 'JetBrains Mono', monospace; font-size: 11px;
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft);
    margin-bottom: 28px;
  }
  .doc-hero .breadcrumb a { border-bottom: 1px solid currentColor; padding-bottom: 1px; }
  .doc-hero .breadcrumb a:hover { color: var(--ink); }
  .doc-hero .breadcrumb .sep { padding: 0 8px; color: var(--ink-mute); }
  .doc-hero h1 {
    font-size: clamp(40px, 6vw, 72px); line-height: 1.0;
    letter-spacing: -0.035em; margin: 0;
  }
  .doc-hero h1 .em { font-style: italic; font-weight: 500; }
  .doc-hero .sub {
    font-family: 'Inter', sans-serif; font-size: 15px; color: var(--ink-soft);
    margin-top: 18px; max-width: 600px;
  }
  .doc-hero .meta {
    font-family: 'JetBrains Mono', monospace; font-size: 11px;
    color: var(--ink-mute); letter-spacing: 0.08em; text-transform: uppercase;
    margin-top: 14px;
  }
  .doc-hero .meta .sep { color: var(--rule-strong); padding: 0 8px; }

  /* ===== Document body ===== */
  .doc-body { padding: 56px 32px 96px; }
  .doc-body-inner { max-width: 820px; margin: 0 auto; }
  .doc-body section { margin-bottom: 48px; }
  .doc-body section:last-child { margin-bottom: 0; }
  .doc-body h2 {
    font-family: 'Space Grotesk', sans-serif; font-weight: 700;
    font-size: 22px; line-height: 1.2; letter-spacing: -0.02em;
    padding-bottom: 14px; margin-bottom: 22px;
    border-bottom: 1px solid var(--ink);
    display: flex; align-items: baseline; gap: 12px;
  }
  .doc-body h2 .num {
    font-family: 'JetBrains Mono', monospace; font-size: 12px;
    color: var(--gold); font-weight: 500; letter-spacing: 0.08em;
  }
  .doc-body h3 {
    font-family: 'Space Grotesk', sans-serif; font-weight: 600;
    font-size: 16px; margin-top: 28px; margin-bottom: 12px; line-height: 1.3;
  }
  .doc-body p {
    font-size: 15px; line-height: 1.65; color: var(--ink-soft);
    margin: 0 0 14px;
  }
  .doc-body p:last-child { margin-bottom: 0; }
  .doc-body p strong, .doc-body li strong { color: var(--ink); font-weight: 600; }
  .doc-body a { color: var(--ink); border-bottom: 1px solid var(--gold); padding-bottom: 1px; }
  .doc-body a:hover { color: var(--gold); }
  .doc-body ul, .doc-body ol {
    margin: 0 0 14px;
    padding-left: 22px;
    color: var(--ink-soft);
    font-size: 15px; line-height: 1.65;
  }
  .doc-body li { margin-bottom: 8px; }
  .doc-body li::marker { color: var(--gold); }

  /* Definition list for legal info */
  .doc-body dl.kv {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 14px 24px;
    margin: 0;
    border-top: 1px solid var(--rule);
    padding-top: 16px;
  }
  .doc-body dl.kv dt {
    font-family: 'Space Grotesk', sans-serif; font-weight: 600;
    font-size: 13px; color: var(--ink); padding-top: 1px;
    text-transform: uppercase; letter-spacing: 0.06em;
  }
  .doc-body dl.kv dd {
    margin: 0; font-size: 15px; color: var(--ink);
    border-bottom: 1px solid var(--rule); padding-bottom: 14px;
  }
  .doc-body dl.kv dt {
    border-bottom: 1px solid var(--rule); padding-bottom: 14px;
  }
  @media (max-width: 600px) {
    .doc-body dl.kv { grid-template-columns: 1fr; gap: 4px 0; }
    .doc-body dl.kv dt { border-bottom: none; padding-bottom: 0; padding-top: 14px; }
    .doc-body dl.kv dd { padding-top: 0; }
    .doc-body dl.kv dt:first-of-type { padding-top: 0; }
  }

  /* Tables (GDPR legal basis etc) */
  .doc-body table {
    width: 100%; border-collapse: collapse;
    margin: 0 0 14px; font-size: 14px;
  }
  .doc-body table th, .doc-body table td {
    text-align: left; padding: 12px 14px;
    border: 1px solid var(--rule);
    vertical-align: top; color: var(--ink-soft);
  }
  .doc-body table th {
    background: var(--paper-warm); color: var(--ink); font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em;
  }

  /* Callout box */
  .doc-body .callout {
    background: var(--paper-warm);
    border-left: 3px solid var(--gold);
    padding: 18px 22px;
    margin: 0 0 14px;
    border-radius: 0 4px 4px 0;
  }
  .doc-body .callout ul, .doc-body .callout p { margin-bottom: 0; }

  /* Document footer note */
  .doc-foot-note {
    margin-top: 64px; padding-top: 24px;
    border-top: 1px solid var(--rule-strong);
    font-family: 'JetBrains Mono', monospace; font-size: 11px;
    color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.1em;
    display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  }
  .doc-foot-note a { border-bottom: 1px solid currentColor; padding-bottom: 1px; }
  .doc-foot-note a:hover { color: var(--ink); }

  /* ===== Footer (shared) ===== */
  footer.site-footer { border-top: 1px solid var(--ink); padding: 24px 32px; }
  .footer-inner {
    max-width: 1280px; margin: 0 auto;
    display: flex; flex-direction: column; gap: 14px;
    font-family: 'JetBrains Mono', monospace; font-size: 11px;
    text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft);
  }
  .footer-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 18px 24px; flex-wrap: wrap;
  }
  .footer-inner a:hover { color: var(--ink); }
  /* Row 1 — ElevenLabs Grants badge (required) + powered-by vendor list */
  .footer-inner .grants { display: inline-flex; align-items: center; gap: 8px; }
  .footer-inner .grants a { display: inline-flex; align-items: center; }
  .footer-inner .grants img { display: block; height: 18px; width: auto; opacity: 0.7; transition: opacity 0.2s; }
  .footer-inner .grants a:hover img { opacity: 1; }
  .footer-inner .powered { display: inline-flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
  /* Row 2 — legal + nav */
  .footer-inner .links { display: flex; gap: 24px; flex-wrap: wrap; }
