@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&family=Montserrat:wght@600;700&display=swap');

:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --panel: #111111;
  --panel-raised: #171717;
  --line: rgba(255, 255, 255, .11);
  --text: #f4f2ef;
  --muted: #b2afab;
  --subtle: #85817d;
  --orange: #ff7700;
  --teal: #5bc4d8;
  --reading-width: 790px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; border-radius: 3px; }
.legal-shell { min-height: 100vh; }
.legal-header {
  border-bottom: 1px solid var(--line);
  background: #0d0d0d;
}
.header-inner, .legal-main, .legal-footer-inner {
  width: min(100% - 48px, 1080px);
  margin-inline: auto;
}
.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.brand img { width: 39px; height: auto; display: block; }
.brand-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .31em;
}
.back-home {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  transition: color 160ms ease;
}
.back-home:hover, .legal-footer a:hover { color: var(--text); }
.back-home span { color: var(--orange); margin-right: 8px; }
.legal-main { padding-block: 62px 96px; }
.legal-heading {
  max-width: var(--reading-width);
  margin: 0 auto 42px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  color: var(--orange);
  font: 500 10px/1.4 'JetBrains Mono', monospace;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 62px);
  line-height: 1.04;
  letter-spacing: -.055em;
  font-weight: 700;
}
.effective-date {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.effective-date strong { color: var(--text); font-weight: 500; }
.legal-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, var(--reading-width));
  justify-content: center;
  align-items: start;
  gap: 50px;
}
.contents {
  position: sticky;
  top: 28px;
  padding: 19px 16px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.contents h2 {
  margin: 0 0 13px;
  color: var(--subtle);
  font: 500 10px/1.4 'JetBrains Mono', monospace;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.contents ol {
  list-style: none;
  counter-reset: section;
  padding: 0;
  margin: 0;
}
.contents li + li { margin-top: 8px; }
.contents a {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-decoration: none;
}
.contents a:hover { color: var(--orange); }
.legal-copy { min-width: 0; }
.legal-copy > p:first-child { margin-top: 0; }
.legal-copy p, .legal-copy li {
  color: #cbc8c4;
  font-size: 15px;
  line-height: 1.78;
}
.legal-copy p { margin: 0 0 17px; }
.legal-copy ol, .legal-copy ul { padding-left: 25px; margin: 0 0 20px; }
.legal-copy li { padding-left: 4px; margin: 0 0 8px; }
.legal-section {
  padding: 29px 0 11px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 22px;
}
.legal-section h2 {
  margin: 0 0 17px;
  color: var(--text);
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -.025em;
}
.legal-section h2 .section-number {
  color: var(--orange);
  font-family: 'JetBrains Mono', monospace;
  font-size: .75em;
  letter-spacing: 0;
  margin-right: 8px;
}
.legal-section h3 {
  margin: 22px 0 8px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
}
.legal-section h3 .clause-number {
  color: var(--teal);
  font-family: 'JetBrains Mono', monospace;
  font-size: .86em;
  font-weight: 500;
  margin-right: 5px;
}
.legal-section h3 + p { margin-top: 0; }
.legal-copy a { color: var(--teal); text-underline-offset: 3px; }
.legal-copy a:hover { color: #a4e8f2; }
.closing {
  margin-top: 26px !important;
  padding: 19px 21px;
  border-left: 2px solid var(--orange);
  background: var(--panel);
  color: var(--text) !important;
}
.legal-footer {
  border-top: 1px solid var(--line);
  background: #070707;
}
.legal-footer-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--subtle);
  font-size: 12px;
}
.legal-footer nav { display: flex; gap: 22px; }
.legal-footer a { color: var(--muted); text-decoration: none; }
@media (max-width: 760px) {
  .header-inner, .legal-main, .legal-footer-inner { width: min(100% - 36px, 620px); }
  .header-inner { min-height: 74px; }
  .legal-main { padding-block: 43px 64px; }
  .legal-heading { margin-bottom: 27px; padding-bottom: 23px; }
  .legal-layout { display: flex; flex-direction: column; gap: 27px; }
  .contents { position: static; width: 100%; }
  .contents ol { columns: 2; column-gap: 20px; }
  .contents li { break-inside: avoid; }
  .legal-copy p, .legal-copy li { font-size: 14px; }
  .legal-footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 21px; }
}
@media (max-width: 420px) {
  .header-inner, .legal-main, .legal-footer-inner { width: calc(100% - 30px); }
  .brand img { width: 32px; }
  .brand-name { font-size: 12px; }
  .back-home { font-size: 12px; }
  .contents ol { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
@media print {
  :root { color-scheme: light; --text: #111; --muted: #444; --subtle: #555; --line: #bbb; }
  body { background: #fff; color: #111; font-size: 11pt; }
  .legal-header, .contents, .legal-footer { display: none; }
  .header-inner, .legal-main { width: 100%; }
  .legal-main { padding: 0; }
  .legal-heading { margin-bottom: 18pt; }
  .legal-layout { display: block; }
  .legal-copy p, .legal-copy li { color: #222; font-size: 10pt; }
  .legal-section { break-inside: avoid; }
  .legal-copy a { color: #111; }
}
