/* ── Legal Layout Page Blueprint ── */
    .legal-layout {
      display: grid;
      grid-template-columns: 240px 1fr;
      gap: 40px;
      max-width: 1060px;
      margin: 0 auto;
      padding: 40px 20px;
    }

    /* ── Vertical Sticky Table of Contents ── */
    .legal-toc {
      position: sticky;
      top: 90px;
      align-self: start;
      background: #ffffff;
      border-radius: var(--radius, 8px);
      border: 1px solid var(--border, #e2e8f0);
      padding: 22px;
      display: flex;
      flex-direction: column;
      width: 100%;
      max-width: 240px;
      box-sizing: border-box;
      
      /* Adds graceful scrolling if the viewport is vertically short */
      max-height: calc(100vh - 120px);
      overflow-y: auto;
    }

    /* Custom minimal scrollbar for premium feeling */
    .legal-toc::-webkit-scrollbar { width: 4px; }
    .legal-toc::-webkit-scrollbar-track { background: transparent; }
    .legal-toc::-webkit-scrollbar-thumb { background: var(--border, #e2e8f0); border-radius: 4px; }

    .legal-toc h3 {
      font-size: 13px;
      font-weight: 700;
      color: var(--navy, #0f172a);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin: 0 0 14px 0;
      padding-bottom: 10px;
      border-bottom: 2px solid var(--light-blue, #3b82f6);
    }

    .legal-toc a {
      display: flex;
      align-items: flex-start;
      font-size: 13.5px;
      color: var(--text-muted, #64748b);
      text-decoration: none;
      padding: 7px 0;
      border-bottom: 1px solid rgba(0, 0, 0, 0.04);
      transition: all 0.2s ease;
      line-height: 1.4;
    }

    .legal-toc a:last-child {
      border-bottom: none;
    }

    /* Micro-interactions on Hover */
    .legal-toc a:hover {
      color: var(--navy, #0f172a);
      padding-left: 4px;
    }

    /* Active Class (managed via JavaScript IntersectionObserver) */
    .legal-toc a.active {
      color: var(--royal, #2563eb);
      font-weight: 600;
    }
    .legal-toc a.active .toc-num {
      background: var(--royal, #2563eb);
      border-color: var(--royal, #2563eb);
      color: #fff;
    }

    /* Numbered badge — the recurring visual motif, reused as a dot on the mobile/tablet rail */
    .legal-toc .toc-num {
      flex-shrink: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background: var(--offwhite, #f1f5f9);
      border: 1px solid var(--border, #e2e8f0);
      color: var(--navy, #0f172a);
      font-size: 10.5px;
      font-weight: 700;
      margin-right: 10px;
      margin-top: 1px;
      transition: all 0.2s ease;
    }
    .legal-toc a:hover .toc-num {
      background: var(--light-blue);
      border-color: var(--light-blue);
    }

    /* Legal content styling architecture */
    .legal-content {
      background: white;
      border-radius: var(--radius);
      border: 1px solid var(--border);
      padding: clamp(20px, 4vw, 48px);
      min-width: 0; /* allow grid child to shrink below content size */
      overflow-wrap: break-word;
    }
    .legal-content h1 {
      font-family: 'Playfair Display', serif;
      font-size: clamp(24px, 4vw, 32px);
      color: var(--navy);
      margin-bottom: 6px;
    }
    .legal-meta {
      font-size: 12.5px;
      color: var(--text-muted);
      margin-bottom: 28px;
      padding-bottom: 20px;
      border-bottom: 2px solid var(--light-blue);
      display: flex;
      gap: 12px 20px;
      flex-wrap: wrap;
    }
    .legal-meta span { display: flex; align-items: center; gap: 6px; }

    .legal-content h2 {
      font-family: 'Playfair Display', serif;
      font-size: 20px;
      color: var(--navy);
      margin: 36px 0 14px;
      padding-top: 8px;
      scroll-margin-top: 100px; /* Surgical scroll tracking buffer zone */
    }
    .legal-content h3 {
      font-size: 16px;
      font-weight: 700;
      color: var(--text-dark);
      margin: 22px 0 10px;
    }
    .legal-content p {
      font-size: 15px;
      color: var(--text-mid);
      line-height: 1.85;
      margin-bottom: 14px;
    }
    .legal-content ul {
      margin: 10px 0 18px 0;
      padding-left: 0;
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .legal-content ul li {
      font-size: 15px;
      color: var(--text-mid);
      line-height: 1.7;
      padding-left: 22px;
      position: relative;
    }
    .legal-content ul li::before {
      content: '•';
      color: var(--red);
      font-weight: 700;
      position: absolute;
      left: 6px;
    }
    .legal-divider {
      border: none;
      border-top: 1px solid var(--border);
      margin: 32px 0;
    }
    .highlight-box {
      background: var(--light-blue);
      border-left: 4px solid var(--royal);
      border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
      padding: 16px 20px;
      margin: 20px 0;
    }
    .highlight-box p {
      font-size: 14px;
      color: var(--navy);
      margin: 0;
      font-weight: 500;
    }
    .contact-box {
      background: var(--navy);
      border-radius: var(--radius);
      padding: clamp(18px, 3vw, 24px);
      margin-top: 32px;
    }
    .contact-box h3 { color: white; font-size: 16px; margin-bottom: 10px; }
    .contact-box p  { color: rgba(255,255,255,0.75); font-size: 14px; margin-bottom: 6px; line-height: 1.6; word-break: break-word; }
    .contact-box a  { color: var(--gold); font-weight: 600; }

    /* ── Simplified legal-page hero (no photo) ── */
    .legal-hero {
      background: var(--navy);
      color: #fff;
      text-align: center;
      padding: 72px 20px 52px;
    }
    .legal-hero .hero-accent { margin: 0 auto 18px; }
    .legal-hero h1 {
      font-family: 'Playfair Display', serif;
      font-weight: 700;
      font-size: clamp(26px, 5vw, 42px);
      line-height: 1.2;
      margin: 0 0 12px;
    }
    .legal-hero p {
      max-width: 520px;
      margin: 0 auto;
      font-size: clamp(14px, 2vw, 16px);
      color: rgba(255,255,255,0.85);
      line-height: 1.7;
    }

    /* ── Minimal footer for legal pages ── */
    .legal-footer {
      background: var(--navy);
      color: rgba(255,255,255,0.65);
      text-align: center;
      padding: 22px 16px;
      font-size: 13px;
      border-top: 3px solid var(--gold);
    }
    .legal-footer a { color: #fff; text-decoration: none; font-weight: 600; }
    .legal-footer a:hover { color: var(--gold); }
    .legal-footer .lf-links { margin-top: 8px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

    /* ── Responsive: table of contents stays a SIDE element at every size ──
       It is NEVER position:fixed to the viewport (that's what caused it to
       float over the hero/nav) — it always lives inside the normal page
       flow, docked beside the content column, and simply gets narrower.
       ≥861px : full sidebar card with labels, sticky within the section.
       ≤860px : the same sticky column collapses to a slim numbered dot-rail. */
    @media (max-width: 860px) {
      .legal-layout {
        grid-template-columns: 52px 1fr;
        gap: 12px;
        padding: 24px 14px;
        max-width: 100%;
        align-items: start;
      }
      .legal-toc {
        top: 96px;
        max-width: none;
        max-height: none;
        overflow: visible;
        align-items: center;
        gap: 8px;
        background: rgba(15, 23, 42, 0.94);
        border: none;
        border-radius: 20px;
        padding: 10px 6px;
        box-shadow: 0 8px 20px rgba(4, 12, 34, 0.18);
      }
      .legal-toc h3 { display: none; }
      .legal-toc a {
        display: block;
        position: relative;
        padding: 0;
        border-bottom: none;
      }
      .legal-toc a .toc-label {
        position: absolute;
        left: calc(100% + 12px);
        top: 50%;
        transform: translateY(-50%) translateX(-6px);
        background: var(--navy);
        color: #fff;
        font-size: 12.5px;
        font-weight: 600;
        padding: 7px 14px;
        border-radius: 7px;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.18s ease, transform 0.18s ease;
        box-shadow: 0 6px 16px rgba(0,0,0,0.25);
        z-index: 10;
      }
      .legal-toc a:hover, .legal-toc a:focus { padding-left: 0; }
      .legal-toc a:hover .toc-label,
      .legal-toc a:focus .toc-label,
      .legal-toc a.active .toc-label {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
      }
      .legal-toc .toc-num {
        margin-right: 0;
        margin-top: 0;
        width: 26px;
        height: 26px;
        font-size: 11px;
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.18);
        color: rgba(255, 255, 255, 0.85);
      }
      .legal-toc a:hover .toc-num { background: var(--light-blue); border-color: var(--light-blue); color: var(--navy); }
      .legal-toc a.active .toc-num { background: var(--gold); border-color: var(--gold); color: var(--navy); }
      .legal-content { padding: 26px 20px; }
      .legal-hero { padding: 56px 18px 40px; }
    }
    @media (max-width: 480px) {
      .legal-layout { grid-template-columns: 44px 1fr; gap: 8px; padding: 18px 10px; }
      .legal-toc { padding: 8px 5px; gap: 6px; border-radius: 16px; }
      .legal-toc .toc-num { width: 22px; height: 22px; font-size: 10px; }
      .legal-content { padding: 20px 14px; }
      .legal-meta { font-size: 11.5px; gap: 8px 14px; }
      .contact-box p { font-size: 13px; }
      .legal-hero { padding: 48px 16px 34px; }
    }