.legal-hero {
  position: relative;
  padding: 130px 0 72px;
  overflow: hidden;
  background: linear-gradient(160deg, #1a0a2e 0%, #0f0618 45%, #120820 100%);
  border-bottom: 1px solid rgba(168,85,247,.15);
}
.legal-hero::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(620px 340px at 80% -10%, rgba(168,85,247,.28), transparent 58%),
    radial-gradient(480px 280px at 0% 100%, rgba(244,114,182,.14), transparent 55%);
}
.legal-hero::after {
  content: '';
  position: absolute; inset: 0; pointer-events: none; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}
.legal-hero-inner {
  position: relative; z-index: 1;
  max-width: 720px; margin: 0 auto; text-align: center;
}
.legal-breadcrumb {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,.45);
  margin-bottom: 22px;
}
.legal-breadcrumb a {
  color: #D8B4FE; font-weight: 600; text-decoration: none;
  transition: color .15s;
}
.legal-breadcrumb a:hover { color: #fff; }
.legal-breadcrumb svg {
  width: 14px; height: 14px; stroke: rgba(255,255,255,.3);
  fill: none; stroke-width: 2;
}
.legal-breadcrumb span { color: rgba(255,255,255,.7); }
.legal-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: #D8B4FE; margin-bottom: 14px;
}
.legal-eyebrow span {
  width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg,#A855F7,#F472B6);
  box-shadow: 0 0 10px rgba(168,85,247,.9);
}
.legal-hero h1 {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800; letter-spacing: -.02em; line-height: 1.08;
  color: #fff; margin-bottom: 14px;
}
.legal-hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #E9D5FF, #F9A8D4);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.legal-hero-lead {
  font-size: 15px; color: rgba(255,255,255,.55);
  line-height: 1.65; max-width: 540px; margin: 0 auto 20px;
}
.legal-meta {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  justify-content: center;
}
.legal-meta-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 100px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,.8);
}
.legal-meta-pill svg { flex-shrink: 0; opacity: .7; }

.legal-body { padding: 56px 0 80px; }
.legal-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) {
  .legal-grid { grid-template-columns: 1fr; gap: 28px; }
}

.legal-toc {
  position: sticky; top: 96px;
}
@media (max-width: 900px) {
  .legal-toc { position: static; }
}
.legal-toc-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 18px;
  padding: 22px 20px;
  backdrop-filter: blur(12px);
}
.legal-toc-title {
  font-size: 10px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text3);
  margin-bottom: 14px;
}
.legal-toc-link {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 10px; margin: 0 -10px;
  border-radius: 10px;
  font-size: 13px; font-weight: 500; color: var(--text3);
  text-decoration: none; transition: background .15s, color .15s;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.legal-toc-link:last-child { border-bottom: none; }
.legal-toc-link:hover { background: rgba(168,85,247,.08); color: var(--text); }
.legal-toc-link.is-active {
  background: rgba(168,85,247,.12);
  color: #C084FC; font-weight: 600;
}
.legal-toc-num {
  font-size: 10px; font-weight: 800; color: var(--text3);
  min-width: 18px; padding-top: 1px;
}
.legal-toc-link.is-active .legal-toc-num { color: #C084FC; }

.legal-related {
  margin-top: 20px; padding-top: 18px;
  border-top: 1px solid var(--border2);
}
.legal-related-title {
  font-size: 10px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text3);
  margin-bottom: 10px;
}
.legal-related a {
  display: block; font-size: 12.5px; font-weight: 600;
  color: var(--purple); text-decoration: none;
  padding: 5px 0; transition: opacity .15s;
}
.legal-related a:hover { opacity: .8; }

.legal-content { max-width: 760px; min-width: 0; }
.legal-section {
  scroll-margin-top: 100px;
  margin-bottom: 32px;
  padding: 26px 28px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 18px;
  transition: border-color .2s;
}
.legal-section:hover { border-color: rgba(168,85,247,.25); }
.legal-section-head {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 14px;
}
.legal-section-num {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
  background: rgba(168,85,247,.15); border: 1px solid rgba(168,85,247,.28);
  color: #C084FC;
}
.legal-section h2 {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.05rem; font-weight: 700;
  color: var(--text); line-height: 1.35;
  padding-top: 6px;
}
.legal-section p {
  color: var(--text3); line-height: 1.85; font-size: 15px;
}
.legal-section p a {
  color: var(--purple); font-weight: 600; text-decoration: none;
}
.legal-section p a:hover { text-decoration: underline; }

.legal-cta {
  margin-top: 12px;
  padding: 28px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(168,85,247,.12), rgba(244,114,182,.06));
  border: 1px solid rgba(168,85,247,.25);
  text-align: center;
}
.legal-cta h3 {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--text); margin-bottom: 8px;
}
.legal-cta p {
  font-size: 14px; color: var(--text3); margin-bottom: 18px; line-height: 1.6;
}
.legal-cta-btns {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.legal-cta-btns a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 100px;
  font-size: 13px; font-weight: 700; text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.legal-cta-btns .primary {
  background: linear-gradient(135deg,#A855F7,#F472B6);
  color: #fff; box-shadow: 0 6px 22px rgba(168,85,247,.35);
}
.legal-cta-btns .primary:hover { transform: translateY(-1px); }
.legal-cta-btns .ghost {
  background: transparent; border: 1px solid var(--border);
  color: var(--text);
}
.legal-cta-btns .ghost:hover { background: var(--surface); }

html[data-theme="light"] .legal-hero {
  background: linear-gradient(160deg, #FCE7F3 0%, #F3E8FF 50%, #EDE9FE 100%);
  border-bottom-color: rgba(124,58,237,.14);
}
html[data-theme="light"] .legal-hero h1 { color: #1B1426; }
html[data-theme="light"] .legal-hero-lead { color: #6E6685; }
html[data-theme="light"] .legal-breadcrumb { color: #807793; }
html[data-theme="light"] .legal-breadcrumb a { color: #7C3AED; }
html[data-theme="light"] .legal-breadcrumb span { color: #43394F; }
html[data-theme="light"] .legal-eyebrow { color: #7C3AED; }
html[data-theme="light"] .legal-meta-pill {
  background: rgba(124,58,237,.08); border-color: rgba(124,58,237,.15);
  color: #43394F;
}
html[data-theme="light"] .legal-toc-link:hover { background: rgba(124,58,237,.08); }
html[data-theme="light"] .legal-toc-link.is-active {
  background: rgba(124,58,237,.1); color: #7C3AED;
}
html[data-theme="light"] .legal-toc-link.is-active .legal-toc-num { color: #7C3AED; }
html[data-theme="light"] .legal-section-num {
  background: rgba(124,58,237,.1); border-color: rgba(124,58,237,.22);
  color: #7C3AED;
}
html[data-theme="light"] .legal-section:hover { border-color: rgba(124,58,237,.25); }
html[data-theme="light"] .legal-cta {
  background: linear-gradient(135deg, rgba(124,58,237,.08), rgba(244,114,182,.05));
  border-color: rgba(124,58,237,.2);
}
