/* page.css — shared styles for legal & contact pages */

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

:root {
  --bg: #0b0e0c;
  --bg-2: #0e1310;
  --surface: #111614;
  --card: #161b18;
  --border: #1e2521;
  --border-strong: #2a332e;
  --green: #21c55d;
  --green-dim: #16a34a;
  --green-subtle: rgba(33,197,93,0.08);
  --green-border: rgba(33,197,93,0.28);
  --warning: #fbbf24;
  --text: #ddeae0;
  --text-mid: #8a9e91;
  --text-muted: #4a5c51;
  --logo-fg: #051008;
  --max-w: 820px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { display: block; }

/* ── NAV (matches landing) ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,14,12,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; gap: 24px;
  height: 64px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 800;
  color: var(--text);
  letter-spacing: -0.4px;
  text-decoration: none;
}
.nav-logo {
  width: 32px; height: 32px;
  background: var(--green);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 1px rgba(33,197,93,0.22), 0 3px 14px rgba(33,197,93,0.18);
}
.nav-links {
  display: flex; align-items: center; gap: 28px;
  margin-left: auto;
}
.nav-links a {
  color: var(--text-mid);
  font-size: 13px; font-weight: 600;
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--green);
  color: var(--logo-fg) !important;
  padding: 7px 14px;
  border-radius: 7px;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--green-dim); text-decoration: none !important; }

/* ── PAGE LAYOUT ── */
.page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.page-eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  color: var(--green);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.page-title {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 14px;
}
.page-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.prose {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-mid);
}
.prose > * + * { margin-top: 18px; }
.prose h2 {
  font-size: 22px; font-weight: 700;
  color: var(--text);
  letter-spacing: -0.4px;
  margin-top: 44px;
  margin-bottom: 12px;
  scroll-margin-top: 80px;
}
.prose h3 {
  font-size: 16px; font-weight: 700;
  color: var(--text);
  margin-top: 28px;
  margin-bottom: 8px;
}
.prose strong { color: var(--text); font-weight: 600; }
.prose ul, .prose ol {
  padding-left: 22px;
}
.prose li { margin-top: 6px; }
.prose code {
  font-family: 'SF Mono', ui-monospace, monospace;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--text);
}
.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

/* TOC for long pages */
.toc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 36px;
}
.toc-title {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.toc ul { list-style: none; padding: 0; }
.toc li { margin-top: 4px; }
.toc a {
  color: var(--text-mid);
  font-size: 13.5px;
  text-decoration: none;
}
.toc a:hover { color: var(--green); }

.notice {
  background: rgba(251,191,36,0.06);
  border: 1px solid rgba(251,191,36,0.25);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 24px 0;
  display: flex; gap: 12px;
  align-items: flex-start;
  color: var(--text-mid);
  font-size: 13.5px;
  line-height: 1.6;
}
.notice strong { color: var(--text); font-weight: 700; }
.notice-icon {
  color: var(--warning);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Contact page specifics */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}
.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.2s;
}
.contact-card:hover { border-color: var(--green-border); }
.contact-card h3 {
  font-size: 15px; font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 8px;
}
.contact-card h3 svg { color: var(--green); }
.contact-card p {
  font-size: 13px; color: var(--text-mid);
  margin-bottom: 14px;
}
.contact-card a.contact-link {
  display: inline-block;
  color: var(--green);
  font-weight: 600;
  font-size: 14px;
}

.business-card {
  margin-top: 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.business-card h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.business-card dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 16px;
  font-size: 14px;
  line-height: 1.6;
}
.business-card dt { color: var(--text-muted); font-weight: 500; }
.business-card dd { color: var(--text); font-weight: 600; }

/* ── FOOTER (matches landing) ── */
footer {
  padding: 40px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}
.footer-bottom a { color: var(--text-muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--text-mid); }
.footer-links {
  display: flex; gap: 18px;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .business-card dl { grid-template-columns: 1fr; gap: 4px 0; }
  .business-card dt { margin-top: 8px; font-size: 12px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

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