  :root{
    --bg:#ffffff;
    --panel:#f5f6fa;
    --panel-2:#eef0f7;
    --border:rgba(20,19,31,0.08);
    --border-strong:rgba(20,19,31,0.14);
    --text:#14131f;
    --muted:#57576a;
    --muted-2:#9494a0;
    --blue:#0059ff;
    --blue-hover:#1a6bff;
    --teal:#12a394;
    --radius-pill:48px;
    --container:1180px;
  }

  *{box-sizing:border-box; margin:0; padding:0;}
  html{scroll-behavior:smooth; overflow-x:clip;}

  body{
    background:var(--bg);
    color:var(--text);
    font-family:"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing:antialiased;
    overflow-x:clip;
  }

  a{text-decoration:none; color:inherit;}
  ul, ol{list-style:none;}
  img{max-width:100%; display:block;}

  /* ---------- NAV (matches home) ---------- */
  header{
    position:sticky;
    top:0;
    z-index:100;
    background:rgba(255,255,255,0.85);
    backdrop-filter:blur(12px);
    border-bottom:1px solid var(--border);
  }
  .nav{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:18px 32px;
    max-width:1440px;
    margin:0 auto;
  }
  .logo{
    display:flex;
    align-items:center;
    gap:10px;
    font-size:20px;
    font-weight:600;
    letter-spacing:-0.3px;
  }
  .logo-mark{ width:26px; height:26px; display:block; }
  .nav-links{
    display:flex;
    align-items:center;
    gap:32px;
  }
  .nav-links a{
    font-size:15px;
    color:var(--muted);
    transition:color .15s ease;
  }
  .nav-links a:hover{ color:var(--text); }
  .back-link{
    display:inline-flex;
    align-items:center;
    gap:8px;
    font-size:15px;
    color:var(--muted);
    transition:color .15s ease;
  }
  .back-link:hover{ color:var(--text); }
  .nav-right{ display:flex; align-items:center; gap:18px; }

  /* ---------- MOBILE MENU ---------- */
  .menu-toggle{
    display:none; flex-direction:column; justify-content:center; align-items:center;
    gap:5px; width:40px; height:40px; border:none; background:none; cursor:pointer;
    flex-shrink:0; padding:0;
  }
  .menu-toggle span{
    display:block; width:20px; height:2px; background:var(--text);
    border-radius:2px; transition:transform .25s ease, opacity .25s ease;
  }
  .menu-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

  .mobile-menu{
    display:none; position:absolute; top:100%; left:0; right:0;
    background:#ffffff; border-top:1px solid var(--border);
    max-height:80vh; overflow-y:auto; box-shadow:0 24px 40px -20px rgba(20,19,31,0.18);
  }
  .mobile-menu.open{ display:block; }
  .mobile-menu-inner{ padding:8px 24px 32px; }
  .mobile-menu-links{ display:flex; flex-direction:column; }
  .mobile-menu-links a{
    padding:16px 2px; font-size:18px; font-weight:500; color:var(--text);
    border-bottom:1px solid var(--border);
  }

  /* ---------- LEGAL CONTENT ---------- */
  .legal-wrap{
    max-width:820px;
    margin:0 auto;
    padding:80px 32px 40px;
  }
  .legal-header{
    margin-bottom:48px;
    padding-bottom:40px;
    border-bottom:1px solid var(--border);
  }
  .legal-header h1{
    font-family:"Inter Tight","Inter",sans-serif;
    font-size:42px;
    font-weight:600;
    letter-spacing:-1.2px;
    line-height:1.15;
    margin-bottom:16px;
  }
  .legal-header .updated{
    font-size:14px;
    color:var(--muted-2);
    margin-bottom:20px;
  }
  .legal-header .intro{
    font-size:16px;
    line-height:1.7;
    color:var(--muted);
  }

  .toc{
    background:var(--panel);
    border:1px solid var(--border);
    border-radius:16px;
    padding:28px 32px;
    margin-bottom:56px;
  }
  .toc h2{
    font-size:14px;
    font-weight:600;
    letter-spacing:1px;
    text-transform:uppercase;
    color:var(--teal);
    margin-bottom:16px;
  }
  .toc ol{
    counter-reset:toc-counter;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:6px 24px;
  }
  .toc li{
    font-size:14.5px;
  }
  .toc a{
    color:var(--muted);
    transition:color .15s ease;
  }
  .toc a:hover{ color:var(--blue); }

  .legal-section{
    margin-bottom:44px;
    scroll-margin-top:100px;
  }
  .legal-section h2{
    font-family:"Inter Tight","Inter",sans-serif;
    font-size:24px;
    font-weight:600;
    letter-spacing:-0.4px;
    margin-bottom:16px;
  }
  .legal-section h3{
    font-size:16px;
    font-weight:600;
    margin:20px 0 8px;
  }
  .legal-section p{
    font-size:15.5px;
    line-height:1.75;
    color:var(--muted);
    margin-bottom:14px;
  }
  .legal-section ul{
    margin:12px 0 14px;
    padding-left:0;
  }
  .legal-section ul li{
    font-size:15.5px;
    line-height:1.7;
    color:var(--muted);
    padding-left:22px;
    position:relative;
    margin-bottom:10px;
  }
  .legal-section ul li::before{
    content:"";
    position:absolute;
    left:0;
    top:9px;
    width:6px;
    height:6px;
    border-radius:50%;
    background:var(--teal);
  }
  .legal-section strong{ color:var(--text); font-weight:600; }
  .legal-section a{ color:var(--blue); text-decoration:underline; }
  .legal-section a:hover{ color:var(--blue-hover); }

  .contact-card{
    background:var(--panel);
    border:1px solid var(--border);
    border-radius:16px;
    padding:28px 32px;
  }
  .contact-card p{ margin-bottom:6px; color:var(--muted); font-size:15.5px; }
  .contact-card p:last-child{ margin-bottom:0; }

  /* ---------- FOOTER (matches home) ---------- */
  footer{
    border-top:1px solid var(--border);
    padding:80px 32px 40px;
  }
  .footer-grid{
    max-width:var(--container);
    margin:0 auto;
    display:grid;
    grid-template-columns:1.6fr 1fr 1fr;
    gap:40px;
  }
  .footer-brand .eyebrow{
    font-size:13px;
    font-weight:600;
    letter-spacing:2px;
    text-transform:uppercase;
    color:var(--muted-2);
    margin-bottom:18px;
    display:block;
  }
  .footer-brand p{
    font-size:14px;
    line-height:1.7;
    color:var(--muted);
    max-width:340px;
    margin-bottom:24px;
  }
  .footer-copy{
    text-align:center;
    margin-top:28px;
    font-size:13px;
    color:var(--muted-2);
  }
  .footer-col h4{
    font-size:15px;
    font-weight:600;
    margin-bottom:20px;
  }
  .footer-col a{
    display:block;
    font-size:14px;
    color:var(--muted);
    margin-bottom:14px;
    transition:color .15s ease;
  }
  .footer-col a:hover{ color:var(--text); }

  @media (max-width:900px){
    .nav{ padding:16px 20px; }
    .nav-links{ display:none; }
    .menu-toggle{ display:flex; }
    .legal-wrap{ padding:48px 20px 32px; }
    .legal-header{ margin-bottom:36px; padding-bottom:28px; }
    .legal-header h1{ font-size:28px; }
    .toc{ padding:22px 20px; margin-bottom:40px; }
    .toc ol{ grid-template-columns:1fr; }
    .contact-card{ padding:22px 20px; }
    .footer-grid{ grid-template-columns:1fr; gap:40px; }
    footer{ padding:56px 20px 32px; }
  }

.mt-18 { margin-top: 18px; }
.doc-updated { margin-top: 18px; font-size: 13px; color: var(--muted-2); }
