:root {
  color-scheme: dark;
  --bg: #080a09;
  --panel: #101410;
  --panel-2: #151a15;
  --text: #f1f0e9;
  --muted: #aaa99e;
  --line: #2b312c;
  --green: #55d68c;
  --gold: #d0ae6b;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% -10%, rgba(75, 129, 91, 0.13), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.72;
}

a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: #8ee6b4; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 10, 9, 0.92);
  backdrop-filter: blur(16px);
}

.topbar-inner {
  width: min(calc(100% - 40px), var(--max));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.15em;
  font-size: 13px;
  font-weight: 700;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 7px;
  object-fit: cover;
}

.topnav { display: flex; align-items: center; gap: 22px; }
.topnav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.topnav a[aria-current="page"], .topnav a:hover { color: var(--text); }

.hero {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 80px 0 52px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  max-width: 800px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.summary {
  max-width: 760px;
  margin: 24px 0 0;
  color: #c9c8be;
  font-size: 18px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 13px;
}

.layout {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 52px 0 88px;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 102px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(16, 20, 16, 0.78);
}

.toc-title {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin: 7px 0; color: #777c77; font-size: 13px; }
.toc a { color: #b9bcb6; text-decoration: none; }
.toc a:hover { color: var(--green); }

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

.legal-copy section {
  scroll-margin-top: 104px;
  padding: 0 0 38px;
  margin: 0 0 38px;
  border-bottom: 1px solid var(--line);
}

.legal-copy section:last-child { border-bottom: 0; }

h2 {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 25px;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

h3 { margin: 26px 0 8px; font-size: 17px; }
p { margin: 0 0 16px; }
ul { margin: 12px 0 18px; padding-left: 24px; }
li { margin: 8px 0; }
.legal-copy p, .legal-copy li { color: #c7c8c1; }
.legal-copy strong { color: var(--text); }

.notice {
  margin: 20px 0;
  padding: 18px 20px;
  border: 1px solid #3e473f;
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  background: var(--panel-2);
}

.notice p:last-child { margin-bottom: 0; }

.footer {
  border-top: 1px solid var(--line);
  background: #060807;
}

.footer-inner {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 32px 0 48px;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  color: var(--muted);
  font-size: 13px;
}

.footer p { max-width: 650px; margin: 0; }
.footer-links { display: flex; gap: 18px; white-space: nowrap; }

@media (max-width: 800px) {
  .topbar-inner, .hero, .layout, .footer-inner { width: min(calc(100% - 32px), var(--max)); }
  .topbar-inner { min-height: 64px; }
  .brand span { display: none; }
  .topnav { gap: 14px; }
  .topnav a { font-size: 13px; }
  .hero { padding: 54px 0 38px; }
  .summary { font-size: 16px; }
  .layout { display: block; padding: 34px 0 62px; }
  .toc { position: static; margin-bottom: 38px; }
  .footer-inner { flex-direction: column; }
  .footer-links { flex-wrap: wrap; }
}

@media (max-width: 430px) {
  .topnav a:first-child { display: none; }
  h1 { font-size: 42px; }
}

