:root {
  color-scheme: dark;
  --ink: #f7faff;
  --ink-muted: #aebbd0;
  --ink-soft: #7f91aa;
  --night: #020813;
  --navy: #051426;
  --navy-raised: #081b33;
  --navy-soft: #0b2342;
  --line: rgba(157, 187, 229, 0.18);
  --line-strong: rgba(157, 187, 229, 0.32);
  --blue: #3d83ff;
  --blue-bright: #70a7ff;
  --blue-pale: #c8ddff;
  --shadow: 0 6px 8px rgba(0, 4, 12, 0.22);
  --radius: 0.875rem;
  --page: min(1180px, calc(100% - 2.5rem));
  font-family:
    "Manrope", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-latin-variable.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, var(--navy) 0%, var(--night) 54%, #01050d 100%);
  font-size: 1rem;
  line-height: 1.7;
}

body::before {
  content: none;
}

a {
  color: var(--blue-pale);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  color: #ffffff;
}

a:focus-visible,
button:focus-visible {
  border-radius: 0.25rem;
  outline: 3px solid var(--blue-bright);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 0.65rem;
  color: #021020;
  background: #ffffff;
  font-weight: 750;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 8, 19, 0.86);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: var(--page);
  min-height: 5.4rem;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 2.65rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(167, 200, 255, 0.4);
  border-radius: 0.65rem;
  background:
    linear-gradient(145deg, rgba(111, 166, 255, 0.34), rgba(20, 64, 128, 0.08)),
    #07182d;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.brand-copy {
  display: grid;
  line-height: 1;
}

.brand-copy strong {
  font-size: 0.96rem;
  letter-spacing: 0.2em;
}

.brand-copy small {
  margin-top: 0.38rem;
  color: var(--ink-soft);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: var(--ink-muted);
  font-size: 0.85rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: 0.25rem;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--blue-bright);
  content: "";
}

.legal-hero {
  width: var(--page);
  margin: 0 auto;
  padding: clamp(4.8rem, 10vw, 8.5rem) 0 clamp(3.3rem, 7vw, 5.4rem);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.25rem;
  color: var(--blue-bright);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 1.9rem;
  height: 1px;
  background: currentColor;
  content: "";
}

.legal-hero h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 720;
  letter-spacing: -0.04em;
  line-height: 0.94;
}

.hero-intro {
  max-width: 46rem;
  margin: 1.7rem 0 0;
  color: var(--ink-muted);
  font-size: clamp(1.05rem, 1.8vw, 1.27rem);
  line-height: 1.65;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.8rem;
  margin-top: 2rem;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.legal-layout {
  width: var(--page);
  margin: 0 auto;
  padding: clamp(3.7rem, 8vw, 7rem) 0 clamp(5rem, 10vw, 9rem);
  display: grid;
  grid-template-columns: minmax(12rem, 15rem) minmax(0, 46rem);
  justify-content: space-between;
  gap: clamp(3rem, 8vw, 8rem);
}

.legal-index {
  align-self: start;
  position: sticky;
  top: 8rem;
}

.legal-index p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.legal-index ol {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  counter-reset: index;
  list-style: none;
}

.legal-index li {
  border-bottom: 1px solid var(--line);
  counter-increment: index;
}

.legal-index a {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.35rem;
  min-height: 3.65rem;
  align-items: center;
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
}

.legal-index a::before {
  color: var(--ink-soft);
  font-size: 0.66rem;
  content: "0" counter(index);
}

.legal-index a:hover {
  color: var(--ink);
}

.legal-content {
  min-width: 0;
}

.at-a-glance {
  position: relative;
  margin: 0 0 4rem;
  padding: clamp(1.4rem, 4vw, 2.1rem);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(49, 120, 247, 0.15), transparent 60%),
    rgba(8, 27, 51, 0.72);
  box-shadow: var(--shadow);
}

.at-a-glance::after {
  content: none;
}

.at-a-glance h2 {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.at-a-glance p {
  margin: 0;
  color: var(--ink-muted);
}

.at-a-glance ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1.2rem;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
}

.at-a-glance li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--blue-pale);
  font-size: 0.88rem;
  font-weight: 650;
}

.at-a-glance li::before {
  position: absolute;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  color: var(--blue-bright);
  background: transparent;
  content: "✓";
}

.legal-section {
  padding: 0 0 3.35rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 3.35rem;
}

.legal-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
  margin-bottom: 0;
}

.section-number {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--blue-bright);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.legal-section h2 {
  margin: 0 0 1.2rem;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 680;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.legal-section h3 {
  margin: 2rem 0 0.65rem;
  font-size: 1rem;
  letter-spacing: -0.015em;
}

.legal-section p,
.legal-section li {
  color: var(--ink-muted);
}

.legal-section p {
  margin: 0 0 1.1rem;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  margin: 1rem 0;
  padding-left: 1.25rem;
}

.legal-section li + li {
  margin-top: 0.65rem;
}

.legal-section strong {
  color: var(--ink);
  font-weight: 680;
}

.company-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(8, 27, 51, 0.55);
}

.legal-header {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
  padding-block: 1.35rem;
}

.legal-brand {
  display: inline-flex;
  flex-direction: column;
  color: var(--ink);
  line-height: 1;
  text-decoration: none;
}

.legal-brand strong {
  font-size: 1.2rem;
  letter-spacing: 0.1em;
}

.legal-brand span {
  margin-top: 0.35rem;
  color: var(--ink-soft);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-main--centered {
  display: grid;
  align-content: center;
  justify-items: start;
  width: min(100% - 2rem, 72rem);
  min-height: calc(100dvh - 7rem);
  margin-inline: auto;
  padding-block: 4rem;
}

.legal-main--centered h1 {
  max-width: 11ch;
  margin: 0 0 1rem;
  font-size: clamp(3rem, 9vw, 6rem);
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.legal-main--centered > p:not(.legal-kicker) {
  max-width: 38rem;
  color: var(--ink-muted);
}

.legal-kicker {
  margin: 0 0 1rem;
  color: var(--blue-bright);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.legal-button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  margin-top: 1rem;
  padding: 0.15rem 1.25rem;
  border-radius: 999px;
  color: var(--night);
  background: var(--ink);
  font-size: 0.84rem;
  font-weight: 750;
  text-decoration: none;
  transition: background-color 180ms cubic-bezier(0.16, 1, 0.3, 1), transform 150ms cubic-bezier(0.16, 1, 0.3, 1);
}

.legal-button:hover {
  color: var(--night);
  background: var(--blue-pale);
}

.legal-button:active {
  transform: scale(0.97);
}

.company-card p {
  margin: 0;
}

.company-card .company-type {
  color: var(--blue-bright);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.company-card address {
  margin-top: 0.65rem;
  color: var(--ink-muted);
  font-style: normal;
}

.external-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  align-self: end;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(1, 6, 14, 0.62);
}

.footer-inner {
  width: var(--page);
  margin-inline: auto;
  padding: 2.3rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer-inner p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  color: var(--ink-muted);
  font-size: 0.76rem;
  font-weight: 650;
  text-decoration: none;
}

@media (max-width: 800px) {
  :root {
    --page: min(100% - 1.5rem, 46rem);
  }

  .header-inner {
    min-height: auto;
    padding: 0.8rem 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .site-nav ul {
    min-width: max-content;
    gap: 1.25rem;
  }

  .site-nav a {
    min-height: 2.5rem;
  }

  .site-nav a[aria-current="page"]::after {
    bottom: 0.05rem;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .legal-index {
    position: static;
  }

  .legal-index ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-index li:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .legal-index a {
    padding-right: 0.65rem;
  }

  .company-card {
    grid-template-columns: 1fr;
  }

  .external-link {
    justify-self: start;
  }
}

@media (max-width: 520px) {
  .legal-hero h1 {
    font-size: clamp(2.8rem, 17vw, 4.3rem);
  }

  .legal-index ol,
  .at-a-glance ul {
    grid-template-columns: 1fr;
  }

  .legal-index li:nth-child(odd) {
    border-right: 0;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .brand-mark,
  .at-a-glance,
  .company-card {
    border: 1px solid CanvasText;
  }

  .at-a-glance li::before {
    background: CanvasText;
  }
}

@media print {
  :root {
    color-scheme: light;
  }

  body {
    color: #10213a;
    background: #ffffff;
  }

  body::before,
  .skip-link,
  .site-nav,
  .legal-index,
  .site-footer {
    display: none;
  }

  .site-header {
    position: static;
    border-color: #d5dce5;
    background: #ffffff;
  }

  .brand,
  .brand-copy small,
  .legal-section strong,
  .legal-section h2,
  .at-a-glance h2 {
    color: #10213a;
  }

  .brand-mark {
    border-color: #36567f;
    color: #10213a;
    background: transparent;
    box-shadow: none;
  }

  .legal-layout {
    display: block;
    padding-top: 2.5rem;
  }

  .legal-hero,
  .legal-section {
    border-color: #d5dce5;
  }

  .hero-intro,
  .hero-meta,
  .legal-section p,
  .legal-section li,
  .company-card address,
  .at-a-glance p {
    color: #35465d;
  }

  .at-a-glance,
  .company-card {
    break-inside: avoid;
    border-color: #c8d2df;
    background: #f5f8fc;
    box-shadow: none;
  }

  .legal-section {
    break-inside: avoid-page;
  }

  a {
    color: #184c91;
  }
}
