:root {
  --auth-white: #ffffff;
  --auth-paper: #f7f9fd;
  --auth-ink: #0c1636;
  --auth-muted: #53617c;
  --auth-line: #e4e9f2;
  --auth-blue: #2d5bff;
  --auth-blue-2: #4936ff;
  --auth-blue-soft: #eef2ff;
  --auth-navy: #111d4d;
  --auth-navy-2: #091437;
  --auth-orange: #ff9f2d;
  --auth-green: #17a56b;
  --auth-danger: #dc2626;
  --auth-shadow: 0 24px 70px rgba(9, 20, 55, 0.13);
  --auth-shadow-soft: 0 12px 34px rgba(9, 20, 55, 0.08);
  --auth-radius: 18px;
}

body.auth-page {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: block;
  background: var(--auth-paper);
  color: var(--auth-ink);
}

.auth-page *,
.auth-page *::before,
.auth-page *::after {
  box-sizing: border-box;
}

.auth-page a {
  color: inherit;
  text-decoration: none;
}

.auth-page button,
.auth-page input,
.auth-page textarea,
.auth-page select {
  font: inherit;
}

.auth-page .auth-main {
  width: 100%;
}

.auth-page .auth-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 91, 255, 0.08), transparent 28%),
    linear-gradient(180deg, #fbfcff 0%, #f7f9fd 100%);
}

.auth-page .auth-header {
  width: min(calc(100% - 32px), 1280px);
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.auth-page .auth-brand-link,
.auth-page .auth-link-inline,
.auth-page .auth-footer-link,
.auth-page .auth-back-link,
.auth-page .auth-return-link {
  transition: color .18s ease, opacity .18s ease;
}

.auth-page .auth-brand-link:hover,
.auth-page .auth-link-inline:hover,
.auth-page .auth-footer-link:hover,
.auth-page .auth-back-link:hover,
.auth-page .auth-return-link:hover {
  color: var(--auth-blue);
}

.auth-page .auth-brand-link {
  display: inline-flex;
  align-items: center;
}

.auth-page .auth-brand-logo {
  display: block;
  width: 214px;
  max-width: 100%;
  height: auto;
}

.auth-page .auth-header-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--auth-muted);
  font-size: 14px;
  font-weight: 700;
}

.auth-page .auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--auth-muted);
  font-size: 14px;
  font-weight: 700;
}

.auth-page .auth-layout {
  width: min(calc(100% - 32px), 1280px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 540px);
  min-height: calc(100vh - 92px);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--auth-shadow);
  background: var(--auth-white);
}

.auth-page .auth-layout.auth-layout--register {
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .7fr);
}

.auth-page .auth-visual {
  position: relative;
  overflow: hidden;
  padding: 42px 42px 46px;
  background:
    radial-gradient(circle at 70% 25%, rgba(54, 93, 255, .22), transparent 34%),
    linear-gradient(135deg, #111d4d 0%, #091437 100%);
  color: #fff;
}

.auth-page .auth-visual::after {
  content: "";
  position: absolute;
  inset: auto -120px -120px auto;
  width: 280px;
  height: 280px;
  border: 10px solid rgba(86, 110, 255, .28);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(12deg);
}

.auth-page .auth-visual-inner {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.auth-page .auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #dfe6ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.auth-page .auth-badge--light {
  color: var(--auth-blue);
  border-color: #d8e0ff;
  background: #f7f9ff;
}

.auth-page .auth-visual-title {
  margin: 24px 0 0;
  font-size: clamp(44px, 5vw, 72px);
  line-height: .97;
  letter-spacing: -.05em;
  font-weight: 850;
}

.auth-page .auth-visual-title strong,
.auth-page .auth-text-accent {
  color: var(--auth-blue);
}

.auth-page .auth-visual-copy {
  max-width: 460px;
  margin: 24px 0 0;
  color: #d4dcf5;
  font-size: 18px;
  line-height: 1.7;
}

.auth-page .auth-visual-points {
  display: grid;
  gap: 14px;
  margin: 30px 0 0;
}

.auth-page .auth-visual-point {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.auth-page .auth-visual-point svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #8fb2ff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-page .auth-visual-card {
  display: grid;
  gap: 12px;
  width: min(100%, 320px);
  margin-top: 36px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  background: rgba(255,255,255,.08);
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
  backdrop-filter: blur(10px);
}

.auth-page .auth-visual-card-top {
  display: flex;
  gap: 10px;
}

.auth-page .auth-visual-kpi {
  flex: 1;
  min-width: 0;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
}

.auth-page .auth-visual-kpi strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
}

.auth-page .auth-visual-kpi span {
  display: block;
  margin-top: 4px;
  color: #d4dcf5;
  font-size: 12px;
}

.auth-page .auth-visual-bar {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,.16), rgba(255,255,255,.05));
  overflow: hidden;
}

.auth-page .auth-visual-bar::after {
  content: "";
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--auth-blue) 0%, var(--auth-blue-2) 100%);
}

.auth-page .auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px;
  background: #fff;
}

.auth-page .auth-card,
.auth-page .auth-form-card,
.auth-page .auth-summary-card,
.auth-page .auth-consent-card {
  border: 1px solid var(--auth-line);
  border-radius: var(--auth-radius);
  background: #fff;
  box-shadow: var(--auth-shadow-soft);
}

.auth-page .auth-card {
  width: 100%;
  max-width: 470px;
  padding: 32px;
}

.auth-page .auth-page-title {
  margin: 18px 0 0;
  color: var(--auth-ink);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.04;
  letter-spacing: -.045em;
}

.auth-page .auth-page-subtitle {
  margin: 14px 0 0;
  color: var(--auth-muted);
  font-size: 17px;
  line-height: 1.65;
}

.auth-page .auth-card-title {
  margin: 18px 0 0;
  color: var(--auth-ink);
  font-size: 34px;
  line-height: 1.06;
  letter-spacing: -.04em;
}

.auth-page .auth-card-subtitle {
  margin: 12px 0 0;
  color: var(--auth-muted);
  font-size: 16px;
  line-height: 1.65;
}

.auth-page .auth-alerts {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
}

.auth-page .auth-alert {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #dce3ff;
  background: #f4f6ff;
  color: #111d4d;
  font-size: 14px;
  line-height: 1.5;
}

.auth-page .auth-alert.auth-alert--error {
  border-color: #fecaca;
  background: #fff1f2;
  color: #991b1b;
}

.auth-page .auth-form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.auth-page .auth-field,
.auth-page .auth-fieldset {
  display: grid;
  gap: 8px;
}

.auth-page .auth-fieldset-grid {
  display: grid;
  gap: 14px;
}

.auth-page .auth-label,
.auth-page .auth-legend,
.auth-page .auth-consent-heading,
.auth-page .auth-summary-heading {
  color: var(--auth-ink);
  font-size: 14px;
  font-weight: 800;
}

.auth-page .auth-legend {
  padding: 0;
}

.auth-page .auth-input-wrap {
  position: relative;
}

.auth-page .auth-input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  fill: none;
  stroke: #7b8bad;
  stroke-width: 1.9;
  pointer-events: none;
}

.auth-page .auth-input,
.auth-page .auth-select,
.auth-page .auth-textarea,
.auth-page .auth-page input[type="email"],
.auth-page .auth-page input[type="password"],
.auth-page .auth-page input[type="text"],
.auth-page .auth-page input[type="tel"],
.auth-page .auth-page input[type="number"] {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid #dbe1eb;
  border-radius: 10px;
  background: #fff;
  color: var(--auth-ink);
  font-size: 15px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.auth-page .auth-input--icon {
  padding-left: 46px;
}

.auth-page .auth-input:focus,
.auth-page .auth-select:focus,
.auth-page .auth-textarea:focus,
.auth-page .auth-page input:focus,
.auth-page .auth-page textarea:focus,
.auth-page .auth-page select:focus {
  outline: none;
  border-color: #2d5bff;
  box-shadow: 0 0 0 4px rgba(45,91,255,.10);
}

.auth-page .auth-input::placeholder,
.auth-page .auth-page input::placeholder,
.auth-page .auth-page textarea::placeholder {
  color: #8b98b1;
}

.auth-page .auth-help,
.auth-page .auth-note,
.auth-page .auth-expiry,
.auth-page .auth-summary-note {
  color: var(--auth-muted);
  font-size: 13px;
  line-height: 1.55;
}

.auth-page .auth-link-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.auth-page .auth-link-inline,
.auth-page .auth-footer-link,
.auth-page .auth-return-link {
  color: var(--auth-blue);
  font-size: 14px;
  font-weight: 800;
}

.auth-page .auth-button,
.auth-page .auth-page button.auth-button,
.auth-page .auth-page .auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.auth-page .auth-button:hover {
  transform: translateY(-1px);
}

.auth-page .auth-button--primary {
  color: #fff;
  background: linear-gradient(135deg, #2d5bff 0%, #4936ff 100%);
  box-shadow: 0 14px 28px rgba(45,91,255,.27);
}

.auth-page .auth-button--primary:hover {
  box-shadow: 0 18px 34px rgba(45,91,255,.34);
}

.auth-page .auth-button--ghost {
  width: auto;
  min-width: 48px;
  min-height: 52px;
  padding: 0 14px;
  color: var(--auth-ink);
  border: 1px solid #dbe1eb;
  background: #fff;
  box-shadow: none;
}

.auth-page .auth-button--secondary {
  width: auto;
  min-height: 44px;
  color: var(--auth-ink);
  border: 1px solid #dbe1eb;
  background: #fff;
  box-shadow: none;
}

.auth-page .auth-card-footer {
  margin-top: 22px;
  color: var(--auth-muted);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.auth-page .auth-screen {
  width: min(calc(100% - 32px), 1280px);
  margin: 0 auto;
  padding: 8px 0 48px;
}

.auth-page .auth-intro {
  max-width: 760px;
  margin-bottom: 28px;
}

.auth-page .auth-summary-strip {
  margin-top: 16px;
  color: var(--auth-muted);
  font-size: 15px;
  font-weight: 700;
}

.auth-page .auth-register-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .7fr);
  gap: 24px;
  align-items: start;
}

.auth-page .auth-form-card,
.auth-page .auth-consent-card,
.auth-page .auth-summary-card {
  padding: 24px;
}

.auth-page .auth-stack {
  display: grid;
  gap: 20px;
}

.auth-page .auth-form-card-title {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 800;
  color: var(--auth-ink);
}

.auth-page .auth-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.auth-page .auth-password-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.auth-page .auth-password-rules {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.auth-page .auth-password-rules li {
  color: #7b879d;
  font-size: 14px;
}

.auth-page .auth-password-rules li.valid {
  color: var(--auth-green);
}

.auth-page .auth-password-rules li.invalid {
  color: var(--auth-danger);
}

.auth-page .auth-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.auth-page .auth-plan-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.auth-page .auth-plan-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.auth-page .auth-plan-card {
  position: relative;
  display: grid;
  gap: 14px;
  height: 100%;
  padding: 22px;
  border: 1px solid var(--auth-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--auth-shadow-soft);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.auth-page .auth-plan-option:hover .auth-plan-card {
  transform: translateY(-2px);
}

.auth-page .auth-plan-option input[type="radio"]:checked + .auth-plan-card {
  border-color: #2d5bff;
  box-shadow: 0 0 0 3px rgba(45,91,255,.08), 0 18px 44px rgba(9,20,55,.10);
}

.auth-page .auth-plan-option input[type="radio"]:focus-visible + .auth-plan-card {
  box-shadow: 0 0 0 4px rgba(45,91,255,.14), 0 18px 44px rgba(9,20,55,.10);
}

.auth-page .auth-plan-card--featured {
  background: linear-gradient(180deg, #fbfcff 0%, #ffffff 100%);
}

.auth-page .auth-plan-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.auth-page .auth-plan-title {
  margin: 0;
  color: var(--auth-ink);
  font-size: 20px;
  font-weight: 800;
}

.auth-page .auth-plan-chip,
.auth-page .auth-plan-badge,
.auth-page .auth-summary-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.auth-page .auth-plan-chip {
  color: var(--auth-ink);
  background: #edf2ff;
}

.auth-page .auth-plan-badge {
  color: #fff;
  background: linear-gradient(135deg, #2d5bff 0%, #4936ff 100%);
}

.auth-page .auth-plan-price {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.auth-page .auth-plan-price strong {
  color: var(--auth-ink);
  font-size: 40px;
  line-height: 1;
  letter-spacing: -.05em;
}

.auth-page .auth-plan-price span {
  padding-bottom: 5px;
  color: var(--auth-muted);
  font-size: 13px;
}

.auth-page .auth-plan-copy,
.auth-page .auth-plan-list {
  color: var(--auth-muted);
  font-size: 14px;
  line-height: 1.65;
}

.auth-page .auth-plan-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.auth-page .auth-plan-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2d5bff 0%, #4936ff 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.auth-page .auth-config-line {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.auth-page .auth-summary-card {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 18px;
}

.auth-page .auth-summary-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

.auth-page .auth-summary-block {
  display: grid;
  gap: 10px;
}

.auth-page .auth-summary-line,
.auth-page .auth-summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-page .auth-summary-line {
  color: var(--auth-muted);
  font-size: 14px;
}

.auth-page .auth-summary-total {
  padding-top: 16px;
  border-top: 1px solid var(--auth-line);
  color: var(--auth-ink);
  font-size: 16px;
  font-weight: 800;
}

.auth-page .auth-summary-amount {
  color: var(--auth-ink);
  font-weight: 800;
}

.auth-page .auth-summary-emphasis {
  color: var(--auth-ink);
  font-size: 18px;
  font-weight: 800;
}

.auth-page .auth-summary-list {
  display: grid;
  gap: 10px;
}

.auth-page .auth-consents {
  display: grid;
  gap: 12px;
}

.auth-page .auth-consent-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--auth-line);
  border-radius: 14px;
  background: #fff;
}

.auth-page .auth-consent-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--auth-blue);
}

.auth-page .auth-consent-copy {
  display: grid;
  gap: 8px;
}

.auth-page .auth-consent-label {
  color: var(--auth-ink);
  font-size: 14px;
  line-height: 1.6;
}

.auth-page .auth-consent-label a {
  color: var(--auth-blue);
  font-weight: 800;
}

.auth-page .auth-consent-copy {
  min-width: 0;
}

.auth-page .auth-consent-row--stacked {
  align-items: start;
}

.auth-page .auth-consent-bullets {
  display: grid;
  gap: 6px;
  margin: 8px 0 0 18px;
  padding: 0;
}

.auth-page .auth-register-actions {
  display: grid;
  gap: 12px;
}

.auth-page .auth-code-input {
  min-height: 60px;
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .35em;
  padding-left: calc(14px + .35em);
}

.auth-page .auth-center-note {
  text-align: center;
}

.auth-page .auth-footer {
  margin-top: 18px;
  color: var(--auth-muted);
  font-size: 13px;
}

.auth-page .auth-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 1180px) {
  .auth-page .auth-layout,
  .auth-page .auth-layout.auth-layout--register,
  .auth-page .auth-register-grid {
    grid-template-columns: 1fr;
  }

  .auth-page .auth-visual {
    min-height: 420px;
  }

  .auth-page .auth-summary-card {
    position: static;
  }
}

@media (max-width: 860px) {
  .auth-page .auth-header {
    width: min(calc(100% - 24px), 1280px);
    padding: 14px 0;
  }

  .auth-page .auth-brand-logo {
    width: 180px;
  }

  .auth-page .auth-layout {
    width: min(calc(100% - 24px), 1280px);
    min-height: auto;
    border-radius: 22px;
  }

  .auth-page .auth-panel,
  .auth-page .auth-visual,
  .auth-page .auth-screen {
    padding-left: 22px;
    padding-right: 22px;
  }

  .auth-page .auth-visual-title {
    font-size: clamp(38px, 8vw, 56px);
  }

  .auth-page .auth-grid-2,
  .auth-page .auth-plan-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .auth-page .auth-shell {
    min-height: 100vh;
    padding-bottom: 24px;
  }

  .auth-page .auth-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-page .auth-layout {
    display: block;
    box-shadow: none;
    background: transparent;
    overflow: visible;
  }

  .auth-page .auth-visual {
    display: none;
  }

  .auth-page .auth-panel {
    padding: 0;
    background: transparent;
  }

  .auth-page .auth-card,
  .auth-page .auth-form-card,
  .auth-page .auth-summary-card,
  .auth-page .auth-consent-card {
    max-width: 460px;
    margin: 0 auto;
  }

  .auth-page .auth-screen {
    width: min(calc(100% - 24px), 1280px);
    padding: 8px 0 32px;
  }

  .auth-page .auth-intro {
    max-width: 460px;
    margin: 0 auto 20px;
  }
}

@media (max-width: 520px) {
  .auth-page .auth-header,
  .auth-page .auth-screen {
    width: min(calc(100% - 20px), 1280px);
  }

  .auth-page .auth-card,
  .auth-page .auth-form-card,
  .auth-page .auth-summary-card,
  .auth-page .auth-consent-card {
    padding: 20px;
    border-radius: 16px;
  }

  .auth-page .auth-card-title {
    font-size: 30px;
  }

  .auth-page .auth-page-title {
    font-size: 34px;
  }

  .auth-page .auth-page-subtitle,
  .auth-page .auth-card-subtitle {
    font-size: 15px;
  }

  .auth-page .auth-password-row {
    grid-template-columns: 1fr;
  }

  .auth-page .auth-link-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-page .auth-code-input {
    font-size: 24px;
    letter-spacing: .28em;
    padding-left: calc(14px + .28em);
  }
}

/* legal */
.auth-page .legal-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 5%, rgba(45,91,255,.10), transparent 28%),
    linear-gradient(180deg, #fbfcff 0%, #f7f9fd 100%);
}

.auth-page .legal-screen {
  width: min(calc(100% - 32px), 1200px);
  margin: 0 auto;
  padding: 8px 0 48px;
}

.auth-page .legal-hero {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.auth-page .legal-title {
  margin: 18px 0 0;
  color: var(--auth-ink);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.04;
  letter-spacing: -.045em;
  font-weight: 850;
}

.auth-page .legal-subtitle {
  max-width: 760px;
  margin: 14px auto 0;
  color: var(--auth-muted);
  font-size: 17px;
  line-height: 1.65;
}

.auth-page .legal-nav,
.auth-page .legal-footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-page .legal-nav {
  margin: 24px auto 0;
}

.auth-page .legal-footer-nav {
  margin-top: 20px;
}

.auth-page .legal-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 13px;
  border-radius: 8px;
  color: var(--auth-muted);
  font-size: 13px;
  font-weight: 700;
  transition: background .18s ease, color .18s ease;
}

.auth-page .legal-nav-link:hover,
.auth-page .legal-nav-link.is-active {
  background: var(--auth-blue-soft);
  color: var(--auth-blue);
}

.auth-page .legal-card {
  width: min(100%, 960px);
  margin: 36px auto 0;
  padding: 48px 54px;
  background: #ffffff;
  border: 1px solid #e4e9f2;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(9,20,55,.08);
}

.auth-page .legal-meta {
  margin: 0 0 24px;
  color: var(--auth-muted);
  font-size: 13px;
  font-weight: 700;
}

.auth-page .legal-content {
  max-width: 850px;
  margin: 0 auto;
  color: var(--auth-muted);
  font-size: 15px;
  line-height: 1.75;
}

.auth-page .legal-content h1,
.auth-page .legal-content h2,
.auth-page .legal-content h3,
.auth-page .legal-content h4 {
  color: var(--auth-ink);
  font-weight: 850;
  letter-spacing: -.025em;
}

.auth-page .legal-content h2 {
  font-size: 22px;
  color: #111d4d;
  margin: 38px 0 12px;
}

.auth-page .legal-content h3 {
  font-size: 17px;
  color: #111d4d;
  margin: 30px 0 10px;
}

.auth-page .legal-content p {
  margin: 0 0 16px;
}

.auth-page .legal-info {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 20px 22px;
  border: 1px solid var(--auth-line);
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfcff 0%, #ffffff 100%);
}

.auth-page .legal-info strong {
  color: var(--auth-ink);
  font-weight: 800;
}

.auth-page .legal-info p {
  margin: 0;
}

.auth-page .legal-content ul,
.auth-page .legal-content ol {
  padding-left: 22px;
  margin: 12px 0 20px;
}

.auth-page .legal-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.auth-page .legal-content a {
  color: #2d5bff;
  font-weight: 700;
  text-decoration: none;
}

.auth-page .legal-content a:hover {
  text-decoration: underline;
}

.auth-page .legal-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.auth-page .legal-content table {
  width: 100%;
  border-collapse: collapse;
}

.auth-page .legal-content th,
.auth-page .legal-content td {
  padding: 12px 14px;
  border: 1px solid var(--auth-line);
  text-align: left;
}

.auth-page .legal-actions {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.auth-page .legal-return {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #d8deea;
  border-radius: 8px;
  background: #fff;
  color: #0c1636;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(9,20,55,.07);
}

.auth-page .legal-public-footer {
  margin: 28px auto 0;
  color: var(--auth-muted);
  font-size: 13px;
  text-align: center;
}

.auth-page .legal-public-footer p {
  margin: 0;
}

@media (max-width: 768px) {
  .auth-page .legal-screen {
    width: min(calc(100% - 24px), 1200px);
    padding: 8px 0 32px;
  }

  .auth-page .legal-card {
    margin-top: 20px;
    padding: 24px 20px;
    border-radius: 14px;
  }

  .auth-page .legal-title {
    font-size: clamp(32px, 9vw, 44px);
  }

  .auth-page .legal-subtitle {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-page *,
  .auth-page *::before,
  .auth-page *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
