.font-serif { font-family: 'IBM Plex Serif', Georgia, serif; }
  .mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }
  a { color: inherit; }


  /* ---------- Page ---------- */
  .page { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem 5rem; }
  @media (min-width: 768px) { .page { padding: 0 2.5rem 6rem; } }

  .crumb {
    display: flex; align-items: center; gap: .5rem;
    padding: 1.5rem 0 1rem; font-size: .8125rem; color: var(--muted);
  }
  .crumb a { color: var(--muted); text-decoration: none; transition: color .15s ease; }
  .crumb a:hover { color: var(--ink); }
  .crumb .sep { color: var(--border-strong); }
  .crumb .current { color: var(--ink); font-weight: 500; }

  /* ---------- Document hero ---------- */
  .doc-hero {
    padding-bottom: 2.5rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border-strong);
  }
  .doc-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .6875rem; font-weight: 600;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 1rem;
  }
  .doc-eyebrow::before {
    content: ''; width: 20px; height: 1px; background: var(--accent);
  }
  .doc-title {
    font-family: 'IBM Plex Serif', Georgia, serif;
    font-size: 2rem; font-weight: 500; line-height: 1.15;
    letter-spacing: -.02em; margin: 0 0 1rem;
    color: var(--ink);
    max-width: 780px;
  }
  @media (min-width: 768px) { .doc-title { font-size: 2.75rem; } }
  .doc-lede {
    font-family: 'IBM Plex Serif', Georgia, serif;
    font-size: 1.125rem; line-height: 1.6;
    color: var(--ink-soft);
    margin: 0 0 1.5rem;
    max-width: 680px;
    font-style: italic;
  }
  .doc-meta {
    display: flex; flex-wrap: wrap; gap: 1.5rem;
    font-size: .8125rem; color: var(--muted);
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    max-width: 780px;
  }
  .doc-meta-item {
    display: inline-flex; align-items: center; gap: .375rem;
  }
  .doc-meta-item strong { color: var(--ink); font-weight: 500; }

  /* ---------- Layout ---------- */
  .doc-layout {
    display: grid; grid-template-columns: 1fr; gap: 3rem;
  }
  @media (min-width: 1024px) {
    .doc-layout {
      grid-template-columns: 220px minmax(0, 1fr);
      gap: 4rem; align-items: start;
    }
  }

  /* ---------- Sidebar TOC ---------- */
  .toc {
    position: sticky; top: 96px;
  }
  @media (max-width: 1023px) {
    .toc {
      position: static;
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 1.25rem;
      margin-bottom: 2.5rem;
    }
  }
  @media (min-width: 1024px) {
    .toc { border-left: 2px solid var(--border); padding-left: 1.5rem; }
  }
  .toc-label {
    font-size: .6875rem; font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase;
    color: var(--muted); margin-bottom: .75rem;
    display: block;
  }
  .toc-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: .125rem;
  }
  @media (max-width: 1023px) {
    .toc-list { flex-direction: row; flex-wrap: wrap; gap: .25rem; }
  }
  .toc-link {
    display: block; padding: .375rem 0;
    font-size: .8125rem; color: var(--ink-soft);
    text-decoration: none; line-height: 1.4;
    transition: color .15s ease;
    cursor: pointer; background: none; border: none;
    font-family: inherit; text-align: left; width: 100%;
  }
  @media (max-width: 1023px) {
    .toc-link {
      padding: .375rem .625rem;
      border-radius: 4px;
      background: var(--bg-alt);
      width: auto;
      font-size: .75rem;
    }
  }
  .toc-link:hover { color: var(--ink); }
  @media (min-width: 1024px) {
    .toc-link.active {
      color: var(--ink); font-weight: 500;
      position: relative;
    }
    .toc-link.active::before {
      content: ''; position: absolute;
      left: -1.5rem; top: 0; bottom: 0;
      width: 2px; background: var(--accent);
    }
  }
  @media (max-width: 1023px) {
    .toc-link.active {
      background: var(--accent-soft); color: var(--accent); font-weight: 500;
    }
  }

  /* ---------- Content ---------- */
  .doc-content {
    max-width: 720px;
  }

  .doc-section {
    margin-bottom: 3rem;
    scroll-margin-top: 96px;
  }
  .doc-section:last-child { margin-bottom: 0; }

  .section-num {
    font-family: 'IBM Plex Mono', monospace;
    font-size: .75rem; font-weight: 500;
    letter-spacing: .08em; color: var(--accent);
    margin-bottom: .5rem;
    display: block;
  }
  .section-heading {
    font-family: 'IBM Plex Serif', Georgia, serif;
    font-size: 1.5rem; font-weight: 500;
    line-height: 1.25; letter-spacing: -.01em;
    color: var(--ink); margin: 0 0 1rem;
  }
  @media (min-width: 768px) { .section-heading { font-size: 1.75rem; } }

  .subsection-heading {
    font-family: 'IBM Plex Serif', Georgia, serif;
    font-size: 1.125rem; font-weight: 500;
    line-height: 1.35; letter-spacing: -.005em;
    color: var(--ink); margin: 1.75rem 0 .75rem;
  }

  .doc-content p {
    font-size: 1rem; line-height: 1.75;
    color: var(--ink-soft);
    margin: 0 0 1rem;
  }
  .doc-content p strong {
    color: var(--ink); font-weight: 500;
  }
  .doc-content p:last-child { margin-bottom: 0; }

  .doc-content a {
    color: var(--accent); text-decoration: none;
    border-bottom: 1px solid rgba(30,58,95,.25);
    transition: border-color .15s ease;
  }
  .doc-content a:hover {
    border-bottom-color: var(--accent);
  }

  /* Numbered list */
  .doc-content ol.numbered {
    list-style: none;
    padding: 0; margin: 0 0 1rem;
    counter-reset: item;
  }
  .doc-content ol.numbered > li {
    position: relative;
    padding-left: 2.25rem;
    margin-bottom: .75rem;
    font-size: 1rem; line-height: 1.7;
    color: var(--ink-soft);
    counter-increment: item;
  }
  .doc-content ol.numbered > li::before {
    content: counter(item, decimal-leading-zero);
    position: absolute;
    left: 0; top: .0625rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: .8125rem; font-weight: 500;
    color: var(--accent);
    letter-spacing: .02em;
  }
  .doc-content ol.numbered > li strong { color: var(--ink); font-weight: 500; }

  /* Bullet list */
  .doc-content ul.bullet {
    list-style: none;
    padding: 0; margin: 0 0 1rem;
  }
  .doc-content ul.bullet > li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: .5rem;
    font-size: .9375rem; line-height: 1.7;
    color: var(--ink-soft);
  }
  .doc-content ul.bullet > li::before {
    content: ''; position: absolute;
    left: 0; top: .6875rem;
    width: 6px; height: 1px;
    background: var(--accent);
  }
  .doc-content ul.bullet > li strong { color: var(--ink); font-weight: 500; }

  /* Data table (for collected data) */
  .data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0 1.5rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    font-size: .875rem;
  }
  .data-table thead {
    background: var(--bg-alt);
  }
  .data-table th {
    text-align: left;
    padding: .75rem 1rem;
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid var(--border-strong);
  }
  .data-table td {
    padding: .875rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--ink-soft);
    vertical-align: top;
    line-height: 1.55;
  }
  .data-table tr:last-child td { border-bottom: none; }
  .data-table td strong { color: var(--ink); font-weight: 500; }
  .data-table td.mono-cell {
    font-family: 'IBM Plex Mono', monospace;
    font-size: .8125rem;
  }
  @media (max-width: 640px) {
    .data-table { font-size: .8125rem; }
    .data-table th, .data-table td { padding: .625rem .75rem; }
  }

  /* Callout */
  .callout {
    display: grid; grid-template-columns: auto 1fr;
    gap: .875rem;
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
    border-radius: 6px;
    background: var(--accent-soft);
    border-left: 3px solid var(--accent);
  }
  .callout.warning {
    background: var(--warning-soft);
    border-left-color: var(--warning);
  }
  .callout.danger {
    background: var(--danger-soft);
    border-left-color: var(--danger);
  }
  .callout.success {
    background: var(--success-soft);
    border-left-color: var(--success);
  }
  .callout-icon {
    font-family: 'IBM Plex Mono', monospace;
    font-size: .6875rem; font-weight: 600;
    color: var(--accent); letter-spacing: .06em;
    padding-top: .1875rem;
  }
  .callout.warning .callout-icon { color: var(--warning); }
  .callout.danger .callout-icon { color: var(--danger); }
  .callout.success .callout-icon { color: var(--success); }
  .callout-body {
    font-size: .9375rem; line-height: 1.6;
    color: var(--ink-soft);
    margin: 0;
  }
  .callout-body strong { color: var(--ink); font-weight: 500; }

  /* Two-column rule list */
  .rule-list {
    display: flex; flex-direction: column;
    margin: 1.25rem 0 1rem;
    border-top: 1px solid var(--border);
  }
  .rule-item {
    display: grid; grid-template-columns: 1fr;
    gap: .375rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    align-items: start;
  }
  @media (min-width: 640px) {
    .rule-item {
      grid-template-columns: 180px 1fr;
      gap: 1.5rem;
    }
  }
  .rule-label {
    font-size: .8125rem; font-weight: 600;
    color: var(--ink); line-height: 1.5;
    letter-spacing: .005em;
  }
  .rule-text {
    font-size: .9375rem; color: var(--ink-soft);
    line-height: 1.65;
    margin: 0;
  }
  .rule-text strong { color: var(--ink); font-weight: 500; }

  /* Rights grid */
  .rights-grid {
    display: grid; grid-template-columns: 1fr; gap: .75rem;
    margin: 1.25rem 0;
  }
  @media (min-width: 640px) { .rights-grid { grid-template-columns: 1fr 1fr; } }
  .right-card {
    padding: 1rem 1.125rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
  }
  .right-card-head {
    display: flex; align-items: center; gap: .5rem;
    margin-bottom: .375rem;
  }
  .right-card-num {
    font-family: 'IBM Plex Mono', monospace;
    font-size: .6875rem; font-weight: 600;
    color: var(--accent); letter-spacing: .06em;
  }
  .right-card-title {
    font-size: .875rem; font-weight: 600;
    color: var(--ink); margin: 0;
  }
  .right-card-desc {
    font-size: .8125rem; color: var(--muted);
    line-height: 1.55; margin: 0;
  }

  /* Third-party list */
  .third-party-list {
    list-style: none; padding: 0; margin: 1.25rem 0;
    display: flex; flex-direction: column;
    border-top: 1px solid var(--border);
  }
  .third-party-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: .375rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
  }
  @media (min-width: 640px) {
    .third-party-item {
      grid-template-columns: 200px 1fr auto;
      gap: 1.5rem;
      align-items: baseline;
    }
  }
  .third-party-name {
    font-size: .9375rem; font-weight: 500;
    color: var(--ink);
  }
  .third-party-purpose {
    font-size: .875rem; color: var(--ink-soft);
    line-height: 1.6;
  }
  .third-party-region {
    font-family: 'IBM Plex Mono', monospace;
    font-size: .75rem; color: var(--muted);
    white-space: nowrap;
  }

  /* Doc footer */
  .doc-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-strong);
  }
  .doc-footer-grid {
    display: grid; grid-template-columns: 1fr; gap: 1.5rem;
  }
  @media (min-width: 640px) {
    .doc-footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  }
  .doc-footer-label {
    font-size: .6875rem; font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase;
    color: var(--muted); margin-bottom: .5rem;
    display: block;
  }
  .doc-footer-title {
    font-family: 'IBM Plex Serif', Georgia, serif;
    font-size: 1.125rem; font-weight: 500;
    color: var(--ink); margin: 0 0 .5rem;
    line-height: 1.35;
  }
  .doc-footer-desc {
    font-size: .875rem; color: var(--muted);
    line-height: 1.6; margin: 0 0 .875rem;
  }
  .doc-footer-link {
    display: inline-flex; align-items: center; gap: .375rem;
    font-size: .875rem; font-weight: 500;
    color: var(--accent); text-decoration: none;
    border-bottom: 1px solid rgba(30,58,95,.3);
    padding-bottom: 1px;
    transition: border-color .15s ease;
  }
  .doc-footer-link:hover { border-bottom-color: var(--accent); }

  /* Version banner */
  .version-banner {
    display: flex; align-items: center; gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
    padding: 1rem 1.25rem;
    background: var(--bg-alt);
    border-radius: 6px;
    font-size: .8125rem;
    color: var(--muted);
  }
  .version-banner strong { color: var(--ink); font-weight: 500; }
  .version-banner .dot { color: var(--border-strong); }

  /* DPO box */
  .dpo-box {
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 6px;
  }
  .dpo-label {
    font-size: .6875rem; font-weight: 600;
    letter-spacing: .06em; text-transform: uppercase;
    color: var(--accent); margin-bottom: .375rem;
  }
  .dpo-title {
    font-size: .9375rem; font-weight: 600;
    color: var(--ink); margin: 0 0 .375rem;
  }
  .dpo-desc {
    font-size: .875rem; color: var(--ink-soft);
    line-height: 1.6; margin: 0 0 .625rem;
  }
  .dpo-contact {
    font-family: 'IBM Plex Mono', monospace;
    font-size: .8125rem; color: var(--accent);
  }

  @media (prefers-reduced-motion: reduce) {
    * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    html { scroll-behavior: auto; }
  }