.legal-auth-body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: #030405;
  color: #f5f7fb;
}

.legal-auth-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.045), transparent 28%),
    radial-gradient(circle at 50% 78%, rgba(216, 195, 160, 0.04), transparent 34%),
    linear-gradient(180deg, #050607 0%, #030405 100%);
}

.legal-auth-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 20px;
  width: min(100% - 28px, 720px);
  margin: 0 auto;
  padding: 42px 0;
}

.legal-auth-home {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0b0d0f;
  color: #c8d4ee;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.legal-auth-card {
  width: min(480px, 100%);
  display: grid;
  gap: 20px;
  padding: 28px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.012)),
    #0b0c0d;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.46);
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  animation: legalAuthRise 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.legal-auth-brand {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.legal-auth-bolt {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #f4f5f7;
}

.legal-auth-bolt svg,
.legal-auth-dock svg,
.legal-auth-home svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.legal-auth-bolt svg {
  width: 34px;
  height: 34px;
}

.legal-auth-brand h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.3rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.legal-auth-brand p,
.legal-auth-card p,
.legal-auth-card li,
.legal-auth-footnote {
  margin: 0;
  color: #b9c3d7;
  line-height: 1.65;
}

.legal-auth-section {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  background: #101214;
}

.legal-auth-section strong {
  color: #fff;
}

.legal-auth-section ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.legal-auth-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.legal-auth-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #f4f7fb;
  color: #050607;
  font-weight: 800;
  text-decoration: none;
}

.legal-auth-button.is-dark {
  background: #0d0f11;
  color: rgba(255, 255, 255, 0.72);
}

.legal-auth-footnote {
  color: #6f7c8e;
  font-size: 0.75rem;
  text-align: center;
}

.legal-auth-dock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(14px);
  animation: legalAuthRise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.16s forwards;
}

.legal-auth-dock a,
.legal-auth-dock button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0b0d0f;
  color: #b9c3d7;
  cursor: pointer;
}

.legal-auth-body.is-soft-theme {
  background: #f5efe4;
  color: #111;
}

.legal-auth-body.is-soft-theme .legal-auth-backdrop {
  background:
    radial-gradient(circle at 50% 18%, rgba(216, 195, 160, 0.26), transparent 28%),
    radial-gradient(circle at 50% 78%, rgba(0, 0, 0, 0.06), transparent 34%),
    linear-gradient(180deg, #fbf7ee 0%, #efe3d2 100%);
}

.legal-auth-body.is-soft-theme .legal-auth-card,
.legal-auth-body.is-soft-theme .legal-auth-home,
.legal-auth-body.is-soft-theme .legal-auth-dock a,
.legal-auth-body.is-soft-theme .legal-auth-dock button,
.legal-auth-body.is-soft-theme .legal-auth-section {
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(255, 252, 245, 0.82);
  color: #111;
}

.legal-auth-body.is-soft-theme .legal-auth-brand h1,
.legal-auth-body.is-soft-theme .legal-auth-section strong {
  color: #111;
}

.legal-auth-body.is-soft-theme .legal-auth-brand p,
.legal-auth-body.is-soft-theme .legal-auth-card p,
.legal-auth-body.is-soft-theme .legal-auth-card li,
.legal-auth-body.is-soft-theme .legal-auth-home,
.legal-auth-body.is-soft-theme .legal-auth-dock a,
.legal-auth-body.is-soft-theme .legal-auth-dock button {
  color: #394153;
}

.legal-auth-body.is-soft-theme .legal-auth-button {
  background: #111;
  color: #fff;
}

.legal-auth-body.is-soft-theme .legal-auth-button.is-dark {
  background: rgba(0, 0, 0, 0.06);
  color: #111;
}

@keyframes legalAuthRise {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 560px) {
  .legal-auth-shell {
    width: min(100% - 22px, 720px);
    padding: 28px 0;
  }

  .legal-auth-card {
    padding: 22px;
    border-radius: 16px;
  }

  .legal-auth-actions {
    grid-template-columns: 1fr;
  }
}
