
:root{
  --legal-dark:#071c19;
  --legal-ink:#0d1d1a;
  --legal-muted:#58706a;
  --legal-accent:#01B3EF;
  --legal-line:#e9eeec;
  --legal-max:1280px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;background:#fff;-webkit-font-smoothing:antialiased}
body{font-family:"Sora",sans-serif;color:var(--legal-ink);background:#fff;line-height:1.7;font-size:15px}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
::selection{background:#01B3EF;color:#fff}

.legal-hero{
  position:relative;
  min-height:330px;
  color:#fff;
  background:#0B0C0E url('../assets/img/legal-background.webp') center/cover no-repeat;
  overflow:hidden;
}
.legal-hero::after{content:"";position:absolute;inset:0;background:#011eca08;pointer-events:none}
.legal-shell{width:min(var(--legal-max),calc(100% - 48px));margin-inline:auto;position:relative;z-index:1}
.legal-hero-top{padding-top:28px}
.legal-logo{width:128px;height:auto}
.legal-hero-content{padding:58px 0 64px;max-width:760px}
.legal-kicker{font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:#7ee7ff;font-weight:700;margin-bottom:13px}
.legal-hero h1{font-size:clamp(38px,5vw,62px);line-height:1.05;letter-spacing:-.035em;font-weight:600;margin-bottom:18px}
.legal-hero p{font-size:15px;color:rgba(255,255,255,.72);max-width:720px}
.legal-updated{display:inline-flex;align-items:center;gap:8px;margin-top:22px;padding:7px 12px;border:1px solid rgba(255,255,255,.12);border-radius:999px;background:rgba(255,255,255,.06);font-size:11px;color:rgba(255,255,255,.72)}
.legal-updated::before{content:"";width:6px;height:6px;border-radius:50%;background:#01B3EF;box-shadow:0 0 12px rgba(1,179,239,.55)}

.legal-main{background:#fff}
.legal-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:76px;padding:66px 0 92px}
.legal-toc{position:sticky;top:28px;align-self:start}
.legal-toc-title{font-size:10px;letter-spacing:.18em;text-transform:uppercase;color:#8a9b97;font-weight:700;margin-bottom:18px}
.legal-toc nav{display:grid;gap:11px}
.legal-toc a{display:grid;grid-template-columns:24px 1fr;gap:9px;font-size:11px;line-height:1.45;color:#58706a;transition:color .22s ease,transform .22s ease}
.legal-toc a span:first-child{color:#01a6d8;font-size:10px;font-weight:700}
.legal-toc a:hover{color:#071c19;transform:translateX(3px)}

.legal-content{max-width:850px}
.legal-section{scroll-margin-top:26px;padding:0 0 34px;margin:0 0 34px;border-bottom:1px solid var(--legal-line)}
.legal-section:last-child{border-bottom:0;margin-bottom:0;padding-bottom:0}
.legal-section-head{display:grid;grid-template-columns:34px 1fr;gap:8px;align-items:start;margin-bottom:16px}
.legal-num{font-size:11px;font-weight:700;color:#01a6d8;padding-top:6px}
.legal-section h2{font-size:clamp(20px,2.2vw,27px);line-height:1.2;letter-spacing:-.025em;font-weight:500;color:#0a1916}
.legal-section p{color:#334b45;margin:0 0 13px}
.legal-section p:last-child{margin-bottom:0}
.legal-section ul{margin:9px 0 0 17px;display:grid;gap:9px;color:#334b45}
.legal-section li{padding-left:7px}
.legal-section li::marker{color:#01a6d8}
.legal-section a{text-decoration:underline;text-decoration-color:rgba(1,179,239,.45);text-underline-offset:3px}
.legal-section strong{font-weight:600;color:#122823}

.legal-footer{background:#071713;color:#91a49f;border-top:1px solid rgba(255,255,255,.08)}
.legal-footer-inner{width:min(var(--legal-max),calc(100% - 48px));margin:auto;min-height:86px;display:flex;align-items:center;justify-content:space-between;gap:28px;font-size:12px}
.legal-footer-copy{white-space:nowrap}
.legal-footer-links{display:flex;align-items:center;justify-content:flex-end;gap:28px;flex-wrap:wrap}
.legal-footer a{transition:color .2s ease}
.legal-footer a:hover{color:#fff}

@media(max-width:800px){
  .legal-shell{width:calc(100% - 40px)}
  .legal-hero{min-height:300px}
  .legal-hero-top{padding-top:22px}.legal-logo{width:110px}
  .legal-hero-content{padding:46px 0 52px}.legal-hero h1{font-size:38px}.legal-hero p{font-size:13px}
  .legal-layout{grid-template-columns:1fr;gap:0;padding:46px 0 62px}
  .legal-toc{display:none}
  .legal-content{max-width:none}
  .legal-section{padding-bottom:28px;margin-bottom:28px}
  .legal-section-head{grid-template-columns:30px 1fr}.legal-section h2{font-size:22px}.legal-section p,.legal-section li{font-size:13px}
  .legal-footer-inner{width:calc(100% - 40px);padding:24px 0;min-height:0;flex-direction:column;align-items:flex-start;gap:14px}
  .legal-footer-copy{white-space:normal}.legal-footer-links{justify-content:flex-start;gap:12px 20px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}


/* Home navbar/footer integration on legal pages */
.legal-hero{padding-top:var(--nav-h,68px)}
.legal-hero-content{padding-top:58px}
.legal-main{position:relative;z-index:1}
.footer{z-index:12}
@media(max-width:809.98px){
  .legal-hero{padding-top:var(--nav-h,68px)}
  .legal-hero-content{padding-top:46px}
}
