/* Shared styles for tayp legal pages */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #05062E;
  --navy-mid: #0A0C4A;
  --accent: #4A6CF7;
  --accent-light: #7A9AFF;
  --accent-glow: rgba(74, 108, 247, 0.35);
  --glass-bg: rgba(255,255,255,0.055);
  --glass-border: rgba(255,255,255,0.10);
  --glass-border-strong: rgba(255,255,255,0.18);
  --text-primary: #F0F2FF;
  --text-secondary: rgba(220,225,255,0.78);
  --text-muted: rgba(180,190,255,0.5);
  --font-display: 'Onest', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
}

/* Background orbs */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}
.orb-1 { width: 600px; height: 600px; background: radial-gradient(circle, #1a2fcc 0%, transparent 70%); top: -200px; left: -150px; }
.orb-2 { width: 500px; height: 500px; background: radial-gradient(circle, #0a3d8f 0%, transparent 70%); top: 60%; right: -100px; }

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5,6,46,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-cta {
  padding: 9px 22px;
  background: var(--accent);
  color: #fff;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { background: var(--accent-light); box-shadow: 0 0 24px var(--accent-glow); }

/* PAGE LAYOUT */
.legal-wrapper {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 140px 32px 80px;
}

.legal-header {
  margin-bottom: 56px;
}
.legal-eyebrow {
  font-size: 12px;
  color: var(--accent-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 500;
}
.legal-header h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.legal-updated {
  font-size: 14px;
  color: var(--text-muted);
}

/* Language toggle */
.lang-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border-strong);
  border-radius: 100px;
  margin-top: 24px;
  backdrop-filter: blur(10px);
}
.lang-toggle a {
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 100px;
  transition: background 0.2s, color 0.2s;
}
.lang-toggle a.active {
  background: var(--accent);
  color: #fff;
}
.lang-toggle a:hover:not(.active) {
  color: var(--text-primary);
}

/* CONTENT */
.legal-content {
  font-size: 15px;
  color: var(--text-secondary);
}
.legal-content h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-top: 48px;
  margin-bottom: 16px;
  line-height: 1.3;
}
.legal-content h2:first-child {
  margin-top: 0;
}
.legal-content h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-top: 32px;
  margin-bottom: 12px;
}
.legal-content p {
  margin-bottom: 16px;
}
.legal-content ul, .legal-content ol {
  margin: 0 0 20px 24px;
  padding: 0;
}
.legal-content li {
  margin-bottom: 8px;
}
.legal-content a {
  color: var(--accent-light);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.legal-content a:hover {
  color: var(--text-primary);
}
.legal-content strong {
  color: var(--text-primary);
  font-weight: 500;
}

/* TOC */
.legal-toc {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 56px;
  backdrop-filter: blur(10px);
}
.legal-toc-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.legal-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
}
.legal-toc ol li {
  counter-increment: toc;
  margin-bottom: 6px;
  font-size: 14px;
  padding-left: 28px;
  position: relative;
}
.legal-toc ol li::before {
  content: counter(toc) ".";
  position: absolute;
  left: 0;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.legal-toc a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.legal-toc a:hover {
  color: var(--accent-light);
}

/* FOOTER */
.legal-footer {
  position: relative;
  z-index: 1;
  padding: 40px 48px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 80px;
}
.legal-footer-left {
  font-size: 13px;
  color: var(--text-muted);
}
.legal-footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
  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-secondary); }

/* MOBILE */
@media (max-width: 768px) {
  nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .legal-wrapper { padding: 110px 22px 60px; }
  .legal-footer { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
}
