:root {
  color: #f4f1ec;
  background: #0d0d0d;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --dark: #0d0d0d;
  --paper: #efede9;
  --ink: #171513;
  --muted: #655f57;
  --line: #cbc5bc;
  --accent: #c68a45;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--dark);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

a:hover {
  color: #8e5f2d;
}

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

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

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 12px clamp(18px, 5vw, 72px);
  color: #f4f1ec;
  background: var(--dark);
  border-bottom: 1px solid rgb(255 255 255 / 10%);
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.legal-brand:hover,
.legal-header > a:hover {
  color: #fff;
}

.legal-brand img {
  width: 34px;
  height: 34px;
}

.legal-header > a {
  color: #c9c3bb;
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px solid #6e665d;
}

.legal-hero {
  display: grid;
  grid-template-columns: minmax(190px, 0.34fr) minmax(0, 1fr);
  gap: clamp(36px, 8vw, 120px);
  padding: clamp(72px, 10vw, 140px) clamp(18px, 7vw, 108px) clamp(70px, 8vw, 110px);
  color: #f4f1ec;
  background: #12110f;
  border-bottom: 1px solid #2d2a26;
}

.legal-kicker,
.legal-updated {
  color: #aaa39a;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(54px, 7vw, 104px);
  font-weight: 540;
  line-height: 0.94;
  letter-spacing: -0.065em;
}

.legal-hero p:not(.legal-kicker) {
  max-width: 700px;
  margin: 28px 0 0;
  color: #c5beb6;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.58;
}

.legal-updated {
  margin-top: 34px;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(190px, 0.34fr) minmax(0, 1fr);
  gap: clamp(36px, 8vw, 120px);
  padding: clamp(70px, 9vw, 126px) clamp(18px, 7vw, 108px);
}

.legal-nav {
  position: sticky;
  top: 32px;
  align-self: start;
  display: grid;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.legal-nav strong {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-nav a {
  text-decoration: none;
}

.legal-content {
  max-width: 850px;
}

.legal-content section {
  padding: 0 0 52px;
  margin: 0 0 52px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 24px;
}

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

.legal-content h2 {
  margin: 0;
  font-size: clamp(31px, 3.2vw, 48px);
  font-weight: 560;
  line-height: 1;
  letter-spacing: -0.045em;
}

.legal-content p,
.legal-content li {
  color: #504a43;
  font-size: 17px;
  line-height: 1.68;
}

.legal-content p {
  margin: 22px 0 0;
}

.legal-content ul {
  margin: 20px 0 0;
  padding-left: 20px;
}

.legal-content li + li {
  margin-top: 8px;
}

.legal-note {
  padding: 20px 22px;
  background: #e5e0d8;
  border-left: 3px solid var(--accent);
}

.legal-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 7vw, 108px);
  color: #aaa39a;
  font-size: 12px;
  background: var(--dark);
  border-top: 1px solid #2d2a26;
}

.legal-footer nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.legal-footer a {
  color: #c9c3bb;
  text-decoration: none;
}

.legal-footer a:hover,
.legal-footer a[aria-current="page"] {
  color: #fff;
}

.legal-footer a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

@media (max-width: 760px) {
  .legal-hero,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-bottom: 26px;
    border-bottom: 1px solid var(--line);
  }

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

  .legal-footer {
    flex-direction: column;
  }

  .legal-footer nav {
    order: 3;
  }
}

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