:root{
  --legal-bg:#f3f4f6;
  --legal-paper:#ffffff;
  --legal-ink:#111318;
  --legal-muted:#68717c;
  --legal-line:#e2e5e9;
  --legal-soft:#f7f8fa;
  --legal-accent:#147eff;
  --legal-left:#07090c;
  --legal-left-soft:#10141a;
  --legal-shadow:0 24px 80px rgba(15,23,42,.10);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body.legal-page{
  margin:0;
  min-height:100vh;
  background:var(--legal-bg);
  color:var(--legal-ink);
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  -webkit-font-smoothing:antialiased;
}
.legal-shell{
  min-height:100vh;
  display:grid;
  grid-template-columns:minmax(310px,34vw) minmax(0,1fr);
}
.legal-brand{
  min-height:100vh;
  position:sticky;
  top:0;
  align-self:start;
  height:100vh;
  overflow:hidden;
  padding:48px clamp(32px,4vw,72px);
  background:
    radial-gradient(circle at 18% 16%,rgba(20,126,255,.18),transparent 28%),
    radial-gradient(circle at 82% 72%,rgba(0,224,255,.08),transparent 30%),
    linear-gradient(160deg,#090c11 0%,#050607 72%);
  color:#fff;
  border-right:1px solid rgba(255,255,255,.08);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.legal-brand::before{
  content:"";
  position:absolute;
  inset:0;
  opacity:.26;
  pointer-events:none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);
  background-size:42px 42px;
  mask-image:linear-gradient(to bottom,#000,transparent 90%);
}
.legal-brand-inner,.legal-brand-bottom{position:relative;z-index:1}
.legal-logo{
  width:min(330px,88%);
  height:auto;
  display:block;
  filter:drop-shadow(0 18px 30px rgba(0,0,0,.22));
}
.legal-madeby{
  margin-top:22px;
  color:#858d98;
  font-size:12px;
  font-weight:700;
  letter-spacing:.13em;
  text-transform:uppercase;
}
.legal-madeby strong{
  color:#fff;
  font-weight:800;
  text-transform:none;
  letter-spacing:.03em;
}
.legal-brand-copy{
  margin-top:54px;
  max-width:390px;
  color:#8d96a2;
  font-size:13px;
  line-height:1.75;
}
.legal-brand-kicker{
  display:block;
  margin-bottom:12px;
  color:#4e91ff;
  font-size:10px;
  font-weight:900;
  letter-spacing:.18em;
  text-transform:uppercase;
}
.legal-brand-nav{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin-top:28px;
}
.legal-brand-nav a,.legal-back{
  min-height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 13px;
  border-radius:9px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.035);
  color:#aab1bb;
  font-size:11px;
  font-weight:750;
  text-decoration:none;
  transition:.18s ease;
}
.legal-brand-nav a:hover,.legal-back:hover{
  color:#fff;
  border-color:rgba(255,255,255,.22);
  background:rgba(255,255,255,.075);
}
.legal-brand-bottom{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
}
.legal-mini{
  color:#59616c;
  font-size:10px;
  line-height:1.55;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.legal-brand .top-actions{
  display:flex;
  gap:8px;
}
.legal-brand .urbx-theme-toggle{
  border-color:rgba(255,255,255,.10)!important;
  background:rgba(255,255,255,.045)!important;
  color:#fff!important;
}
.legal-document-wrap{
  min-width:0;
  padding:clamp(26px,4vw,64px) clamp(22px,5vw,84px) 80px;
}
.legal-document{
  width:min(900px,100%);
  margin:0 auto;
  background:var(--legal-paper);
  border:1px solid var(--legal-line);
  border-radius:20px;
  box-shadow:var(--legal-shadow);
  overflow:hidden;
}
.legal-head{
  padding:clamp(32px,5vw,64px) clamp(26px,5vw,64px) 34px;
  border-bottom:1px solid var(--legal-line);
}
.legal-eyebrow{
  color:#66717e;
  font-size:10px;
  font-weight:900;
  letter-spacing:.18em;
  text-transform:uppercase;
}
.legal-head h1{
  margin:13px 0 10px;
  font-size:clamp(34px,4.4vw,58px);
  line-height:.98;
  letter-spacing:-.05em;
  color:#111318;
}
.legal-head p{
  margin:0;
  max-width:700px;
  color:#6c7580;
  font-size:13px;
  line-height:1.75;
}
.legal-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:23px;
}
.legal-meta span{
  padding:7px 10px;
  border-radius:999px;
  background:#f1f3f5;
  color:#626b76;
  font-size:9px;
  font-weight:850;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.legal-body{
  padding:28px clamp(26px,5vw,64px) 58px;
}
.legal-toc{
  margin:0 0 34px;
  padding:18px;
  border-radius:13px;
  border:1px solid var(--legal-line);
  background:var(--legal-soft);
}
.legal-toc-label{
  margin-bottom:10px;
  color:#717a85;
  font-size:9px;
  font-weight:900;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.legal-toc-links{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px 18px;
}
.legal-toc a{
  color:#3f4853;
  font-size:11px;
  line-height:1.45;
  text-decoration:none;
}
.legal-toc a:hover{color:#147eff}
.legal-section{
  padding:28px 0;
  border-bottom:1px solid var(--legal-line);
  scroll-margin-top:24px;
}
.legal-section:last-child{border-bottom:0}
.legal-section-number{
  display:block;
  margin-bottom:8px;
  color:#147eff;
  font-size:9px;
  font-weight:950;
  letter-spacing:.15em;
}
.legal-section h2{
  margin:0 0 14px;
  color:#16191e;
  font-size:20px;
  line-height:1.2;
  letter-spacing:-.025em;
}
.legal-section h3{
  margin:21px 0 8px;
  color:#242a32;
  font-size:13px;
  line-height:1.35;
}
.legal-section p,
.legal-section li{
  color:#555f6a;
  font-size:12px;
  line-height:1.82;
}
.legal-section p{margin:9px 0}
.legal-section ul,
.legal-section ol{margin:10px 0;padding-left:19px}
.legal-section li+li{margin-top:6px}
.legal-callout{
  margin:18px 0;
  padding:17px 18px;
  border-radius:11px;
  border:1px solid #dce4ef;
  border-left:3px solid #147eff;
  background:#f7faff;
}
.legal-callout strong{
  display:block;
  margin-bottom:5px;
  color:#1f2935;
  font-size:11px;
}
.legal-callout p{margin:0;color:#5f6974}
.legal-warning{
  border-color:#eadfcf;
  border-left-color:#c48424;
  background:#fffaf3;
}
.legal-provider{
  margin:12px 0;
  padding:14px 16px;
  border:1px solid var(--legal-line);
  border-radius:10px;
  background:#fafbfc;
}
.legal-provider strong{
  display:block;
  color:#2c333c;
  font-size:11px;
}
.legal-provider span{
  display:block;
  margin-top:4px;
  color:#69727d;
  font-size:10.5px;
  line-height:1.65;
}
.legal-provider a,.legal-section a{
  color:#276fc7;
  text-underline-offset:2px;
}
.legal-contact{
  padding:20px;
  border-radius:13px;
  background:#101318;
  color:#fff;
}
.legal-contact strong{display:block;font-size:13px}
.legal-contact p{color:#929aa5;margin:6px 0 0}
.legal-contact a{color:#fff}
.legal-footer{
  padding:21px clamp(26px,5vw,64px);
  border-top:1px solid var(--legal-line);
  background:#fafbfc;
  color:#7a838e;
  font-size:9.5px;
  line-height:1.6;
}
.legal-footer-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.legal-footer a{color:#4e5864;text-decoration:none}
.legal-footer a:hover{text-decoration:underline}

@media(max-width:900px){
  .legal-shell{display:block}
  .legal-brand{
    position:relative;
    height:auto;
    min-height:360px;
    padding:32px 24px;
  }
  .legal-logo{width:min(300px,80%)}
  .legal-brand-copy{margin-top:35px}
  .legal-document-wrap{padding:18px 12px 45px}
  .legal-document{border-radius:15px}
}
@media(max-width:620px){
  .legal-brand{min-height:310px}
  .legal-toc-links{grid-template-columns:1fr}
  .legal-head,.legal-body{padding-left:22px;padding-right:22px}
  .legal-footer-row{align-items:flex-start;flex-direction:column}
}

/* Integrates with URBXmap white/dark theme toggle without losing the official legal-document look. */
html[data-theme="dark"] body.legal-page{
  --legal-bg:#090b0e;
  --legal-paper:#101317;
  --legal-ink:#f4f5f6;
  --legal-muted:#9299a2;
  --legal-line:rgba(255,255,255,.085);
  --legal-soft:#14181d;
  --legal-shadow:0 24px 80px rgba(0,0,0,.22);
  background:#090b0e!important;
  color:#f4f5f6!important;
}
html[data-theme="dark"] .legal-document{background:#101317;border-color:rgba(255,255,255,.085)}
html[data-theme="dark"] .legal-head{border-color:rgba(255,255,255,.085)}
html[data-theme="dark"] .legal-head h1,
html[data-theme="dark"] .legal-section h2,
html[data-theme="dark"] .legal-section h3{color:#f3f4f5}
html[data-theme="dark"] .legal-head p,
html[data-theme="dark"] .legal-section p,
html[data-theme="dark"] .legal-section li{color:#9199a4}
html[data-theme="dark"] .legal-meta span{background:#171b20;color:#858e99}
html[data-theme="dark"] .legal-toc{background:#14181d;border-color:rgba(255,255,255,.085)}
html[data-theme="dark"] .legal-toc a{color:#a0a7b0}
html[data-theme="dark"] .legal-section{border-color:rgba(255,255,255,.075)}
html[data-theme="dark"] .legal-callout{background:#111923;border-color:#1a2b40}
html[data-theme="dark"] .legal-callout strong{color:#dce7f5}
html[data-theme="dark"] .legal-callout p{color:#8f99a5}
html[data-theme="dark"] .legal-warning{background:#19150e;border-color:#302617;border-left-color:#c48424}
html[data-theme="dark"] .legal-provider{background:#13171b;border-color:rgba(255,255,255,.08)}
html[data-theme="dark"] .legal-provider strong{color:#dce0e5}
html[data-theme="dark"] .legal-provider span{color:#8d959f}
html[data-theme="dark"] .legal-footer{background:#0e1115;border-color:rgba(255,255,255,.08);color:#737c87}
html[data-theme="dark"] .legal-footer a{color:#9ca5af}
