:root {
  --bg: #f6f9fc;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-soft: #f8fbff;

  --text: #0a2540;
  --text-soft: #425466;
  --text-muted: #6b7c93;

  --border-soft: rgba(10, 37, 64, 0.08);

  --primary: #0f8b8d;
  --accent: #635bff;
  --accent-hover: #574fe6;

  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 24px 60px rgba(10, 37, 64, 0.10);

  --radius-card: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body.legal-page {
  padding-top: 74px;
}

a {
  color: inherit;
}

.page-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(10, 37, 64, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 37, 64, 0.035) 1px, transparent 1px);
  background-size: 88px 88px;
  opacity: 0.42;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.16;
}

.bg-orb--left {
  width: 340px;
  height: 340px;
  left: -110px;
  top: 120px;
  background: #7dd3fc;
}

.bg-orb--right {
  width: 340px;
  height: 340px;
  right: -120px;
  bottom: 20px;
  background: #a78bfa;
}

.lead-header {
  position: fixed;
  top: 12px;
  left: 16px;
  right: 16px;
  z-index: 20;
}

.lead-header__inner {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 12px;
  border: 1px solid rgba(10, 37, 64, 0.06);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 30px rgba(10, 37, 64, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lead-header__left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1 1 auto;
}

.lead-header__logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.lead-header__logo img {
  display: block;
  height: 15px;
  width: auto;
}

.lead-header__nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  flex: 1 1 auto;
}

.lead-header__nav a {
  padding: 7px 10px;
  border-radius: 9px;
  color: #55697d;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.lead-header__nav a:hover,
.lead-header__nav a.is-active {
  color: #0a2540;
  background: rgba(99, 91, 255, 0.07);
}

.lead-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.lead-header__signin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(10, 37, 64, 0.10);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.92);
  color: #0a2540;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.lead-header__signin:hover {
  transform: translateY(-1px);
  border-color: rgba(99, 91, 255, 0.18);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.lead-main {
  position: relative;
  z-index: 2;
  margin: 0 auto;
}

.lead-main--legal {
  width: min(1150px, calc(100% - 48px));
  padding-top: 18px;
  padding-bottom: 88px;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 790px);
  gap: 26px;
  align-items: start;
}

.legal-copy-panel {
  position: sticky;
  top: 88px;
  padding-top: 6px;
}

.lead-kicker {
  margin: 0 0 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.legal-copy-panel h1 {
  margin: 0;
  max-width: 8ch;
  color: var(--text);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.lead-intro__lede {
  max-width: 260px;
  margin: 12px 0 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.58;
}

.legal-card,
.lead-footer {
  border: 1px solid var(--border-soft);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.legal-card {
  padding: 24px 26px;
  border-radius: var(--radius-card);
}

.legal-content h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.22;
  letter-spacing: -0.015em;
}

.legal-content p {
  margin: 0 0 18px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.72;
  max-width: none;
}

.legal-content > * + h2 {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(10, 37, 64, 0.08);
}

.legal-content a {
  color: var(--accent);
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 18px 20px;
  padding: 0;
  color: var(--text-soft);
}

.legal-content li {
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.68;
}

.lead-footer--slim {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto 32px;
  border-radius: 14px;
}

.lead-footer__inner--slim {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
}

.lead-footer__left {
  flex: 0 0 auto;
}

.lead-footer__logo {
  display: block;
  height: 15px;
  width: auto;
}

.lead-footer__right {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.lead-footer__line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.lead-footer__line a {
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}

.lead-footer__line a:hover {
  color: var(--accent);
}

.footer-sep {
  color: #9fb0c0;
  font-size: 12px;
}

@media (max-width: 980px) {
  .lead-main--legal {
    width: min(100% - 28px, 1080px);
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .legal-copy-panel {
    position: relative;
    top: auto;
    padding-top: 0;
  }

  .legal-copy-panel h1 {
    max-width: none;
    font-size: clamp(30px, 5vw, 38px);
  }

  .lead-intro__lede {
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  body.legal-page {
    padding-top: 72px;
  }

  .lead-main--legal {
    width: min(100% - 20px, 1080px);
    padding-top: 12px;
    padding-bottom: 56px;
  }

  .lead-header {
    left: 10px;
    right: 10px;
    top: 10px;
  }

  .lead-header__inner {
    padding: 9px 10px;
    border-radius: 12px;
  }

  .lead-header__nav {
    display: none;
  }

  .legal-card {
    padding: 18px;
    border-radius: 18px;
  }

  .legal-content h2 {
    font-size: 16px;
  }

  .legal-content p,
  .legal-content li {
    font-size: 13px;
    line-height: 1.66;
  }

  .legal-content > * + h2 {
    margin-top: 18px;
    padding-top: 18px;
  }

  .lead-footer--slim {
    width: min(100% - 20px, 1080px);
  }

  .lead-footer__inner--slim {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
  }

  .lead-footer__right {
    width: 100%;
    justify-content: flex-start;
  }

  .lead-footer__line {
    gap: 8px 14px;
  }

  .lead-footer__line a {
    font-size: 12px;
    white-space: normal;
  }
}
