/* ══════════════════════════════════════════════
   AIXPro – Legal Pages Shared Theme
   Mirrors the design tokens from index.html
══════════════════════════════════════════════ */

/* ── Design Tokens ── */
:root {
  --bg-void: #04050A;
  --bg-deep: #070A12;
  --glass-0: rgba(14, 17, 28, 0.55);
  --glass-1: rgba(20, 24, 36, 0.65);
  --glass-2: rgba(28, 34, 50, 0.75);
  --glass-nav: rgba(7, 10, 18, 0.82);
  --blur-sm: 12px;
  --blur-md: 20px;
  --frost: rgba(255, 255, 255, 0.06);
  --frost-hi: rgba(255, 255, 255, 0.13);
  --sapphire: #3B82F6;
  --sapphire-glow: rgba(59, 130, 246, 0.30);
  --aurora: #06B6D4;
  --platinum: #E2E8F4;
  --silver: #8B95A8;
  --gold: #EAB308;
  --emerald: #10B981;
  --crimson: #EF4444;
  --grad-brand: linear-gradient(135deg, #3B82F6 0%, #06B6D4 100%);
  --grad-card: linear-gradient(145deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-void);
  color: var(--silver);
  line-height: 1.80;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── Animated background orbs ── */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
  animation: floatOrb 10s ease-in-out infinite;
}
.bg-orb-1 { width: 500px; height: 500px; background: #3B82F6; top: -120px; right: -120px; animation-delay: 0s; }
.bg-orb-2 { width: 380px; height: 380px; background: #06B6D4; bottom: 5%; left: -80px; animation-delay: -4s; }
@keyframes floatOrb {
  0%, 100% { transform: translateY(0px) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}

/* ── Navbar ── */
nav.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-nav);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  border-bottom: 1px solid var(--frost);
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
.nav-logo {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--grad-brand);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-wordmark { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--platinum); }
.nav-wordmark span { background: var(--grad-brand); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-back {
  font-size: .8rem;
  color: var(--silver);
  text-decoration: none;
  padding: .4rem .9rem;
  border: 1px solid var(--frost-hi);
  border-radius: .6rem;
  transition: color .2s, border-color .2s;
}
.nav-back:hover { color: var(--platinum); border-color: var(--sapphire); }
.nav-back svg { display: inline; vertical-align: middle; margin-right: .35rem; }

/* ── Page layout ── */
.page-wrap {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}

/* ── Page header ── */
.page-header { margin-bottom: 2.5rem; }
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--platinum);
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  margin-bottom: .5rem;
}
.page-header .date-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  color: var(--silver);
  background: var(--glass-1);
  border: 1px solid var(--frost);
  border-radius: 99px;
  padding: .25rem .85rem;
  margin-top: .75rem;
}

/* ── Glass card sections ── */
.legal-section {
  background: var(--glass-0);
  background-image: var(--grad-card);
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
  border: 1px solid var(--frost);
  border-radius: 1.25rem;
  padding: 1.75rem 2rem;
  margin-bottom: 1.25rem;
  transition: border-color .3s;
}
.legal-section:hover { border-color: var(--frost-hi); }

.legal-section h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--platinum);
  margin-bottom: .85rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  background: var(--grad-brand);
  border-radius: .4rem;
  font-size: .7rem;
  color: #fff;
  font-weight: 800;
  flex-shrink: 0;
}

.legal-section p { color: var(--silver); font-size: .9rem; margin-bottom: .75rem; }
.legal-section p:last-child { margin-bottom: 0; }

.legal-section ul { padding-left: 1.25rem; color: var(--silver); font-size: .9rem; }
.legal-section ul li { margin-bottom: .4rem; padding-left: .25rem; }
.legal-section ul li::marker { color: var(--sapphire); }

.legal-section a { color: var(--sapphire); text-decoration: none; }
.legal-section a:hover { text-decoration: underline; color: var(--aurora); }

.legal-section strong { color: var(--platinum); font-weight: 600; }
.legal-section code { font-size: .82rem; background: var(--glass-2); border: 1px solid var(--frost); padding: .1rem .4rem; border-radius: .3rem; color: var(--aurora); }

/* ── Table (cookie policy) ── */
.legal-table { width: 100%; border-collapse: collapse; margin-top: .75rem; font-size: .85rem; }
.legal-table th { text-align: left; color: var(--platinum); padding: .6rem 1rem; background: var(--glass-2); font-family: var(--font-display); font-weight: 600; border-bottom: 1px solid var(--frost-hi); }
.legal-table th:first-child { border-radius: .5rem 0 0 0; }
.legal-table th:last-child  { border-radius: 0 .5rem 0 0; }
.legal-table td { padding: .65rem 1rem; border-top: 1px solid var(--frost); color: var(--silver); vertical-align: top; }

/* ── Compliance badge ── */
.compliance-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(16,185,129,0.10);
  color: var(--emerald);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: .6rem;
  padding: .35rem 1rem;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* ── Footer ── */
.legal-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--frost);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  font-size: .75rem;
  color: var(--silver);
}
.legal-footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.legal-footer a { color: var(--silver); text-decoration: none; transition: color .2s; }
.legal-footer a:hover { color: var(--platinum); }
