:root {
  --teal: #14dda9;
  --blue: #28b7fe;
  --dark: #0a0f1a;
  --darker: #060a12;
  --card: #0e1520;
  --border: rgba(255,255,255,0.07);
  --text: #e8edf5;
  --muted: #7a8ba3;
  --white: #ffffff;
  --grad: linear-gradient(135deg, var(--teal), var(--blue));
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--darker);
  color: var(--text);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  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)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; }

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 5vw;
  background: rgba(6,10,18,0.72);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color .2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-cta {
  background: var(--grad);
  color: var(--darker);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.65rem 1.35rem;
  border-radius: 10px;
  text-decoration: none;
  transition: opacity .2s ease, transform .2s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

main {
  position: relative;
  z-index: 1;
}

.legal-hero {
  padding: 7rem 5vw 2.5rem;
  position: relative;
  overflow: hidden;
}

.legal-hero::before,
.legal-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.legal-hero::before {
  width: 640px;
  height: 640px;
  top: -220px;
  right: -180px;
  background: radial-gradient(circle, rgba(20,221,169,0.12) 0%, transparent 70%);
}

.legal-hero::after {
  width: 520px;
  height: 520px;
  left: -180px;
  bottom: -220px;
  background: radial-gradient(circle, rgba(40,183,254,0.10) 0%, transparent 72%);
}

.legal-hero-inner,
.legal-layout,
footer {
  max-width: 1200px;
  margin: 0 auto;
}

.eyebrow {
  font-family: 'Syne', sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.25rem;
}

.legal-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 760px;
  margin-bottom: 1rem;
}

.legal-subtitle {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.legal-layout {
  padding: 0 5vw 5rem;
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.legal-sidebar,
.legal-card {
  background: linear-gradient(180deg, rgba(14,21,32,0.96), rgba(10,15,26,0.92));
  border: 1px solid var(--border);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.legal-sidebar::before,
.legal-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--grad);
  opacity: 0.95;
}

.legal-sidebar {
  padding: 1.5rem;
  position: sticky;
  top: 5.75rem;
}

.sidebar-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.8rem;
}

.sidebar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sidebar-list a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  transition: color .2s ease, transform .2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.sidebar-list a::before {
  content: '→';
  color: var(--teal);
}

.sidebar-list a:hover,
.sidebar-list a.active {
  color: var(--white);
  transform: translateX(2px);
}

.legal-card {
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.meta-pill {
  border: 1px solid rgba(20,221,169,0.24);
  background: rgba(20,221,169,0.08);
  color: var(--white);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
}

.meta-pill.muted {
  border-color: var(--border);
  background: rgba(255,255,255,0.035);
  color: var(--muted);
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.8;
}

.legal-content strong {
  color: var(--text);
}

.legal-content h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-top: 1rem;
}

.legal-content h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--white);
  margin-top: 0.2rem;
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.25rem;
  display: grid;
  gap: 0.7rem;
}

.legal-content .callout {
  border: 1px solid rgba(40,183,254,0.22);
  background: rgba(40,183,254,0.08);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  color: var(--white);
  font-size: 0.95rem;
}

.legal-loading {
  color: var(--muted);
}

.legal-error {
  border: 1px solid rgba(255,120,120,0.24);
  background: rgba(255,120,120,0.08);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  color: #ffd7d7;
}

footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 5vw 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color .2s ease;
}

.footer-links a:hover,
.footer-links a.active {
  color: var(--white);
}

.footer-copy {
  color: var(--muted);
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  nav {
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 1rem;
  }

  .legal-hero {
    padding-top: 6rem;
  }
}

@media (max-width: 560px) {
  .nav-links {
    font-size: 0.86rem;
    overflow-x: auto;
  }

  .footer-links {
    width: 100%;
  }
}
