/* ═══════════════════════════════════════════════════════════
   AnestOpe — Legal Pages Shared Styles
   ═══════════════════════════════════════════════════════════ */

:root {
  --emerald: #00C896;
  --navy: #0B1120;
  --navy-light: #111827;
  --surface: #1A2332;
  --text-primary: #FFFFFF;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --border: rgba(255,255,255,0.06);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--navy);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ─── Nav ─────────────────────────────────────────────── */
.legal-nav {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--navy-light);
}

.legal-nav-logo {
  color: var(--emerald);
  text-decoration: none;
  font-weight: 800;
  font-size: 16px;
  transition: opacity 0.2s;
}

.legal-nav-logo:hover { opacity: 0.8; }

/* ─── Container ───────────────────────────────────────── */
.legal-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.legal-container h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.2;
}

.legal-updated {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 48px;
  font-weight: 500;
}

/* ─── Sections ────────────────────────────────────────── */
.legal-container section {
  margin-bottom: 40px;
}

.legal-container h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.legal-container p {
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.8;
}

.legal-container ul {
  list-style: none;
  margin-bottom: 12px;
}

.legal-container ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.7;
}

.legal-container ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--emerald);
  font-weight: 700;
  font-size: 16px;
}

.legal-container a {
  color: var(--emerald);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}

.legal-container a:hover { opacity: 0.8; }

.legal-container strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* ─── Tables ──────────────────────────────────────────── */
.legal-container table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 13px;
  border-radius: 12px;
  overflow: hidden;
}

.legal-container thead th {
  background: var(--surface);
  color: var(--text-primary);
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.legal-container tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.legal-container tbody tr:last-child td {
  border-bottom: none;
}

.legal-container code {
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--emerald);
}

/* ─── Callout boxes ───────────────────────────────────── */
.legal-warning {
  padding: 16px 20px;
  background: rgba(255, 179, 71, 0.06);
  border: 1px solid rgba(255, 179, 71, 0.2);
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: #FFB347;
}

.legal-info {
  padding: 16px 20px;
  background: rgba(0, 200, 150, 0.06);
  border: 1px solid rgba(0, 200, 150, 0.15);
  border-radius: 12px;
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.7;
}

/* ─── Footer ──────────────────────────────────────────── */
.legal-footer {
  padding: 32px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  background: var(--navy-light);
}

.legal-footer p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.legal-footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.legal-footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.2s;
}

.legal-footer-links a:hover { color: var(--emerald); }

/* ─── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  .legal-container { padding: 40px 16px 60px; }
  .legal-container table { font-size: 12px; }
  .legal-container thead th, .legal-container tbody td { padding: 10px 12px; }
}
