/* LEGAL PAGES — /legal/eula.html and /legal/privacy.html (2026-09-06).
 * The Marketing page's own variables, nav and footer, copied from
 * client/public/marketing/index.html (its :root at lines 11-30, base rules
 * 46-53, .nav* rules 56-112, the 768px .nav-brand-sub rule, .footer 696-702)
 * so both legal pages read as that page and cannot drift from each other.
 * This file sits OUTSIDE client/src: design law's token counters do not
 * apply here and the raw colours are by design — they are the Marketing
 * page's, not the app's. Not copied: the hero, pricing, compare, contact,
 * loading and theme-toggle rules (no scripts run on these pages, so no
 * html.dark block either). */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #e8ecf4;
  --bg-alt: #f0f2f8;
  --surface: #ffffff;
  --border: #c0c6d6;
  --border-hover: #9aa4bc;
  --text: #1a1d2b;
  --text-muted: #5a5f7a;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-bg: rgba(37,99,235,0.06);
  --success: #10b981;
  --radius: 8px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 2px 8px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.05);
  --nav-bg: rgba(232,236,244,0.92);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --max-w: 1200px;
}
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Nav ────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
}
.nav-brand-mark {
  font-weight: 800;
  font-size: 20px;
  color: var(--accent);
  letter-spacing: -0.5px;
}
.nav-brand-sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--text); background: var(--accent-bg); }
@media (max-width: 768px) {
  .nav-brand-sub { display: none; }
}

/* ── Content column (the one rule set these pages add) ──────────────────── */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}
.legal h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 8px;
}
.legal-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.legal h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 8px;
}
.legal p { margin-bottom: 12px; }
.legal a { color: var(--accent); }
.legal a:hover { color: var(--accent-dark); }

/* ── Maintenance gate (copied from index.html 523-579 + .hidden at 713) ─── */
.hidden { display: none !important; }
.maintenance-wrap {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg);
  z-index: 200;
}
.maintenance-card {
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 30px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.maintenance-brand {
  display: inline-block;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--text);
  padding-bottom: 6px;
  border-bottom: 2px solid var(--accent);
}
.maintenance-card h1 {
  font-size: clamp(20px, 3.2vw, 26px);
  font-weight: 700;
  margin: 14px 0 10px;
  color: var(--text);
}
.maintenance-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 22px;
  white-space: pre-wrap;
}
.maintenance-card .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.maintenance-card .btn:hover { background: var(--accent-dark); }

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