/* Shared styling for legal/policy pages (MPA HTML entries) */
:root {
  --primary-color: #1e3a8a;
  --secondary-color: #3b82f6;
  --accent-color: #f59e0b;
  --dark-bg: #0f172a;
  --legal-text: #334155;
  --legal-muted: #64748b;
}

body.legal-page {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--legal-text);
  background: #f8fafc;
}

.legal-nav {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
}

.legal-brand {
  color: var(--primary-color) !important;
  font-weight: 800;
  letter-spacing: -0.3px;
  font-size: 1.4rem;
  display: inline-flex;
  align-items: center;
}

.legal-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.legal-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legal-actions .btn {
  white-space: nowrap;
}

@media (max-width: 576px) {
  .legal-nav .container {
    gap: 0.75rem;
  }

  .legal-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .legal-actions .btn {
    width: 100%;
  }
}

.legal-hero {
  background: radial-gradient(
      circle at 20% 50%,
      rgba(59, 130, 246, 0.18) 0%,
      transparent 55%
    ),
    radial-gradient(
      circle at 85% 25%,
      rgba(245, 158, 11, 0.14) 0%,
      transparent 55%
    ),
    linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-hero h1 {
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.legal-hero .lead {
  color: rgba(226, 232, 240, 0.92);
}

.legal-card {
  border-radius: 18px;
  border: 1px solid #e2e8f0;
}

.legal-content h2 {
  margin-top: 1.5rem;
  color: var(--primary-color);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.legal-content p,
.legal-content li {
  line-height: 1.75;
  color: #475569;
}

.legal-content ul {
  margin-bottom: 1rem;
}

.legal-meta {
  color: rgba(226, 232, 240, 0.86);
}

.legal-meta strong {
  color: #fff;
}

.legal-links a {
  text-decoration: none;
  font-weight: 600;
}

.legal-links a:hover {
  text-decoration: underline;
}

.legal-footer {
  color: var(--legal-muted);
}

.legal-footer a {
  color: var(--secondary-color);
  text-decoration: none;
}

.legal-footer a:hover {
  text-decoration: underline;
}

/* Match homepage footer styling on legal pages */
.footer {
  background: var(--dark-bg);
  color: #94a3b8;
  padding: 3rem 0 2rem;
}

.footer a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--secondary-color);
}

