/* SHARED STYLES — All legal and info pages.
   Brand 2026: dark-jade. Old token names preserved for backward-compat. */
:root {
  --bg:           #04060c;
  --bg-deep:      #070a14;
  --surface:      rgba(10, 15, 28, 0.92);
  --surface-2:    rgba(18, 26, 46, 0.92);
  --border:       rgba(108, 240, 155, 0.12);
  --border-bright:rgba(108, 240, 155, 0.30);
  --text:         rgba(245, 247, 255, 0.94);
  --text-dim:     rgba(245, 247, 255, 0.62);
  --text-muted:   rgba(245, 247, 255, 0.38);
  --gold:         #6cf09b;
  --gold-bright:  #9af8bc;
  --gold-deep:    #3acb6c;
  --gold-dim:     rgba(108, 240, 155, 0.14);
  --emerald:      #6cf09b;
  --red:          #ff5566;
  --cyan:         #4ec9ff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(251, 191, 36, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251, 191, 36, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
}

.wrap { max-width: 920px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }
.wrap-wide { max-width: 1280px; }

.mono { font-family: 'JetBrains Mono', monospace; }

/* NAV */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 16px; letter-spacing: -0.01em; text-decoration: none; color: var(--text); }
.logo-mark { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; }
.logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text .brand { font-weight: 800; }
.logo-text .sub { font-size: 9px; color: var(--text-muted); font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; margin-top: 1px; }

.btn {
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.2s;
  font-family: inherit;
}
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border-bright); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-primary { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #1a1a1a; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(251, 191, 36, 0.4); }

/* PAGE HEADER */
.page-header {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.page-tag {
  display: inline-block;
  padding: 5px 14px;
  background: var(--gold-dim);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 4px;
  margin-bottom: 18px;
}
.page-header h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.1;
}
.page-header h1 .gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-header p {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto;
}
.page-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 24px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: 'JetBrains Mono', monospace;
}

/* CONTENT */
.content {
  padding: 40px 0 100px;
}
.content h2 {
  font-size: 28px;
  font-weight: 800;
  margin-top: 56px;
  margin-bottom: 16px;
  color: var(--text);
  letter-spacing: -0.02em;
}
.content h2:first-child { margin-top: 0; }
.content h3 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--gold);
}
.content h4 {
  font-size: 16px;
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 10px;
  color: var(--text);
}
.content p {
  color: var(--text-dim);
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.75;
}
.content strong { color: var(--text); font-weight: 600; }
.content ul, .content ol {
  margin: 0 0 20px 24px;
  color: var(--text-dim);
}
.content li {
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.65;
}
.content a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(251, 191, 36, 0.3);
  transition: all 0.2s;
}
.content a:hover {
  color: var(--gold-bright);
  border-bottom-color: var(--gold-bright);
}
.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.content th, .content td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.content th {
  background: var(--bg-deep);
  font-weight: 700;
  color: var(--gold);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.content tr:last-child td { border-bottom: none; }
.content code {
  background: var(--bg-deep);
  color: var(--gold);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
}

.alert-box {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-left-width: 4px;
  border-radius: 8px;
  padding: 18px 22px;
  margin: 24px 0;
}
.alert-box strong { color: var(--red); }

.info-box {
  background: rgba(34, 211, 238, 0.05);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-left-width: 4px;
  border-radius: 8px;
  padding: 18px 22px;
  margin: 24px 0;
}
.info-box strong { color: var(--cyan); }

.success-box {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-left-width: 4px;
  border-radius: 8px;
  padding: 18px 22px;
  margin: 24px 0;
}
.success-box strong { color: var(--emerald); }

.gold-box {
  background: rgba(251, 191, 36, 0.05);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-left-width: 4px;
  border-radius: 8px;
  padding: 18px 22px;
  margin: 24px 0;
}
.gold-box strong { color: var(--gold); }

/* TOC */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin: 32px 0 48px;
}
.toc h4 {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  margin-bottom: 14px;
  margin-top: 0;
}
.toc ul { margin: 0; list-style: none; }
.toc li { margin-bottom: 6px; }
.toc a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  border-bottom: none;
  transition: color 0.2s;
  display: block;
  padding: 4px 0;
}
.toc a:hover { color: var(--gold); }

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  background: var(--bg-deep);
}
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 36px; max-width: 1280px; margin-left: auto; margin-right: auto; padding: 0 32px; }
.foot-col h4 {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  font-weight: 800;
}
.foot-col a {
  display: block;
  color: var(--text-dim);
  text-decoration: none;
  padding: 5px 0;
  font-size: 14px;
  transition: color 0.2s;
}
.foot-col a:hover { color: var(--gold); }
.foot-tagline { color: var(--text-dim); font-size: 14px; max-width: 300px; margin-top: 12px; line-height: 1.6; }
.foot-disclaimer {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 32px 0;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* BACK LINK */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  transition: gap 0.2s;
}
.back-link:hover { gap: 10px; }
.back-link::before { content: '←'; }

@media (max-width: 768px) {
  .nav-inner { padding: 0 20px; }
  .wrap { padding: 0 20px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; padding: 0 20px; }
  .foot-disclaimer { padding: 24px 20px 0; }
  .page-header { padding: 48px 0 40px; }
}
