@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg-deep:     #06060C;
  --bg-base:     #0C0C18;
  --bg-card:     #141426;
  --bg-elevated: #1C1C34;
  --accent:      #8B5CF6;
  --accent-glow: rgba(124, 58, 237, 0.4);
  --gold:        #F59E0B;
  --text-primary:   #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-muted:     rgba(255, 255, 255, 0.35);
  --border:         rgba(255, 255, 255, 0.08);
  --border-active:  rgba(139, 92, 246, 0.5);
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   20px;
  --radius-pill: 100px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.75;
  min-height: 100vh;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* Hero wash */
.legal-hero-wash {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 300px;
  background: linear-gradient(180deg, rgba(124,58,237,0.08) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* Nav */
.legal-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 6, 12, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.legal-nav-logo .ai-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: linear-gradient(135deg, #7C3AED, #A855F7);
  color: white;
  letter-spacing: 0.05em;
}

.legal-nav-back {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.legal-nav-back:hover {
  color: var(--text-primary);
}

.legal-nav-back::before {
  content: '\2190';
}

/* Page container */
.legal-page {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

/* Page header */
.legal-header {
  margin-bottom: 48px;
}

.legal-header-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.legal-header-eyebrow::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.legal-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 16px;
}

.legal-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
}

/* Disclaimer card */
.legal-disclaimer-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 40px;
}

.legal-disclaimer-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.legal-disclaimer-card strong {
  color: var(--text-primary);
  font-weight: 600;
}

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

.legal-section h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  border-left: 3px solid var(--accent);
  padding-left: 14px;
  margin-bottom: 16px;
  line-height: 1.4;
}

.legal-section p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

/* Lists */
.legal-section ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 12px;
}

.legal-section ul li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 6px;
}

.legal-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.7;
}

/* Links */
.legal-section a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.legal-section a:hover {
  border-bottom-color: var(--accent);
}

/* Divider */
.legal-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* Footer */
.legal-footer {
  background: var(--bg-deep);
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 32px 24px;
  text-align: center;
}

.legal-footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

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

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

.legal-footer-links span {
  color: var(--border);
  font-size: 12px;
}

.legal-footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 640px) {
  .legal-page {
    padding: 40px 16px 60px;
  }
  .legal-title {
    font-size: 28px;
  }
}
