*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #090c09;
  --surface:   #111a11;
  --surface2:  #172117;
  --border:    #1e2e1e;
  --green-dark:#1b3a1b;
  --lime:      #aaee00;
  --lime-dim:  #7db800;
  --text:      #e2e8e2;
  --muted:     #6b8a6b;
  --red:       #e05c5c;
  --radius:    14px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9,12,9,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 17px;
}

.bolt-icon {
  width: 34px;
  height: 34px;
  background: var(--lime);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bolt-icon svg { width: 18px; height: 18px; fill: #090c09; }

.nav-links {
  display: flex;
  gap: 6px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover {
  color: var(--lime);
  background: var(--green-dark);
}

.nav-links a.active {
  color: var(--lime);
  background: var(--green-dark);
}

/* ── HERO ── */
.hero {
  padding: 72px 24px 56px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  background: var(--green-dark);
  color: var(--lime);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 99px;
  margin-bottom: 20px;
  border: 1px solid rgba(170,238,0,0.2);
}

.hero h1 {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero h1 span { color: var(--lime); }

.hero p {
  color: var(--muted);
  font-size: 15px;
  max-width: 480px;
  margin: 0 auto;
}

/* ── LAST UPDATED PILL ── */
.updated-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 13px;
}

.updated-pill .dot {
  width: 6px; height: 6px;
  background: var(--lime);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── CROSS-LINK CARD (link to the other legal doc) ── */
.crosslink-wrap {
  max-width: 760px;
  margin: 0 auto 48px;
  padding: 0 24px;
}

.crosslink {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.crosslink-text {
  font-size: 13.5px;
  color: var(--muted);
}

.crosslink-text strong { color: var(--text); }

.crosslink a.crosslink-btn {
  color: var(--text);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 16px;
  background: var(--surface2);
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.crosslink a.crosslink-btn:hover { border-color: var(--lime); color: var(--lime); }

/* ── TOC ── */
.toc-wrap {
  max-width: 760px;
  margin: 0 auto 48px;
  padding: 0 24px;
}

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.toc-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: 100%;
  margin-bottom: 4px;
}

.toc a {
  color: var(--text);
  text-decoration: none;
  font-size: 13.5px;
  padding: 5px 12px;
  background: var(--surface2);
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: border-color 0.15s, color 0.15s;
}

.toc a:hover { border-color: var(--lime); color: var(--lime); }

/* ── MAIN CONTENT ── */
.content {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.doc-section {
  margin-bottom: 64px;
}

.doc-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.doc-header-icon {
  width: 42px; height: 42px;
  background: var(--green-dark);
  border: 1px solid rgba(170,238,0,0.25);
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.doc-header-icon svg { width: 20px; height: 20px; stroke: var(--lime); fill: none; stroke-width: 1.75; }

.doc-header-text h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

.doc-header-text span {
  font-size: 13px;
  color: var(--muted);
}

/* clauses */
.clause {
  margin-bottom: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.clause h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 10px;
}

.clause p {
  color: #b8c8b8;
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 10px;
}

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

.clause ul {
  list-style: none;
  margin: 8px 0 0;
}

.clause ul li {
  color: #b8c8b8;
  font-size: 15px;
  line-height: 1.7;
  padding: 4px 0 4px 22px;
  position: relative;
}

.clause ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 6px; height: 6px;
  background: var(--lime-dim);
  border-radius: 50%;
}

.highlight-box {
  background: rgba(170,238,0,0.06);
  border: 1px solid rgba(170,238,0,0.2);
  border-radius: 10px;
  padding: 14px 18px;
  margin-top: 12px;
  font-size: 14px;
  color: #c8ddc8;
}

.highlight-box strong { color: var(--lime); }

/* ── CONTACT CARD ── */
.contact-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px;
  text-align: center;
  margin-top: 56px;
}

.contact-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-card p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
}

.contact-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--lime);
  color: #090c09;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  padding: 10px 24px;
  border-radius: 10px;
  transition: opacity 0.15s;
}

.contact-card a:hover { opacity: 0.88; }

/* ── INDEX-ONLY: DOC CARDS ── */
.doc-cards {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.doc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.15s, transform 0.15s;
}

.doc-card:hover {
  border-color: var(--lime);
  transform: translateY(-2px);
}

.doc-card .doc-card-icon {
  width: 44px; height: 44px;
  background: var(--green-dark);
  border: 1px solid rgba(170,238,0,0.25);
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
}

.doc-card .doc-card-icon svg { width: 21px; height: 21px; stroke: var(--lime); fill: none; stroke-width: 1.75; }

.doc-card h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.doc-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

.doc-card .doc-card-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--lime);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

footer .foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
}

footer .foot-bolt {
  width: 20px; height: 20px;
  background: var(--lime);
  border-radius: 5px;
  display: inline-flex; align-items: center; justify-content: center;
}

footer .foot-bolt svg { width: 10px; height: 10px; fill: #090c09; }

/* responsive */
@media (max-width: 540px) {
  .nav-links { display: none; }
  .toc { flex-direction: column; }
  .doc-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .clause { padding: 18px 18px; }
  .doc-cards { grid-template-columns: 1fr; }
  .crosslink { flex-direction: column; align-items: flex-start; }
}
