/* FederationPulse Legal & Compliance Pages Style Sheet */
:root {
  --bg: #07080f;
  --surface: rgba(15, 18, 30, 0.75);
  --surface-border: rgba(255, 255, 255, 0.08);
  --accent-indigo: #6366f1;
  --accent-violet: #8b5cf6;
  --accent-emerald: #10b981;
  --accent-cyan: #06b6d4;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --line: rgba(255, 255, 255, 0.08);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Subtle Grid Background */
.bg-grid {
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Ambient glow */
.ambient-glow {
  position: fixed;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(99, 102, 241, 0) 70%);
  filter: blur(90px);
  z-index: -1;
  pointer-events: none;
}

a {
  color: #818cf8;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

a:hover {
  color: #a5b4fc;
}

/* Navigation */
.legal-nav {
  position: sticky;
  top: 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(7, 8, 15, 0.85);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}

.legal-nav-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #1e1b4b 100%);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.brand-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-decoration: none;
}

.legal-nav .back-btn {
  margin-left: auto;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  transition: all 0.2s ease;
}

.legal-nav .back-btn:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

/* Main Content Container */
main {
  max-width: 820px;
  margin: 0 auto;
  padding: 50px 24px 100px;
}

h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: #ffffff;
}

h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 36px 0 12px;
  color: #f1f5f9;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 20px 0 8px;
  color: #e2e8f0;
}

p, li {
  font-size: 0.975rem;
  color: #cbd5e1;
  margin-bottom: 14px;
}

.muted {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 24px;
}

ul {
  padding-left: 24px;
  margin-bottom: 18px;
}

li {
  margin-bottom: 8px;
}

strong {
  color: #ffffff;
}

code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
  background: rgba(255, 255, 255, 0.07);
  padding: 2px 6px;
  border-radius: 4px;
  color: #a5b4fc;
}

/* Callout Card */
.card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 24px;
  margin: 24px 0;
  backdrop-filter: blur(16px);
}

.card.highlight {
  border-color: rgba(99, 102, 241, 0.35);
  background: rgba(20, 24, 45, 0.7);
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.12);
}

.card h2 {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

/* Sub-processors table */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
}

th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-weight: 600;
}

td {
  color: #cbd5e1;
}

/* Footer */
footer.legal-footer {
  border-top: 1px solid var(--line);
  background: rgba(4, 5, 10, 0.95);
  padding: 36px 0;
}

.legal-footer-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.legal-footer-links {
  display: flex;
  gap: 18px;
}

.legal-footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
}

.legal-footer-links a:hover {
  color: white;
}

