:root {
  color-scheme: dark;
  --ink: #f4f2ed;
  --muted: #a4acb9;
  --dim: #687384;
  --line: rgba(175, 190, 211, 0.24);
  --blue: #82aaff;
  --display: "Bodoni Moda", Didot, "Times New Roman", serif;
  --mono: "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  background: #010205;
}

body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  background: #010205;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.9rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.legal-shell {
  width: min(100% - 2rem, 72rem);
  margin: 0 auto;
}

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

.legal-brand {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.legal-brand img {
  width: 2.8rem;
  height: 2.8rem;
  object-fit: contain;
}

.legal-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-nav a {
  min-height: 2.75rem;
  line-height: 2.75rem;
}

.legal-nav a:last-child {
  color: var(--blue);
}

.legal-main {
  width: min(100%, 52rem);
  padding: clamp(4rem, 9vw, 8rem) 0 clamp(5rem, 10vw, 9rem);
}

.legal-kicker {
  margin: 0 0 1rem;
  color: var(--blue);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.legal-main h1 {
  max-width: 48rem;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.7rem, 9vw, 7rem);
  font-weight: 400;
  letter-spacing: -0.07em;
  line-height: 0.88;
}

.legal-summary {
  max-width: 42rem;
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-meta {
  margin-top: 1.1rem;
  color: var(--dim);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-sections {
  margin-top: clamp(4rem, 9vw, 7rem);
  border-top: 1px solid var(--line);
}

.legal-section {
  display: grid;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: minmax(9rem, 0.55fr) minmax(0, 1.45fr);
  gap: 2rem;
}

.legal-section h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.legal-section div {
  color: var(--muted);
}

.legal-section p,
.legal-section ul {
  margin: 0;
}

.legal-section p + p,
.legal-section p + ul,
.legal-section ul + p {
  margin-top: 1rem;
}

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

.legal-footer {
  display: flex;
  min-height: 6rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-footer nav {
  display: flex;
  gap: 1.25rem;
}

.not-found {
  display: grid;
  min-height: calc(100svh - 12rem);
  align-content: center;
}

.not-found .legal-summary {
  max-width: 34rem;
}

.not-found-actions {
  display: flex;
  margin-top: 2.5rem;
  gap: 1.5rem;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.not-found-actions a {
  min-height: 2.75rem;
  border-bottom: 1px solid currentColor;
  line-height: 2.75rem;
}

.not-found-actions a:last-child {
  color: var(--blue);
}

@media (max-width: 42rem) {
  .legal-shell {
    width: min(100% - 2rem, 72rem);
  }

  .legal-header {
    min-height: 4.5rem;
  }

  .legal-brand span {
    display: none;
  }

  .legal-brand img {
    width: 2.6rem;
    height: 2.6rem;
  }

  .legal-nav {
    gap: 1rem;
    font-size: 0.58rem;
  }

  .legal-main {
    padding-top: 4rem;
  }

  .legal-main h1 {
    font-size: clamp(3.5rem, 18vw, 5.5rem);
  }

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

  .legal-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem 0;
  }

  .legal-footer nav {
    flex-wrap: wrap;
  }
}

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

@media (forced-colors: active) {
  :root {
    --ink: CanvasText;
    --muted: CanvasText;
    --dim: CanvasText;
    --line: CanvasText;
    --blue: LinkText;
  }
}
