@font-face {
  font-family: "Groups Sans";
  src: url("./_next/static/media/c34447207c83ff76-s.p.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}

:root {
  color-scheme: dark;
  --page: #03060a;
  --surface: #090d14;
  --surface-strong: #0d131e;
  --text: #f5f7fb;
  --muted: #a4afc0;
  --quiet: #758096;
  --line: #202938;
  --line-soft: #151c28;
  --blue: #397fff;
  --blue-light: #8cb6ff;
  --blue-wash: rgba(57, 127, 255, 0.12);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(
      850px 430px at 74% -80px,
      rgba(40, 91, 182, 0.24),
      transparent 70%
    ),
    linear-gradient(180deg, #05080e 0, var(--page) 420px);
  font-family: "Groups Sans", Inter, Arial, sans-serif;
  font-size: 16px;
  font-weight: 450;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--blue-light);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: #bdd3ff;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(3, 6, 10, 0.88);
  backdrop-filter: blur(18px);
}
.legal-nav {
  display: flex;
  width: min(calc(100% - 40px), var(--max));
  min-height: 78px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.legal-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.legal-brand img {
  display: block;
  width: 150px;
  height: auto;
}
.legal-nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.legal-nav-links > a:not(.legal-nav-button) {
  color: #b3bccb;
  font-size: 14px;
  font-weight: 560;
  text-decoration: none;
}
.legal-nav-links > a[aria-current="page"] {
  color: #fff;
}
.legal-nav-button,
.legal-button {
  display: inline-flex;
  min-height: 44px;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 680;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}
.legal-button.secondary {
  color: #dce8ff;
  background: #0e1c34;
  border-color: #244c89;
}
.legal-button.ghost {
  color: #c3ccda;
  background: transparent;
  border-color: #303b4d;
}
.legal-nav-button:hover,
.legal-button:hover {
  color: #fff;
  background: #4c8cff;
}

.legal-hero {
  width: min(calc(100% - 40px), var(--max));
  padding: 94px 0 64px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.legal-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 24px;
  color: #8793a5;
  font-size: 0.88rem;
}

.legal-breadcrumbs a { color: inherit; text-decoration: none; }
.legal-breadcrumbs a:hover { color: #fff; }
.legal-eyebrow {
  margin: 0 0 16px;
  color: #76a8ff;
  font-size: 13px;
  font-weight: 720;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.legal-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(42px, 7vw, 78px);
  font-weight: 520;
  letter-spacing: -0.055em;
  line-height: 0.98;
}
.legal-hero > p:not(.legal-eyebrow) {
  max-width: 780px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.7;
}
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 28px;
  color: var(--quiet);
  font-size: 13px;
}
.legal-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.legal-meta span::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--blue);
  border-radius: 50%;
}

.legal-layout {
  display: grid;
  grid-template-columns: 235px minmax(0, 760px);
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 68px 0 110px;
  justify-content: space-between;
  gap: 70px;
}
.legal-toc {
  position: sticky;
  top: 112px;
  align-self: start;
}
.legal-toc p {
  margin: 0 0 14px;
  color: #e7ebf2;
  font-size: 13px;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.legal-toc nav {
  display: grid;
  gap: 3px;
}
.legal-toc a {
  padding: 8px 10px;
  color: #7f8a9d;
  border-left: 2px solid transparent;
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
}
.legal-toc a:hover {
  color: #dce6f8;
  border-left-color: var(--blue);
}
.legal-content {
  min-width: 0;
}
.legal-section {
  padding: 0 0 44px;
  margin: 0 0 44px;
  border-bottom: 1px solid var(--line-soft);
  scroll-margin-top: 110px;
}
.legal-section:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}
.legal-section h2 {
  margin: 0 0 18px;
  color: #f6f8fc;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 590;
  letter-spacing: -0.035em;
  line-height: 1.15;
}
.legal-section h3 {
  margin: 28px 0 10px;
  color: #e8edf6;
  font-size: 18px;
  font-weight: 640;
}
.legal-section p {
  margin: 0 0 16px;
  color: var(--muted);
}
.legal-section ul,
.legal-section ol {
  padding-left: 22px;
  margin: 14px 0 18px;
  color: var(--muted);
}
.legal-section li {
  padding-left: 5px;
  margin: 8px 0;
}
.legal-section strong {
  color: #e9eef7;
  font-weight: 650;
}
.legal-callout {
  padding: 22px 24px;
  margin: 22px 0;
  background: linear-gradient(
    135deg,
    rgba(57, 127, 255, 0.12),
    rgba(57, 127, 255, 0.035)
  );
  border: 1px solid #254675;
  border-radius: 12px;
}
.legal-callout p:last-child {
  margin-bottom: 0;
}
.legal-callout-title {
  color: #dce9ff !important;
  font-size: 14px;
  font-weight: 720;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.legal-table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.legal-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}
.legal-table th,
.legal-table td {
  padding: 15px 17px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}
.legal-table tr:last-child td {
  border-bottom: 0;
}
.legal-table th {
  color: #dce4f1;
  background: #0c121c;
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.legal-table td {
  color: #9faabc;
  font-size: 14px;
}
.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.preference-panel {
  padding: 24px;
  margin-top: 22px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.preference-panel h3 {
  margin-top: 0;
}
.preference-status {
  margin: 14px 0 0 !important;
  color: #8eb4f8 !important;
  font-size: 14px;
}

.legal-footer {
  border-top: 1px solid var(--line);
  background: #05080d;
}
.legal-footer-inner {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, 1fr);
  width: min(calc(100% - 40px), var(--max));
  padding: 50px 0 34px;
  margin: 0 auto;
  gap: 42px;
}
.legal-footer img {
  width: 142px;
  height: auto;
}
.legal-footer p {
  max-width: 420px;
  margin: 18px 0 0;
  color: #737f92;
  font-size: 13px;
}
.legal-footer h2 {
  margin: 0 0 14px;
  color: #e7ebf2;
  font-size: 13px;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.legal-footer nav {
  display: grid;
  gap: 9px;
}
.legal-footer a {
  color: #8e99aa;
  font-size: 13px;
  text-decoration: none;
}
.legal-footer a:hover {
  color: #fff;
}
.legal-copyright {
  width: min(calc(100% - 40px), var(--max));
  padding: 18px 0 28px;
  margin: 0 auto;
  color: #657084;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cookie-banner {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  display: none;
  width: min(calc(100% - 44px), 500px);
  padding: 22px;
  background: rgba(10, 15, 23, 0.98);
  border: 1px solid #2a3547;
  border-radius: 14px;
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.5);
}
.cookie-banner.is-visible {
  display: block;
}
.cookie-banner h2 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 650;
}
.cookie-banner p {
  margin: 0;
  color: #a4aec0;
  font-size: 13px;
  line-height: 1.55;
}
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}
.cookie-banner .legal-button {
  min-height: 40px;
  padding-inline: 14px;
  font-size: 13px;
}

@media (max-width: 840px) {
  .legal-nav-links > a:not(.legal-nav-button) {
    display: none;
  }
  .legal-hero {
    padding-top: 66px;
  }
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .legal-toc {
    position: static;
  }
  .legal-toc nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .legal-footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .legal-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .legal-nav,
  .legal-hero,
  .legal-layout,
  .legal-footer-inner,
  .legal-copyright {
    width: min(calc(100% - 28px), var(--max));
  }
  .legal-brand img {
    width: 126px;
  }
  .legal-nav-button {
    min-height: 40px;
    padding-inline: 13px;
  }
  .legal-hero {
    padding: 52px 0 42px;
  }
  .legal-layout {
    padding: 42px 0 76px;
  }
  .legal-toc nav {
    grid-template-columns: 1fr;
  }
  .legal-section {
    padding-bottom: 34px;
    margin-bottom: 34px;
  }
  .legal-footer-inner {
    grid-template-columns: 1fr;
  }
  .legal-footer-brand {
    grid-column: auto;
  }
  .cookie-banner {
    right: 14px;
    bottom: 14px;
    width: calc(100% - 28px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

.brand-transition-banner {
  position: relative;
  z-index: 120;
  color: #07111f;
  background: linear-gradient(90deg, #dceaff, #f1f6ff 55%, #dceaff);
  border-bottom: 1px solid rgba(49, 112, 218, 0.28);
}
.brand-transition-inner {
  width: min(calc(100% - 40px), 1180px);
  min-height: 48px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 9px 0;
  font-family: Inter, Arial, sans-serif;
  font-size: 0.88rem;
  line-height: 1.35;
  text-align: center;
}
.brand-transition-inner > strong {
  flex: 0 0 auto;
  padding: 4px 8px;
  color: #fff;
  background: #2269df;
  border-radius: 5px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}
.brand-transition-inner > span { color: #28384d; }
.brand-transition-inner > a {
  color: #0b4fb8;
  font-weight: 800;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 760px) {
  .brand-transition-inner {
    width: min(calc(100% - 24px), 1180px);
    min-height: 0;
    flex-wrap: wrap;
    gap: 5px 10px;
    padding: 10px 0 11px;
    font-size: 0.78rem;
  }
  .brand-transition-inner > span { order: 2; flex: 1 1 100%; }
  .brand-transition-inner > a { order: 3; }
}
