:root {
  --bg: #0d140f;
  --bg-soft: #172118;
  --text: #f3f4ec;
  --muted: rgba(243, 244, 236, 0.72);
  --faint: rgba(243, 244, 236, 0.48);
  --accent: #9fd08c;
  --accent-strong: #d8bd6a;
  --line: rgba(243, 244, 236, 0.14);
  --line-strong: rgba(243, 244, 236, 0.24);
  --max: 1180px;
}

@font-face {
  font-family: 'DMSans';
  src: url('/fonts/DMSans-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PlayfairDisplay';
  src: url('/fonts/PlayfairDisplay-VariableFont_wght.ttf') format('truetype');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'DMSans', system-ui, sans-serif;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(243, 244, 236, 0.055) 1px, transparent 1px) 0
      0 / 84px 84px,
    linear-gradient(180deg, rgba(159, 208, 140, 0.16), transparent 28rem),
    linear-gradient(180deg, #182318 0%, var(--bg) 52%, #0a100c 100%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 12% 8%,
      rgba(216, 189, 106, 0.12),
      transparent 24rem
    ),
    radial-gradient(
      circle at 88% 12%,
      rgba(159, 208, 140, 0.1),
      transparent 20rem
    ),
    linear-gradient(180deg, transparent, rgba(10, 16, 12, 0.58));
}

a {
  color: inherit;
  text-decoration-color: rgba(216, 189, 106, 0.46);
  text-underline-offset: 0.2em;
  transition:
    color 140ms ease,
    text-decoration-color 140ms ease;
}

a:hover {
  color: var(--accent-strong);
  text-decoration-color: currentColor;
}

.page-shell {
  position: relative;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 76px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: 144px;
  height: auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.nav a,
.chip-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.nav a {
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.nav a:hover::after,
.nav a[aria-current='page']::after {
  transform: scaleX(1);
}

.nav a[aria-current='page'] {
  color: var(--text);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
}

.language-switcher button {
  appearance: none;
  min-height: 34px;
  padding: 0 11px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
  cursor: pointer;
  transition:
    background-color 140ms ease,
    color 140ms ease;
}

.language-switcher button:hover,
.language-switcher button[aria-pressed='true'] {
  color: var(--text);
  background: rgba(243, 244, 236, 0.08);
}

.legal-flow {
  display: grid;
  gap: 0;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
  min-height: 50vh;
  padding: 26px 0 clamp(36px, 6vw, 72px);
  border-bottom: 1px solid var(--line-strong);
}

.hero::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -1px;
  width: min(42vw, 420px);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-strong));
}

.heading {
  display: flex;
  flex-direction: column;
  grid-column: 1 / -1;
  gap: 12px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 42px;
  height: 1px;
  background: currentColor;
}

h1,
h2,
h3 {
  font-family: 'PlayfairDisplay', Georgia, serif;
  font-weight: 600;
  line-height: 1.02;
  margin: 0;
}

h1 {
  max-width: 11ch;
  font-size: clamp(4rem, 8.5vw, 7.25rem);
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.55rem);
}

h3 {
  font-size: 1.08rem;
  line-height: 1.18;
}

.lede {
  max-width: 58ch;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.45vw, 1.2rem);
  line-height: 1.75;
}

.hero-meta {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.pill,
.chip-link {
  width: fit-content;
  max-width: 100%;
}

.pill {
  display: inline-flex;
  color: var(--accent-strong);
  font-size: 0.94rem;
  font-weight: 700;
}

.chip-link {
  color: var(--text);
}

.chip-link::after {
  content: '->';
  margin-left: 10px;
  color: var(--accent);
  transition: transform 140ms ease;
}

.chip-link:hover::after {
  transform: translateX(4px);
}

.accent {
  color: var(--accent-strong);
}

.legal-section {
  display: grid;
  grid-template-columns: minmax(160px, 0.32fr) minmax(0, 0.68fr);
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(34px, 5.5vw, 72px) 0;
  border-bottom: 1px solid var(--line);
}

.legal-section h2 {
  position: sticky;
  top: 24px;
  align-self: start;
  color: var(--text);
}

.legal-section > p,
.legal-section > ul,
.legal-section > ol,
.legal-section > .mini-grid,
.legal-section > .callout {
  grid-column: 2;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.82;
}

.legal-section p {
  margin: 0;
}

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

.legal-section strong {
  color: var(--text);
  font-weight: 720;
}

.legal-section ul,
.legal-section ol {
  margin: 0;
  padding-left: 0;
  list-style: none;
  counter-reset: legal-list;
}

.legal-section li {
  position: relative;
  padding: 14px 0 14px 34px;
  border-top: 1px solid rgba(243, 244, 236, 0.1);
}

.legal-section li::before {
  position: absolute;
  left: 0;
  top: 20px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1;
}

.legal-section ul li::before {
  content: '';
  width: 8px;
  height: 8px;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
}

.legal-section ol li {
  counter-increment: legal-list;
}

.legal-section ol li::before {
  content: counter(legal-list, decimal-leading-zero);
  top: 18px;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  border-top: 1px solid rgba(243, 244, 236, 0.1);
}

.mini-section {
  padding: 22px 0;
  border-bottom: 1px solid rgba(243, 244, 236, 0.1);
}

.mini-section h3 {
  margin-bottom: 10px;
  color: var(--text);
}

.mini-section p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.72;
}

.callout {
  position: relative;
  margin-top: 24px;
  padding: 0 0 0 24px;
  border-left: 2px solid var(--accent-strong);
}

.callout p {
  margin: 0;
  color: rgba(243, 244, 236, 0.82);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
  padding-top: 24px;
  color: var(--faint);
  font-size: 0.95rem;
  line-height: 1.65;
}

.footer a {
  color: var(--text);
}

@media (max-width: 860px) {
  .page-shell {
    width: min(100% - 28px, var(--max));
    padding-top: 20px;
    padding-bottom: 52px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .nav {
    justify-content: flex-start;
    gap: 16px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 48px 0 38px;
  }

  .hero-meta {
    padding-left: 0;
    border-left: 0;
  }

  h1 {
    font-size: clamp(3.25rem, 18vw, 5.3rem);
  }

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

  .legal-section h2 {
    position: static;
  }

  .legal-section > p,
  .legal-section > ul,
  .legal-section > ol,
  .legal-section > .mini-grid,
  .legal-section > .callout {
    grid-column: 1;
  }

  .mini-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    display: block;
  }
}
