:root{
    --bg: white;
    --card: #111214;
    --muted: white;
    --content: black;
    --accent: #d33; /* red banner */
    --panel: #0b0b0c;
    --text: black;
    --toc-bg: #2ebb77;
    --max-width: 1200px;
    --toc-width: 300px;
    --side-gap: 24px;
  }

  /* Page background */
  body {
    background: var(--bg);
    color: var(--text);
  }

  /* Outer wrapper to keep header/footer from stretching */
  .policy-wrapper {
    max-width: var(--max-width);
    margin: 36px auto;
    padding: 24px;
  }

  /* Card containing policy */
  .policy-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 6px 30px rgba(0,0,0,0.6);
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 28px;
    align-items: start;
  }

  /* Mobile: stack */
  @media (max-width: 1023px) {
    .policy-card {
      grid-template-columns: 1fr;
      padding: 18px;
      gap: 12px;
    }
  }

  /* Header title */
  .policy-header {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 6px;
  }
  .policy-title {
    font-size: 32px;
    margin: 6px 0 4px;
    letter-spacing: 0.6px;
  }
  .policy-updated {
    color: var(--muted);
    font-size: 13px;
  }

  /* red banner below the title */
  .policy-banner {
    display: block;
    background: var(--accent);
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    max-width: 900px;
    margin: 14px auto;
    font-weight: 600;
  }

  /* Sidebar (TOC) */
  .policy-toc {
    background: var(--toc-bg);
    border-radius: 8px;
    padding: 18px;
    height: fit-content;
  }
  .toc-heading {
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 14px;
  }
  .toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block;
  }
  .toc-list li {
    margin: 6px 0;
  }
  .toc-list a {
    color: var(--muted);
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    padding: 6px 8px;
    border-radius: 6px;
  }
  .toc-list a:hover { color: #fff; background: rgba(255,255,255,0.03); }
  .toc-list a.active {
    color: #fff;
    background: rgba(45,45,45,0.6);
    box-shadow: inset 0 -2px 0 rgba(255,255,255,0.03);
    font-weight: 600;
  }

@media (min-width: 1024px) {
    .policy-toc {
        position: fixed;
        top: 35vh;
        bottom: 24px;
        left: calc(50% - (var(--max-width) / 2)  var(--side-gap));
        width: var(--toc-width);
        z-index: 1000;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        background: var(--toc-bg);
        border-radius: 8px;
        padding: 18px;
        box-shadow: 0 6px 24px rgba(0,0,0,0.2);
    }
    
    .policy-body {
        margin-left: calc(var(--toc-width)  (2 * var(--side-gap)));
    }
}

  /* Main content */
  .policy-body {
    padding: 6px 2px;
  }
  .policy-section {
    margin-bottom: 26px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.02);
  }
  .policy-section h3 {
    font-size: 20px;
    margin: 6px 0 10px;
    color: var(--text);
  }
  .policy-section p,
  .policy-section li {
    color: var(--content);
    line-height: 1.6;
    font-size: 14px;
  }
  .policy-section ul { margin-left: 18px; }

  /* Table-of-contents toggler for mobile */
  .toc-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.04);
    color: var(--muted);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 8px;
  }
  @media (max-width: 1023px) {
    .toc-toggle { display: inline-block; }
    .policy-toc { display: none; }
    .policy-toc.open { display: block; }
    .policy-card { gap: 18px; }
  }

  /* Small aesthetic touches */
  .small-muted { color: var(--muted); font-size: 13px; }
  .section-intro { margin-bottom: 12px; color: var(--muted); }
  .back-to-top {
    display: inline-block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
  }