:root {
  --bg: #090909;
  --panel: #0e0e0e;
  --bone: #f2f0e9;
  --muted: #92918c;
  --copy: #b8b7b1;
  --line: #252525;
  --blue: #315cff;
  --pad: clamp(24px, 5vw, 76px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--bone);
  font-family: Arial, Helvetica, sans-serif;
}

body.menu-open {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 var(--pad);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 9, 9, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand {
  position: relative;
  z-index: 3;
  color: var(--bone);
  font-size: 19px;
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.045em;
}

.page-brand-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 34px;
  height: 34px;
  opacity: 0.94;
  transform: translate(-50%, -50%);
  transition: opacity 180ms ease, transform 180ms ease;
}

.page-brand-mark:hover,
.page-brand-mark:focus-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.04);
}

.page-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 12px;
}

.navlinks a {
  color: #c9c8c2;
  transition: color 160ms ease;
}

.navlinks a:hover,
.navlinks a:focus-visible {
  color: #fff;
}

.menu-toggle {
  display: none;
  position: relative;
  z-index: 70;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--bone);
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 1px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease, top 180ms ease;
}

.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 20px; }
.menu-toggle span:nth-child(3) { top: 25px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  visibility: hidden;
  pointer-events: none;
}

.mobile-menu.open {
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  opacity: 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: opacity 180ms ease;
}

.mobile-menu.open .mobile-menu-backdrop {
  opacity: 1;
}

.mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(88vw, 390px);
  height: 100%;
  padding: 104px 26px 34px;
  border-left: 1px solid var(--line);
  background: #0a0a0a;
  transform: translateX(100%);
  transition: transform 220ms ease;
}

.mobile-menu.open .mobile-menu-panel {
  transform: translateX(0);
}

.mobile-menu-inner {
  display: grid;
}

.mobile-menu-inner a {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  color: var(--bone);
  font-size: 28px;
  letter-spacing: -0.04em;
}

.page {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: clamp(72px, 8vw, 120px) var(--pad) 120px;
}

.eyebrow,
.section-number {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.legal-hero {
  max-width: 1040px;
}

h1 {
  margin: 16px 0 26px;
  font-size: clamp(64px, 10vw, 148px);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.075em;
  text-transform: uppercase;
}

.legal-intro {
  max-width: 760px;
  margin: 0;
  color: var(--copy);
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.6;
}

.updated {
  margin-top: 24px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.status-row span {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #aaa9a4;
  background: rgba(255, 255, 255, 0.015);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.prelaunch-note {
  max-width: 1040px;
  margin: 62px 0 82px;
  padding: 18px 20px;
  border: 1px solid rgba(49, 92, 255, 0.26);
  border-radius: 14px;
  background: rgba(49, 92, 255, 0.055);
  color: #aaa9a4;
  font-size: 13px;
  line-height: 1.7;
}

.prelaunch-note strong {
  color: var(--bone);
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(180px, 0.36fr) minmax(0, 1fr);
  gap: clamp(46px, 7vw, 110px);
  border-top: 1px solid var(--line);
}

.legal-nav {
  position: sticky;
  top: 104px;
  align-self: start;
  display: grid;
  gap: 0;
  padding-top: 32px;
}

.legal-nav .eyebrow {
  margin-bottom: 18px;
}

.legal-nav a {
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  color: #9f9e98;
  font-size: 11px;
  transition: color 160ms ease, padding-left 160ms ease;
}

.legal-nav a:hover,
.legal-nav a:focus-visible {
  padding-left: 5px;
  color: var(--blue);
}

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

.legal-section {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 24px;
  padding: 34px 0 42px;
  border-bottom: 1px solid var(--line);
}

.legal-section h2 {
  margin: 0 0 18px;
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.legal-section p {
  max-width: 860px;
  margin: 0;
  color: var(--copy);
  font-size: 15px;
  line-height: 1.78;
}

.legal-section p + p {
  margin-top: 18px;
}

.legal-section strong {
  color: var(--bone);
}

.legal-section a {
  color: var(--bone);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(242, 240, 233, 0.42);
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.legal-section a:hover,
.legal-section a:focus-visible {
  color: var(--blue);
  text-decoration-color: var(--blue);
}

.legal-section code {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #101010;
  color: #d4d3ce;
  font-size: 0.9em;
}

.legal-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 28px 0 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.legal-details > div {
  min-height: 96px;
  padding: 18px;
  background: var(--panel);
}

.legal-details dt {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-details dd {
  margin: 0;
  color: #c9c8c2;
  font-size: 13px;
  line-height: 1.55;
}

.legal-details .pending-detail {
  background: rgba(49, 92, 255, 0.05);
}

.footer {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 24px var(--pad);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer > span:last-child {
  text-align: right;
}

.footer a:not(.footer-mark) {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-mark {
  width: 30px;
  height: 30px;
  opacity: 0.74;
  transition: opacity 180ms ease, transform 180ms ease;
}

.footer-mark:hover,
.footer-mark:focus-visible {
  opacity: 1;
  transform: translateY(-1px);
}

.footer-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

@media (max-width: 960px) {
  .navlinks {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

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

  .legal-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
    margin-bottom: 26px;
  }

  .legal-nav .eyebrow {
    grid-column: 1 / -1;
  }
}

@media (max-width: 650px) {
  html {
    scroll-padding-top: 82px;
  }

  .nav {
    height: 66px;
  }

  .brand {
    font-size: 17px;
  }

  .page-brand-mark {
    width: 30px;
    height: 30px;
  }

  .page {
    padding-top: 58px;
    padding-bottom: 84px;
  }

  h1 {
    font-size: clamp(58px, 20vw, 92px);
  }

  .legal-intro {
    font-size: 16px;
  }

  .prelaunch-note {
    margin: 46px 0 62px;
    padding: 16px;
  }

  .legal-nav {
    grid-template-columns: 1fr;
  }

  .legal-section {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 30px 0 36px;
  }

  .legal-details {
    grid-template-columns: 1fr;
  }

  .footer {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 12px;
    text-align: center;
  }

  .footer > span:last-child {
    text-align: center;
  }

  .footer-mark {
    order: -1;
    width: 34px;
    height: 34px;
    margin-bottom: 3px;
  }
}

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

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


/* Keep the centered mark from competing with the bilingual desktop navigation. */
@media (max-width: 1100px) {
  .page-brand-mark {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}
