/* Shared styles for East Point legal / prose pages */
:root {
  --bg: #0a0b0d;
  --bg-elevated: #111317;
  --bg-card: #14171c;
  --border: #1f2329;
  --border-strong: #2a2f37;
  --text: #e8ebf0;
  --text-dim: #8a929e;
  --text-muted: #7d8593;
  --accent: #ff5b1f;
  --accent-dim: #c94717;
  --font-display: 'Fraunces', serif;
  --font-body: 'Inter Tight', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

/* Nav */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 11, 13, 0.72);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.logo-mark {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: block;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  font-size: 14px;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--text);
  color: var(--bg);
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.15s;
}

.nav-cta:hover { transform: translateY(-1px); }

/* Legal content */
.legal {
  padding: 80px 0 100px;
}

.legal-inner {
  max-width: 760px;
}

.legal-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 60px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.legal-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding-bottom: 32px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.legal-lede {
  font-size: 18px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 40px;
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 48px 0 16px;
}

.legal h3 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  margin: 28px 0 10px;
  color: var(--text);
}

.legal p {
  color: var(--text-dim);
  margin-bottom: 16px;
}

.legal ul {
  list-style: none;
  margin: 0 0 16px;
}

.legal li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: var(--text-dim);
}

.legal li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.legal a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s;
}

.legal a:hover { text-decoration-color: var(--accent); }

.legal strong { color: var(--text); font-weight: 600; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  background: var(--bg);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-bottom a:hover { color: var(--text); }

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .nav-links { display: none; }
  .legal { padding: 48px 0 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav-cta:hover { transform: none; }
}
