:root {
  --bg-0: #090d16;
  --bg-1: #0f1424;
  --bg-2: #141d32;
  --panel: rgba(18, 26, 45, 0.9);
  --line: rgba(143, 164, 231, 0.24);
  --line-strong: rgba(143, 164, 231, 0.48);
  --text: #eef3ff;
  --muted: #a9b8dc;
  --accent: #8a7bff;
  --accent-alt: #35e0b8;
  --danger: #ff8e9a;
  --warning: #ffd98a;
  --success: #5cf0cb;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-card: 0 22px 64px rgba(5, 10, 24, 0.54);
  --shadow-soft: 0 10px 24px rgba(8, 13, 28, 0.38);
  --max-width: 1320px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "DM Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(960px 540px at 5% -8%, rgba(138, 123, 255, 0.25), transparent 64%),
    radial-gradient(900px 540px at 97% -10%, rgba(53, 224, 184, 0.19), transparent 66%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 46%, var(--bg-2) 100%);
  overflow-x: hidden;
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(54px);
  z-index: -3;
}

body::before {
  width: 460px;
  height: 460px;
  left: -130px;
  top: 8%;
  background: rgba(138, 123, 255, 0.22);
}

body::after {
  width: 440px;
  height: 440px;
  right: -140px;
  top: 36%;
  background: rgba(53, 224, 184, 0.17);
}

.bg-grid {
  position: fixed;
  inset: 0;
  background: url("./graphics/grid-wave.svg") center/cover no-repeat;
  opacity: 0.18;
  pointer-events: none;
  z-index: -2;
}

.page-shell {
  position: relative;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

.container {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(130, 148, 209, 0.24);
  background: rgba(10, 14, 24, 0.8);
  backdrop-filter: blur(12px);
}

.topbar-inner {
  min-height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-logo {
  height: 29px;
  width: auto;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(40, 227, 197, 0.14));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 15px;
}

.nav-links a:not(.btn) {
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-alt));
  transition: width 0.2s ease;
}

.nav-links a:not(.btn):hover { color: #d8e4ff; }
.nav-links a:not(.btn):hover::after { width: 100%; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 11px 16px;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn:disabled { opacity: 0.62; cursor: wait; transform: none; }

.btn-primary {
  color: #eef5ff;
  border-color: rgba(138, 165, 232, 0.55);
  background: linear-gradient(180deg, rgba(207, 226, 255, 0.16), rgba(136, 154, 214, 0.08));
  backdrop-filter: blur(12px) saturate(130%);
  box-shadow: 0 10px 30px rgba(7, 14, 32, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-secondary {
  color: #dce6ff;
  border-color: rgba(135, 151, 214, 0.4);
  background: linear-gradient(180deg, rgba(201, 219, 255, 0.11), rgba(174, 194, 244, 0.05));
  backdrop-filter: blur(10px) saturate(122%);
}

.btn-ghost {
  color: var(--muted);
  border-color: rgba(135, 151, 214, 0.28);
  background: rgba(188, 204, 244, 0.06);
  backdrop-filter: blur(8px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: #9ec4ff;
  font-weight: 700;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-alt);
  box-shadow: 0 0 0 6px rgba(53, 224, 184, 0.17);
}

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  letter-spacing: -0.02em;
}

.main-title {
  margin: 12px 0 14px;
  font-size: clamp(34px, 3.9vw, 54px);
  line-height: 1.08;
  max-width: 90%;
}

.subtitle {
  margin: 0;
  max-width: 680px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.74;
}

.hero-area { padding: 20px 0 54px; }

.hero-premium {
  width: min(1680px, calc(100% - 24px));
  margin: 0 auto;
}

.hero-stage {
  border-radius: 26px;
  padding: 26px 28px 18px;
  background:
    radial-gradient(1200px 520px at 0% 50%, rgba(138, 123, 255, 0.24), transparent 68%),
    radial-gradient(1100px 520px at 100% 60%, rgba(53, 224, 184, 0.18), transparent 66%),
    linear-gradient(180deg, rgba(20, 29, 51, 0.95), rgba(14, 22, 40, 0.95));
  border: 1px solid rgba(129, 148, 206, 0.34);
}

.hero-stage-grid {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 18px;
  align-items: stretch;
}

.hero-stage-copy {
  padding: 14px 12px 8px 6px;
}

.hero-stage-media {
  display: flex;
}

.hero-stage-media-frame {
  width: 100%;
  min-height: 460px;
  border-radius: 18px;
  border: 1px solid rgba(146, 165, 219, 0.34);
  background: linear-gradient(180deg, rgba(24, 36, 64, 0.9), rgba(16, 24, 44, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.hero-stage-foot {
  margin-top: 10px;
  border-top: 1px solid rgba(144, 161, 215, 0.2);
  padding: 10px 4px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #9fb1de;
  font-size: 13px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 1px;
  background: rgba(196, 214, 255, 0.24);
}

.hero-copy { padding: 42px; }

.hero-actions {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-kpis {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.kpi-chip {
  border: 1px solid rgba(140, 157, 220, 0.32);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
}

.kpi-chip small { display: block; color: var(--muted); font-size: 11px; }
.kpi-chip strong { display: block; margin-top: 6px; font-size: 20px; }

.hero-art {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-media {
  flex: 1;
  min-height: 430px;
  border-radius: 18px;
  border: 1px solid rgba(144, 160, 219, 0.36);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: radial-gradient(520px 260px at 50% 100%, rgba(53, 224, 184, 0.16), transparent 70%);
}

.art-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 2px 4px;
  color: var(--muted);
  font-size: 14px;
}

.section { padding: 28px 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 16px;
}

.section-title {
  margin: 0;
  font-size: clamp(30px, 3.2vw, 40px);
  line-height: 1.16;
}

.section-text {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  padding: 22px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(140, 157, 220, 0.36);
  background: linear-gradient(180deg, rgba(30, 42, 72, 0.95), rgba(19, 28, 48, 0.92));
  box-shadow: var(--shadow-soft);
}

.feature-card h3 { margin: 0 0 10px; font-size: 20px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.62; }

.feature-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 10px;
  border: 1px solid rgba(164, 184, 236, 0.42);
  background: linear-gradient(180deg, rgba(207, 226, 255, 0.18), rgba(136, 154, 214, 0.08));
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.feature-icon::before {
  color: #d9ebff;
  font-size: 18px;
  font-weight: 700;
}

.feature-card:nth-child(1) .feature-icon::before { content: "◎"; }
.feature-card:nth-child(2) .feature-icon::before { content: "◈"; }
.feature-card:nth-child(3) .feature-icon::before { content: "↗"; }
.feature-card:nth-child(4) .feature-icon::before { content: "⇄"; }
.feature-card:nth-child(5) .feature-icon::before { content: "✦"; }
.feature-card:nth-child(6) .feature-icon::before { content: "⌁"; }

.workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.workflow-step {
  position: relative;
  padding: 22px 18px 18px;
  border-radius: 16px;
  border: 1px dashed rgba(142, 159, 220, 0.42);
  background: rgba(20, 30, 52, 0.78);
}

.workflow-step em {
  position: absolute;
  top: 10px;
  right: 12px;
  font-style: normal;
  font-size: 11px;
  color: #c8d3f6;
  opacity: 0.7;
}

.workflow-step b { display: block; margin-bottom: 10px; font-size: 18px; }
.workflow-step span { display: block; color: var(--muted); font-size: 14px; line-height: 1.62; }

.security-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 16px;
}

.security-art,
.security-list { padding: 20px; }

.security-art {
  display: flex;
  align-items: center;
  justify-content: center;
}

.security-art img {
  width: min(100%, 470px);
  max-height: 440px;
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid rgba(141, 157, 220, 0.36);
}

.security-item {
  padding: 13px 0;
  border-bottom: 1px solid rgba(140, 157, 220, 0.18);
}

.security-item:last-child { border-bottom: 0; }
.security-item b { display: block; margin-bottom: 4px; font-size: 17px; }
.security-item span { display: block; color: var(--muted); font-size: 15px; line-height: 1.62; }

.faq-card { padding: 16px; }
.faq-list { display: grid; gap: 10px; }

.faq-item {
  border-radius: 14px;
  border: 1px solid rgba(140, 157, 220, 0.3);
  background: rgba(20, 28, 47, 0.8);
  padding: 14px;
}

.faq-item summary { cursor: pointer; font-family: "Space Grotesk", "DM Sans", sans-serif; font-size: 15px; font-weight: 600; }
.faq-item p { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

.inline-link {
  color: #c5bcff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(197, 188, 255, 0.55);
}

.inline-link:hover { color: #ece8ff; }

.footer {
  text-align: center;
  color: var(--muted);
  padding: 34px 0 42px;
  font-size: 13px;
}

.auth-wrap {
  min-height: calc(100vh - 74px);
  display: grid;
  place-items: center;
  padding: 28px 0 40px;
}

.auth-grid {
  width: min(1120px, calc(100% - 32px));
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 20px;
}

.auth-visual,
.auth-card,
.card,
.kpi,
.feature-card,
.workflow-step,
.faq-item {
  animation: fadeInUp .45s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-visual,
.auth-card { padding: 36px; }

.auth-visual p { margin: 0; color: var(--muted); line-height: 1.68; }

.auth-benefits { margin-top: 18px; display: grid; gap: 8px; }

.auth-benefits div {
  border: 1px solid rgba(140, 157, 220, 0.32);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  color: #d5e0ff;
  font-size: 14px;
  line-height: 1.55;
}

.auth-media {
  margin-top: 18px;
  width: 100%;
  min-height: 300px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(140, 157, 220, 0.32);
}

.auth-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: radial-gradient(420px 220px at 50% 100%, rgba(53, 224, 184, 0.14), transparent 72%);
  display: block;
}

.auth-card h1 { margin: 6px 0 10px; font-size: clamp(30px, 4vw, 48px); line-height: 1.08; }
.form-help { margin: 0 0 20px; color: var(--muted); line-height: 1.68; font-size: 16px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }

label { display: block; margin-bottom: 7px; font-size: 14px; color: #dae3ff; }

.input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(143, 164, 231, 0.38);
  border-radius: 12px;
  background: rgba(16, 23, 40, 0.88);
  padding: 13px 14px;
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  outline: none;
}

.input:focus,
textarea:focus,
select:focus {
  border-color: rgba(53, 224, 184, 0.72);
  box-shadow: 0 0 0 4px rgba(53, 224, 184, 0.15);
}

textarea { min-height: 100px; resize: vertical; }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.58;
}

.error-msg,
.success-msg { min-height: 18px; font-size: 13px; }
.error-msg { color: #ffc2cc; }
.success-msg { color: #9ff3de; }
.auth-foot { margin-top: 14px; color: var(--muted); font-size: 13px; }

.dashboard-wrap { padding: 28px 0 38px; }
.dashboard-hero { margin-bottom: 14px; }
.dashboard-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.status-muted {
  color: #c0d3ff;
  background: rgba(140, 157, 220, 0.18);
  border-color: rgba(140, 157, 220, 0.34);
}

.dashboard-tabs-wrap { margin-bottom: 14px; padding: 10px; }
.dashboard-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.dash-tab {
  border: 1px solid rgba(143, 164, 231, 0.3);
  border-radius: 12px;
  background: rgba(20, 29, 50, 0.72);
  color: #d8e3ff;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.dash-tab:hover {
  border-color: rgba(53, 224, 184, 0.55);
  transform: translateY(-1px);
}

.dash-tab.active {
  border-color: rgba(53, 224, 184, 0.65);
  color: #f2fbff;
  background: linear-gradient(140deg, rgba(53, 224, 184, 0.17), rgba(138, 123, 255, 0.23));
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 14px;
}

.dashboard-title { margin: 0; font-size: clamp(28px, 4vw, 42px); line-height: 1.02; }

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 700;
}

.status-active { color: #9bf5de; background: rgba(70, 240, 198, 0.14); border-color: rgba(70, 240, 198, 0.34); }
.status-pending { color: #ffde9d; background: rgba(255, 209, 120, 0.14); border-color: rgba(255, 209, 120, 0.3); }
.status-stop { color: #ffb5be; background: rgba(255, 125, 143, 0.15); border-color: rgba(255, 125, 143, 0.32); }

.warn-box {
  margin-top: 8px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 217, 138, 0.38);
  background: rgba(255, 217, 138, 0.12);
  border-radius: 12px;
  color: #ffe5b4;
  padding: 11px 13px;
  font-size: 13px;
}

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }

.kpi {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(143, 164, 231, 0.3);
  background: linear-gradient(180deg, rgba(27, 38, 66, 0.92), rgba(20, 29, 50, 0.9));
}

.kpi small { display: block; font-size: 11px; color: var(--muted); }
.kpi strong { display: block; margin-top: 8px; font-size: 24px; }

.dashboard-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

.stack { display: grid; gap: 14px; }
.card { padding: 18px; border-radius: 16px; }
.card h3 { margin: 0 0 12px; font-size: 20px; }

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.mini-note { color: var(--muted); font-size: 13px; }

.form-hint {
  border: 1px solid rgba(53, 224, 184, 0.32);
  border-radius: 12px;
  background: rgba(53, 224, 184, 0.11);
  color: #baf6e7;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.5;
}

.table-wrap { overflow: hidden; }

.table-scroller {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(140, 157, 220, 0.28);
}

.table {
  width: 100%;
  min-width: 100%;
  border-collapse: collapse;
}

.table-wide {
  min-width: 760px;
}

.table th,
.table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(140, 157, 220, 0.18);
  font-size: 13px;
}

.table th {
  background: rgba(13, 20, 35, 0.82);
  color: var(--muted);
  font-weight: 700;
  position: sticky;
  top: 0;
}

.table tr:last-child td { border-bottom: 0; }

.table-scroller {
  scrollbar-width: thin;
  scrollbar-color: rgba(147, 165, 225, 0.55) rgba(16, 24, 41, 0.45);
}

.table-scroller::-webkit-scrollbar {
  height: 8px;
}

.table-scroller::-webkit-scrollbar-track {
  background: rgba(16, 24, 41, 0.45);
  border-radius: 999px;
}

.table-scroller::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(158, 177, 236, 0.9), rgba(121, 142, 206, 0.8));
  border-radius: 999px;
  border: 1px solid rgba(22, 33, 56, 0.5);
}

.promo-table tbody tr { cursor: pointer; transition: background .2s ease; }
.promo-table tbody tr:hover { background: rgba(138, 123, 255, 0.11); }
.promo-table tbody tr.selected { background: rgba(53, 224, 184, 0.14); }

.chart-bars {
  height: 220px;
  border: 1px solid rgba(140, 157, 220, 0.28);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(19, 27, 46, 0.82), rgba(15, 21, 37, 0.82));
  padding: 12px;
  display: flex;
  align-items: flex-end;
  gap: 7px;
  overflow: hidden;
}

.chart-empty {
  margin: auto;
  color: var(--muted);
  font-size: 13px;
}

.chart-bar-col {
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 7px;
}

.chart-bar {
  width: 100%;
  min-height: 8px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(138, 123, 255, 0.96), rgba(101, 91, 255, 0.62));
  box-shadow: 0 6px 18px rgba(112, 104, 255, 0.28);
}

.chart-bars-alt .chart-bar {
  background: linear-gradient(180deg, rgba(53, 224, 184, 0.96), rgba(52, 179, 223, 0.62));
  box-shadow: 0 6px 18px rgba(53, 224, 184, 0.28);
}

.chart-bar-col small {
  color: #b7c8f5;
  font-size: 10px;
  text-align: left;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin: 0 auto;
  height: 42px;
}

.promo-insight-card { min-height: 340px; }
.promo-insight {
  border: 1px solid rgba(140, 157, 220, 0.32);
  border-radius: 14px;
  background: rgba(17, 25, 42, 0.7);
  padding: 14px;
}

.promo-insight-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.promo-insight-head h4 {
  margin: 0;
  font-size: 20px;
}

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

.promo-mini-grid div {
  border: 1px solid rgba(140, 157, 220, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 12px;
}

.promo-mini-grid small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.promo-mini-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 20px;
}

.promo-insight-meta {
  margin-top: 12px;
  color: #c3d1f6;
  font-size: 13px;
}

.legal-wrap { padding: 34px 0 52px; }

.legal-layout {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 14px;
}

.legal-side,
.legal-main { padding: 22px; }

.legal-side {
  position: sticky;
  top: 92px;
  align-self: start;
}

.legal-side h3 { margin: 0 0 8px; font-size: 18px; }
.legal-side p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

.legal-side nav { margin-top: 14px; display: grid; gap: 7px; }
.legal-side nav a { color: #c9d6f7; font-size: 13px; }

.legal-main h1 {
  margin: 8px 0 10px;
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.03;
}

.legal-lead { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.72; }

.legal-section {
  margin-top: 16px;
  border: 1px solid rgba(140, 157, 220, 0.28);
  border-radius: 14px;
  padding: 14px;
  background: rgba(17, 25, 42, 0.74);
}

.legal-section h3 { margin: 0 0 8px; font-size: 18px; }
.legal-section p { margin: 0; color: #d3dffb; font-size: 14px; line-height: 1.67; }

@media (max-width: 1080px) {
  .hero-layout,
  .hero-stage-grid,
  .security-wrap,
  .auth-grid,
  .legal-layout,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .hero-premium {
    width: min(1680px, calc(100% - 20px));
  }

  .hero-stage-media-frame {
    min-height: 360px;
  }

  .hero-stage-foot {
    flex-wrap: wrap;
  }

  .legal-side { position: static; }
}

@media (max-width: 820px) {
  .topbar-inner {
    flex-wrap: wrap;
    min-height: auto;
    padding: 10px 0;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    gap: 10px;
  }

  .hero-copy,
  .auth-card,
  .auth-visual,
  .legal-main,
  .legal-side {
    padding: 22px;
  }

  .brand-logo {
    height: 25px;
  }

  .hero-kpis,
  .feature-grid,
  .workflow,
  .kpi-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    padding: 18px 16px 14px;
    border-radius: 20px;
  }

  .hero-stage-media-frame {
    min-height: 260px;
  }

  .dashboard-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .main-title { font-size: clamp(30px, 9vw, 44px); max-width: 100%; }
  .table-wide { min-width: 560px; }
  .hero-media { min-height: 300px; }
  .auth-media { min-height: 240px; }
  .chart-bars { height: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
