:root {
  color-scheme: dark;
  --acid: #a8ff2f;
  --acid-dark: #568c0d;
  --ink: #0b0e0c;
  --panel: #141814;
  --panel-2: #1c221c;
  --muted: #939d94;
}

* {
  box-sizing: border-box;
  border: 0 !important;
  box-shadow: none !important;
}

*:focus-visible { outline: none !important; }

html, body, * { scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { display: none; width: 0; height: 0; }

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

body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: #f4f7f4;
  font-family: "Nunito", ui-rounded, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  animation: page-enter .28s ease both;
  transition: opacity .2s ease;
}

body.page-leaving { opacity: 0; }

button, input { font: inherit; }
button { cursor: pointer; border-radius: 20px !important; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--acid); color: var(--ink); }

iconify-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: none;
}

.container-shell {
  width: min(1200px, calc(100% - 40px));
  margin-inline: auto;
}

.pressable {
  --press-depth: 4px;
  transform: translateY(0);
  box-shadow: 0 var(--press-depth) 0 var(--button-shadow, #050705) !important;
  transition: transform .16s ease, box-shadow .16s ease, filter .2s ease;
}

.pressable:hover { filter: brightness(1.05); }
.pressable:active { transform: translateY(var(--press-depth)); box-shadow: 0 0 0 var(--button-shadow, #050705) !important; }
.pressable-acid { --button-shadow: var(--acid-dark); }
.pressable-dark { --button-shadow: #050605; }

.legal-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: 104px;
}

.legal-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  color: #8e988f;
  font-size: 14px;
  font-weight: 800;
  transition: color .18s ease, background-color .18s ease;
}

.legal-nav a:hover { color: #fff; background: #151a15; }
.legal-nav a[aria-current="page"] { color: var(--ink); background: var(--acid); }

.legal-content {
  max-width: 820px;
  min-width: 0;
}

.legal-content h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(2.35rem, 6vw, 4.9rem);
  line-height: .98;
  letter-spacing: -.065em;
  font-weight: 900;
}

.legal-content > p.lead {
  max-width: 690px;
  margin: 24px 0 0;
  color: #9da69e;
  font-size: 17px;
  line-height: 1.75;
  font-weight: 650;
}

.legal-section { margin-top: 54px; }
.legal-section h2 { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 900; letter-spacing: -.025em; }
.legal-section h3 { margin: 28px 0 0; font-size: 17px; line-height: 1.35; font-weight: 900; }
.legal-section p, .legal-section li { color: #a0aaa1; font-size: 15px; line-height: 1.75; font-weight: 650; }
.legal-section p { margin: 14px 0 0; }
.legal-section ul, .legal-section ol { margin: 14px 0 0; padding-left: 22px; }
.legal-section li + li { margin-top: 8px; }
.legal-section a { color: var(--acid); }

.legal-note {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  border-radius: 28px;
  background: var(--panel-2);
  padding: 20px;
}

.legal-note p { margin: 0; color: #b1bbb2; font-size: 14px; line-height: 1.65; font-weight: 700; }

.legal-meta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  color: #687269;
  font-size: 13px;
  font-weight: 800;
}

@keyframes page-enter { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 800px) {
  .container-shell { width: min(100% - 28px, 1200px); }
  .legal-layout { grid-template-columns: 1fr; gap: 38px; }
  .legal-nav { position: static; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 5px; }
  .legal-nav a { flex: 0 0 auto; }
  .legal-content h1 { font-size: clamp(2.35rem, 12vw, 4rem); }
  .legal-section { margin-top: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
