@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@600&family=Fredoka:wght@500;600;700&family=Nunito:wght@800;900;1000&display=swap");

:root{
  --legal-ink:#1c1e21;
  --legal-muted:#65676b;
  --legal-line:#e4e6eb;
  --legal-link:#0866ff;
  --legal-red:#e92d39;
  --legal-sidebar:36%;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body.legal-page{margin:0;background:#fff;color:var(--legal-ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;font-size:16px;line-height:1.48}
a{color:var(--legal-link)}
.legal-shell{min-height:100vh;display:grid;grid-template-columns:minmax(320px,var(--legal-sidebar)) minmax(0,1fr)}
.legal-sidebar{border-right:1px solid var(--legal-line);background:#fff;padding:24px 42px 48px;position:relative}
.legal-sidebar-inner{position:sticky;top:22px;max-width:360px;margin-left:auto}
.legal-brand{display:inline-flex;align-items:center;gap:9px;color:#121212;text-decoration:none;font-weight:800;font-size:21px;margin-bottom:3px}
.legal-brand img{width:28px;height:28px;object-fit:contain;display:block}
.legal-brand-word em{font-style:normal;color:var(--legal-red)}
.legal-sidebar h1{margin:3px 0 26px;font-size:25px;line-height:1.2;letter-spacing:-.01em}
.legal-nav-title{display:flex;align-items:center;gap:12px;font-size:15px;font-weight:650;margin:0 0 17px}
.legal-nav{list-style:none;margin:0;padding:0 0 0 34px}
.legal-nav li{margin:0}
.legal-nav a{display:block;padding:9px 0;color:#252525;text-decoration:none;font-size:15px;line-height:1.25}
.legal-nav a:hover,.legal-nav a:focus-visible{color:var(--legal-link);text-decoration:underline;text-underline-offset:3px}
.legal-main{padding:48px clamp(34px,5vw,72px) 80px;min-width:0}
.legal-content{max-width:700px}
.legal-content h2{font-size:28px;line-height:1.2;margin:0 0 2px;letter-spacing:-.015em}
.legal-effective{color:var(--legal-muted);margin:0 0 13px;font-size:16px}
.legal-intro{margin-bottom:30px}
.legal-content section{scroll-margin-top:28px;margin:0 0 34px}
.legal-content section>h3{font-size:24px;line-height:1.25;margin:0 0 10px;letter-spacing:-.01em}
.legal-content h4{font-size:18px;line-height:1.3;margin:24px 0 8px}
.legal-content p{margin:0 0 14px}
.legal-content ul{margin:7px 0 16px;padding-left:24px}
.legal-content li{margin:5px 0}
.legal-rule{border:0;border-top:1px solid var(--legal-line);margin:26px 0 30px}
.legal-crosslink{font-weight:600}
.legal-contact{font-style:normal;line-height:1.65}
.legal-bottom{margin-top:54px;padding-top:20px;border-top:1px solid var(--legal-line);font-size:13px;color:var(--legal-muted)}
.legal-bottom a{color:#4b5563}
@media(max-width:860px){
  .legal-shell{display:block}
  .legal-sidebar{border-right:0;border-bottom:1px solid var(--legal-line);padding:20px 22px 18px}
  .legal-sidebar-inner{position:static;max-width:none;margin:0}
  .legal-sidebar h1{margin-bottom:12px;font-size:23px}
  .legal-nav-title{display:none}
  .legal-nav{padding:0;display:flex;gap:8px 16px;overflow-x:auto;white-space:nowrap;padding-bottom:4px}
  .legal-nav a{padding:4px 0;font-size:14px}
  .legal-main{padding:30px 22px 60px}
  .legal-content{max-width:none}
}
@media print{
  .legal-sidebar{display:none}
  .legal-shell{display:block}
  .legal-main{padding:0}
  .legal-content{max-width:none}
  a{color:inherit;text-decoration:none}
}


/* 2026-09-01: shared public navbar, matching the Contact page */
.legal-topbar{
  height:54px;display:flex;align-items:center;justify-content:space-between;
  padding:0 44px 0 46px;background:#f4f4f3;
  background-image:linear-gradient(rgba(255,255,255,.45),rgba(255,255,255,.45));
  border-bottom:1px solid #ececec;
}
.legal-topbar-brand{display:inline-flex;align-items:center;gap:8px;color:#102a55;text-decoration:none;font-weight:900;font-size:20px;letter-spacing:-.5px}
.legal-topbar-brand img{width:28px;height:28px;object-fit:contain}
.legal-topbar-brand em{font-style:normal;color:#e3182d}
.legal-account-actions{display:flex;align-items:center;gap:10px}
.legal-account-actions a{min-height:29px;padding:0 15px;border-radius:18px;display:inline-flex;align-items:center;justify-content:center;gap:7px;text-decoration:none;font-size:11px;font-weight:800;white-space:nowrap}
.legal-account-actions img{width:12px;height:12px}
.legal-login{color:#e3182d;border:1px solid #e3182d;background:#fff}
.legal-join{color:#fff!important;border:1px solid #e3182d;background:#e3182d}
.legal-nav-title img{width:24px;height:24px;display:block;flex:0 0 24px}
.legal-sidebar-inner{top:76px}
@media(max-width:620px){
  .legal-topbar{height:60px;padding:0 16px}
  .legal-topbar-brand{font-size:18px}
  .legal-topbar-brand img{width:26px;height:26px}
  .legal-account-actions{gap:6px}
  .legal-account-actions a{padding:0 10px;font-size:10px}
  .legal-account-actions img{display:none}
}
@media print{
  .legal-topbar{display:none}
}


/* 2026-09-01 FINAL NAVBAR PARITY
   Match landing page exactly, except centre navigation is intentionally absent. */
@media (min-width:901px){
  .legal-topbar{
    position:relative;
    z-index:20;
    height:74px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 clamp(24px,4vw,62px);
    background-color:#fff;
    background-image:url('paper-texture.png?v=20260831-0537');
    background-size:612px 312px;
    background-repeat:repeat;
    color:#071b50;
    border-bottom:0;
    box-shadow:none;
  }
  .legal-topbar-brand{
    display:flex;
    align-items:center;
    gap:8px;
    color:#071b50;
    text-decoration:none;
    font:700 clamp(27px,1.8vw,33px)/1 'Fredoka',sans-serif;
    letter-spacing:-1px;
    white-space:nowrap;
  }
  .legal-topbar-brand em{color:#df202b;font-style:normal}
  .legal-topbar-brand img{width:42px;height:42px;object-fit:contain;border-radius:0}
  .legal-account-actions{display:flex;align-items:center;gap:12px}
  .legal-account-actions a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    white-space:nowrap;
    text-decoration:none;
    font:800 13px/1 'Nunito',sans-serif;
  }
  .legal-account-actions img{width:18px;height:18px;display:block}
  .legal-login{
    min-height:38px;
    padding:0 17px;
    border:1.8px solid #df202b;
    border-radius:24px;
    color:#df202b!important;
    background:rgba(255,255,255,.60);
  }
  .legal-login img{
    filter:invert(19%) sepia(99%) saturate(4024%) hue-rotate(347deg) brightness(88%) contrast(92%);
  }
  .legal-join{
    min-height:40px;
    padding:0 19px;
    border:0;
    border-radius:24px;
    background:linear-gradient(110deg,#c91526,#dc1f2d);
    color:#fff!important;
  }
  .legal-join img{
    width:19px;height:19px;
    filter:brightness(0) invert(1);
  }
}


/* 2026-09-01 — EXACT EFFECTIVE landing-page account-button values.
   Copied from the final compact desktop override in landing.css. */
@media (min-width:901px){
  .contact-account-actions,
  .legal-account-actions{
    gap:12px!important;
  }

  .contact-account-actions a,
  .legal-account-actions a{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:7px!important;
    white-space:nowrap!important;
    text-decoration:none!important;
    font-family:'Nunito',sans-serif!important;
    font-weight:800!important;
    font-size:13px!important;
    line-height:1!important;
  }

  .contact-account-actions > a > img,
  .legal-account-actions > a > img{
    width:18px!important;
    height:18px!important;
    display:block!important;
  }

  .contact-login,
  .legal-login{
    min-height:38px!important;
    height:auto!important;
    padding:0 17px!important;
    border:1.8px solid #df202b!important;
    border-radius:24px!important;
    color:#df202b!important;
    background:rgba(255,255,255,.60)!important;
    box-sizing:border-box!important;
  }

  .contact-join,
  .legal-join{
    min-height:40px!important;
    height:auto!important;
    padding:0 19px!important;
    border:0!important;
    border-radius:24px!important;
    background:linear-gradient(110deg,#c91526,#dc1f2d)!important;
    color:#fff!important;
    box-sizing:border-box!important;
  }

  .contact-join > img,
  .legal-join > img{
    width:19px!important;
    height:19px!important;
    filter:brightness(0) invert(1)!important;
  }
}
