:root {
  --ink: #05000a;
  --purple: #240147;
  --cyan: #01f0fb;
  --paper: #f0f0f0;
  --muted: #aaa3b3;
  --line: #3a2d45;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.legal-page {
  background: var(--ink);
  color: var(--paper);
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.legal-shell {
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;
}

.legal-header {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid var(--line);
}

.legal-brand {
  display: block;
  width: 50px;
  flex: none;
}

.legal-brand img {
  display: block;
  width: 100%;
}

.legal-nav,
.legal-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.legal-nav a,
.legal-footer-nav a,
.legal-copy a {
  color: inherit;
  text-decoration-color: var(--cyan);
  text-underline-offset: 4px;
}

.legal-nav a {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 11px;
  text-decoration: none;
}

.legal-nav a:hover,
.legal-nav a:focus-visible,
.legal-footer-nav a:hover,
.legal-footer-nav a:focus-visible,
.legal-copy a:hover,
.legal-copy a:focus-visible {
  color: var(--cyan);
}

.legal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(250px, .8fr);
  gap: 80px;
  padding: 110px 0 85px;
  border-bottom: 1px solid var(--line);
}

.legal-kicker,
.legal-updated,
.legal-section-number {
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 10px;
  font-weight: 700;
}

.legal-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
}

.legal-kicker::before {
  width: 22px;
  height: 2px;
  background: var(--cyan);
  content: "";
}

.legal-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(66px, 10vw, 142px);
  font-weight: 800;
  letter-spacing: -.075em;
  line-height: .78;
}

.legal-hero h1 em {
  color: var(--cyan);
  font-style: normal;
}

.legal-intro {
  align-self: end;
  color: #cdc7d1;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.5;
}

.legal-intro p {
  margin: 0 0 24px;
}

.legal-updated {
  display: block;
}

.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 720px);
  gap: 80px;
  justify-content: space-between;
  padding: 80px 0 120px;
}

.legal-toc {
  align-self: start;
  position: sticky;
  top: 30px;
}

.legal-toc strong {
  display: block;
  margin-bottom: 18px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 10px;
}

.legal-toc a {
  display: block;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: #c4bdc9;
  font-size: 13px;
  text-decoration: none;
}

.legal-toc a:last-child {
  border-bottom: 1px solid var(--line);
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
  color: var(--cyan);
}

.legal-copy section {
  scroll-margin-top: 32px;
  padding: 0 0 58px;
}

.legal-section-number {
  display: block;
  margin-bottom: 15px;
}

.legal-copy h2 {
  margin: 0 0 24px;
  font-size: clamp(34px, 4vw, 58px);
  letter-spacing: -.055em;
  line-height: .95;
}

.legal-copy h3 {
  margin: 30px 0 12px;
  font-size: 18px;
}

.legal-copy p,
.legal-copy li {
  color: #c4bdc9;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.72;
}

.legal-copy p {
  margin: 0 0 20px;
}

.legal-copy ul {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.legal-copy li {
  position: relative;
  padding: 8px 0 8px 24px;
}

.legal-copy li::before {
  position: absolute;
  top: 20px;
  left: 0;
  width: 8px;
  height: 2px;
  background: var(--cyan);
  content: "";
}

.legal-note {
  margin: 10px 0 25px;
  padding: 22px 24px;
  border-left: 3px solid var(--cyan);
  background: #160821;
}

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

.cookie-table-wrap {
  overflow-x: auto;
  margin: 26px 0 34px;
}

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

.cookie-table th,
.cookie-table td {
  padding: 16px 14px;
  border: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.cookie-table th {
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 10px;
}

.cookie-table td {
  color: #c4bdc9;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.5;
}

.legal-footer {
  padding: 42px 0;
  background: var(--purple);
}

.legal-footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 25px;
  align-items: end;
}

.legal-footer p {
  margin: 0;
  color: #b9a9c7;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 11px;
}

.legal-footer-nav {
  justify-content: flex-end;
  font-size: 12px;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.legal-links a,
.legal-links button {
  color: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 11px;
  text-decoration: none;
}

.legal-links a:hover,
.legal-links a:focus-visible,
.legal-links button:hover,
.legal-links button:focus-visible {
  color: var(--cyan);
}

.site-legal-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px max(32px, calc((100% - 1360px) / 2));
  border-top: 1px solid #5a3979;
  color: #b9a9c7;
  background: var(--purple);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
}

.site-legal-strip > span {
  color: var(--cyan);
  font-weight: 700;
}

.site-legal-strip div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 24px;
}

nav.site-legal-strip a,
.site-legal-strip button {
  display: inline-flex !important;
  cursor: pointer;
  border: 0;
  padding: 0;
  color: inherit;
  background: none;
  text-transform: inherit;
  letter-spacing: inherit;
  font: inherit;
  text-decoration: none;
}

nav.site-legal-strip a:hover,
nav.site-legal-strip a:focus-visible,
.site-legal-strip button:hover,
.site-legal-strip button:focus-visible {
  color: var(--cyan);
}

.cookie-consent {
  z-index: 1000;
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: min(560px, calc(100% - 44px));
  color: var(--paper);
  border: 1px solid #655477;
  background: #100517f7;
  box-shadow: 0 28px 90px #0009;
  transform-origin: right bottom;
  animation: cookie-in .34s ease-out both;
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent__accent {
  height: 3px;
  background: var(--cyan);
}

.cookie-consent__inner {
  padding: 25px;
}

.cookie-consent__eyebrow {
  margin: 0 0 11px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 10px;
  font-weight: 700;
}

.cookie-consent h2 {
  margin: 0 0 13px;
  font-size: clamp(28px, 5vw, 42px);
  letter-spacing: -.05em;
  line-height: .95;
}

.cookie-consent p {
  margin: 0;
  color: #c4bdc9;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.55;
}

.cookie-consent a {
  color: var(--paper);
  text-decoration-color: var(--cyan);
  text-underline-offset: 3px;
}

.cookie-consent__details {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.cookie-consent__details[hidden] {
  display: none;
}

.cookie-consent__option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}

.cookie-consent__option strong {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}

.cookie-consent__option span {
  color: #9f96a7;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  line-height: 1.4;
}

.cookie-consent__status {
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 9px;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.cookie-consent__button {
  cursor: pointer;
  border: 1px solid #6e5f79;
  border-radius: 999px;
  padding: 11px 16px;
  color: var(--paper);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}

.cookie-consent__button:hover,
.cookie-consent__button:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
}

.cookie-consent__button--primary {
  border-color: var(--cyan);
  background: var(--cyan);
  color: var(--ink);
}

.cookie-consent__button--primary:hover,
.cookie-consent__button--primary:focus-visible {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.cookie-consent__message {
  margin-bottom: 16px !important;
  padding: 11px 13px;
  border-left: 2px solid var(--cyan);
  background: #240147;
}

@keyframes cookie-in {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 800px) {
  .legal-shell {
    width: min(100% - 36px, 680px);
  }

  .legal-header {
    min-height: 76px;
  }

  .legal-nav {
    justify-content: flex-end;
    gap: 8px 14px;
  }

  .legal-nav a {
    font-size: 9px;
  }

  .site-legal-strip {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px 18px 28px;
  }

  .site-legal-strip div {
    justify-content: flex-start;
    gap: 14px 20px;
  }

  .legal-hero,
  .legal-layout,
  .legal-footer-inner {
    grid-template-columns: 1fr;
  }

  .legal-hero {
    gap: 42px;
    padding: 75px 0 62px;
  }

  .legal-hero h1 {
    font-size: clamp(62px, 22vw, 105px);
  }

  .legal-layout {
    gap: 58px;
    padding: 58px 0 85px;
  }

  .legal-toc {
    position: static;
  }

  .legal-footer-nav {
    justify-content: flex-start;
  }

  .cookie-consent {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
  }

  .cookie-consent__inner {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cookie-consent { animation: none; }
}
