.legal-body {
  margin: 0;
  background: #f6f7fb;
  color: #142033;
  font-family: Inter, "Segoe UI", sans-serif;
  line-height: 1.6;
}
.legal-top, .legal-foot {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 24px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.legal-brand {
  color: #142033;
  font-weight: 700;
  text-decoration: none;
}
.legal-nav { display: flex; gap: 16px; }
.legal-nav a, .legal-doc a, .legal-foot a, .portal-legal a, .staff-legal a, .help-footer a {
  color: #1d4ed8;
}
.legal-nav a[aria-current="page"] { font-weight: 700; text-decoration: none; }
.legal-doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 24px 48px;
}
.legal-doc h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 8px; }
.legal-kicker { color: #526077; margin-top: 0; }
.legal-doc h2 { font-size: 1.15rem; margin: 28px 0 8px; }
.legal-doc ul { padding-left: 1.2rem; }
.legal-doc li { margin: 6px 0; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; border-bottom: 1px solid #e2e6ef; padding: 10px 8px; }
.legal-foot { padding-bottom: 40px; color: #526077; display: block; }
html.cookie-locked,
html.cookie-locked body { overflow: hidden; }
.cookie-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 10, 23, 0.72);
  backdrop-filter: blur(10px);
}
.cookie-gate[hidden] { display: none !important; }
.cookie-gate-card {
  width: min(460px, 100%);
  padding: 28px 28px 24px;
  border-radius: 20px;
  color: #E8ECF4;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(124, 92, 255, 0.22), transparent 55%),
    linear-gradient(180deg, #141c31 0%, #0c1324 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 30px 80px rgba(0, 0, 0, 0.45);
  font-family: Inter, "Segoe UI", sans-serif;
}
.cookie-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9B61FF;
}
.cookie-gate-card h2 {
  margin: 0 0 10px;
  font-size: 1.45rem;
  line-height: 1.25;
  font-weight: 700;
}
.cookie-gate-card p { margin: 0; color: #C5CDDA; line-height: 1.55; }
.cookie-gate-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 18px 0 22px;
}
.cookie-gate-links a {
  color: #9BB0FF;
  font-size: 0.92rem;
  text-underline-offset: 3px;
}
.cookie-notice-ok {
  width: 100%;
  border: 0;
  cursor: pointer;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 650;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #587CFF 0%, #7C5CFF 55%, #9B61FF 100%);
  box-shadow: 0 8px 24px rgba(88, 124, 255, 0.28);
}
.cookie-notice-ok:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.portal-legal, .staff-legal {
  padding: 8px 16px 16px;
  font-size: 12px;
}
.portal-legal a { color: rgba(255,255,255,.72); }
.portal-legal a, .staff-legal a { margin-right: 10px; }
.staff-legal { color: #64748b; }
@media (max-width: 640px) {
  .legal-top { flex-direction: column; align-items: flex-start; }
}
