.legal-main {
  width:min(1280px, calc(100% - 36px));
  margin:0 auto;
  padding:0 0 6px;
}
.legal-notice {
  margin:0 0 16px;
  border-radius:22px;
  padding:14px 18px;
  font-size:14px;
  font-weight:850;
  border:1px solid var(--line);
  background:#fff;
  box-shadow:0 18px 40px rgba(96,165,250,.12);
}
.legal-notice.success { color:#047857; background:#ecfdf5; border-color:#a7f3d0; }
.legal-notice.error { color:#be123c; background:#fff1f2; border-color:#fecdd3; }
.legal-hero {
  position:relative;
  overflow:hidden;
  border-radius:36px;
  background:linear-gradient(135deg,#020617,#172554,#1d4ed8);
  color:#fff;
  padding:38px;
  box-shadow:0 32px 90px rgba(15,23,42,.22);
}
.legal-hero::before {
  content:"";
  position:absolute;
  right:-80px;
  top:-96px;
  width:290px;
  height:290px;
  border-radius:999px;
  background:rgba(103,232,249,.20);
  filter:blur(42px);
}
.legal-hero.compact { min-height:320px; display:grid; align-items:center; }
.legal-hero > * { position:relative; z-index:1; }
.legal-hero {
  display:grid;
  grid-template-columns:1.25fr .75fr;
  gap:32px;
  align-items:stretch;
}
.legal-kicker {
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.10);
  border-radius:999px;
  padding:10px 14px;
  color:#dbeafe;
  font-size:11px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.18em;
}
.legal-hero h1 {
  max-width:850px;
  margin:24px 0 0;
  font-size:clamp(42px,6vw,70px);
  line-height:.94;
  letter-spacing:-.07em;
  font-weight:950;
}
.legal-hero p {
  max-width:780px;
  margin:22px 0 0;
  color:rgba(239,246,255,.92);
  font-size:17px;
  line-height:1.75;
}
.legal-meta {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:28px;
}
.legal-meta span {
  border-radius:999px;
  background:rgba(255,255,255,.10);
  padding:9px 13px;
  color:#dbeafe;
  font-size:12px;
  font-weight:850;
}
.legal-hero-card {
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.10);
  border-radius:30px;
  padding:24px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12);
}
.legal-hero-card strong {
  font-size:24px;
  line-height:1.1;
  font-weight:950;
  letter-spacing:-.04em;
}
.legal-hero-card p {
  margin:12px 0 0;
  font-size:14px;
  line-height:1.7;
  color:#dbeafe;
}
.legal-hero-card a {
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:18px;
  color:#fff;
  text-decoration:none;
  font-weight:950;
}
.legal-content-grid {
  display:grid;
  grid-template-columns:minmax(0,1fr) 340px;
  gap:24px;
  margin-top:24px;
}
.legal-content-card,
.legal-toc-card,
.legal-help-card {
  border:1px solid var(--line);
  background:#fff;
  border-radius:32px;
  box-shadow:0 24px 60px rgba(96,165,250,.16);
}
.legal-content-card { overflow:hidden; }
.legal-content-card .policy-section {
  display:grid;
  grid-template-columns:68px 1fr;
  gap:20px;
  padding:26px;
  border-bottom:1px solid #eff6ff;
  scroll-margin-top:24px;
}
.legal-content-card .policy-section:last-child { border-bottom:0; }
.legal-content-card .section-number {
  display:grid;
  place-items:center;
  width:50px;
  height:50px;
  border-radius:18px;
  background:#eff6ff;
  color:#1d4ed8;
  font-weight:950;
}
.legal-content-card h2 {
  margin:0;
  color:#0f172a;
  font-size:24px;
  line-height:1.15;
  letter-spacing:-.04em;
  font-weight:950;
  scroll-margin-top:24px;
}
.legal-content-card p {
  margin:12px 0 0;
  color:#475569;
  font-size:15px;
  line-height:1.82;
}
.legal-content-card a { color:#1d4ed8; font-weight:850; }
.legal-side-stack {
  display:grid;
  align-content:start;
  gap:18px;
  position:sticky;
  top:18px;
}
.legal-toc-card,
.legal-help-card { padding:22px; }
.legal-side-kicker {
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:14px;
  color:#2563eb;
  font-size:11px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.18em;
}
.legal-toc-card a {
  display:block;
  cursor:pointer;
  border-radius:14px;
  padding:10px 12px;
  color:#475569;
  text-decoration:none;
  font-size:14px;
  font-weight:850;
}
.legal-toc-card a:hover { background:#eff6ff; color:#1d4ed8; }
.legal-help-card {
  background:#eff6ff;
}
.legal-help-card p,
.legal-help-card small {
  color:#475569;
  font-size:14px;
  line-height:1.7;
}
.legal-help-card p { margin:0 0 16px; }
.legal-help-card small { display:block; margin-top:12px; }
.legal-help-card small a { color:#1d4ed8; font-weight:900; }
.legal-field {
  display:block;
  margin-bottom:13px;
}
.legal-field span {
  display:block;
  margin-bottom:7px;
  color:#64748b;
  font-size:11px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.14em;
}
.legal-field input,
.legal-field textarea {
  width:100%;
  border:1px solid var(--line);
  border-radius:17px;
  background:#fff;
  color:#0f172a;
  padding:12px 14px;
  outline:none;
  font:700 14px/1.4 "Segoe UI", system-ui, sans-serif;
  transition:.18s;
}
.legal-field input { height:44px; }
.legal-field textarea { min-height:116px; resize:vertical; }
.legal-field input:focus,
.legal-field textarea:focus {
  border-color:#93c5fd;
  box-shadow:0 0 0 4px rgba(147,197,253,.28);
}
.legal-help-card button {
  width:100%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  cursor:pointer;
  border:0;
  border-radius:999px;
  background:#1d4ed8;
  color:#fff;
  padding:13px 18px;
  font-size:14px;
  font-weight:950;
  box-shadow:0 14px 28px rgba(37,99,235,.20);
  transition:.18s;
}
.legal-help-card button:hover { transform:translateY(-1px); background:#1e40af; }
.legal-hp-field {
  position:absolute!important;
  left:-9999px!important;
  width:1px!important;
  height:1px!important;
  opacity:0!important;
  pointer-events:none!important;
}
@media(max-width:1000px) {
  .legal-hero,
  .legal-content-grid { grid-template-columns:1fr; }
  .legal-side-stack { position:static; order:-1; }
}
@media(max-width:640px) {
  .legal-main { width:min(1280px, calc(100% - 28px)); }
  .legal-hero { padding:26px; border-radius:28px; }
  .legal-content-card .policy-section { grid-template-columns:1fr; padding:22px; }
}

.legal-form-status {
  border-radius:16px;
  padding:12px 14px;
  margin:0 0 14px;
  font-size:13px;
  font-weight:850;
  line-height:1.55;
}
.legal-form-status.success {
  border:1px solid #a7f3d0;
  background:#ecfdf5;
  color:#047857;
}
.legal-form-status.error {
  border:1px solid #fecdd3;
  background:#fff1f2;
  color:#be123c;
}
.legal-help-card button[disabled] {
  cursor:wait;
  opacity:.78;
  transform:none!important;
}
