:root {
  --ink: #11100f;
  --paper: #f0ece4;
  --muted: rgba(240, 236, 228, 0.62);
  --line: rgba(240, 236, 228, 0.2);
  --gold: #c9a24e;
  --pad: clamp(18px, 4vw, 64px);
  --display: "Geologica", sans-serif;
  --text: "Manrope", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(circle at 82% 4%, rgba(201, 162, 78, 0.08), transparent 30rem),
    var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.65;
}

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

.legal-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 74px;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--line);
  background: rgba(17, 16, 15, 0.88);
  backdrop-filter: blur(16px);
}

.legal-brand {
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.045em;
}

.legal-back {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.legal-back:hover {
  color: var(--paper);
}

.legal-main {
  display: grid;
  grid-template-columns: minmax(210px, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(48px, 8vw, 140px);
  width: min(1380px, 100%);
  margin: 0 auto;
  padding: clamp(70px, 11vh, 140px) var(--pad) 120px;
}

.legal-intro {
  position: sticky;
  top: 120px;
  align-self: start;
}

.legal-kicker,
.legal-updated {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-intro h1 {
  margin: 28px 0 32px;
  font-family: var(--display);
  font-size: clamp(3rem, 6.4vw, 7.3rem);
  font-weight: 600;
  line-height: 0.82;
  letter-spacing: -0.085em;
  overflow-wrap: anywhere;
}

.legal-nav {
  display: grid;
  gap: 9px;
  margin-top: 42px;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal-nav a {
  color: var(--muted);
}

.legal-nav a:hover {
  color: var(--gold);
}

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

.legal-section {
  padding: 0 0 clamp(64px, 9vh, 110px);
  scroll-margin-top: 110px;
}

.legal-section + .legal-section {
  padding-top: clamp(64px, 9vh, 110px);
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  max-width: 920px;
  margin: 0 0 38px;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.7vw, 5.4rem);
  font-weight: 600;
  line-height: 0.93;
  letter-spacing: -0.07em;
}

.legal-section h3 {
  margin: 42px 0 12px;
  font-size: 1rem;
  font-weight: 600;
}

.legal-section p,
.legal-section li,
.legal-details dd {
  max-width: 820px;
  color: rgba(240, 236, 228, 0.82);
}

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

.legal-section ol,
.legal-section ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 1.25rem;
}

.legal-note {
  margin-top: 34px !important;
  padding: 22px 24px;
  border: 1px solid rgba(201, 162, 78, 0.42);
  color: var(--paper) !important;
}

.legal-details {
  display: grid;
  grid-template-columns: minmax(150px, 0.35fr) 1fr;
  margin: 0;
  border-top: 1px solid var(--line);
}

.legal-details div {
  display: contents;
}

.legal-details dt,
.legal-details dd {
  margin: 0;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.legal-details dt {
  padding-right: 20px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal-details a,
.legal-section a {
  text-decoration: underline;
  text-decoration-color: rgba(201, 162, 78, 0.6);
  text-underline-offset: 0.22em;
}

.legal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  padding: 26px var(--pad);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .legal-header {
    min-height: 62px;
  }

  .legal-main {
    display: block;
    padding-top: 64px;
  }

  .legal-intro {
    position: static;
    margin-bottom: 78px;
  }

  .legal-intro h1 {
    margin-bottom: 24px;
    font-size: clamp(3.2rem, 16vw, 5.2rem);
  }

  .legal-nav {
    margin-top: 30px;
  }

  .legal-details {
    display: block;
  }

  .legal-details div {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
  }

  .legal-details dt,
  .legal-details dd {
    padding: 0;
    border: 0;
  }

  .legal-details dd {
    margin-top: 6px;
  }
}
