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

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-200: #e8e8e8;
  --gray-400: #a0a0a0;
  --gray-600: #606060;
  --gray-800: #1a1a1a;
  --accent: #7C5CFC;
  --accent-light: #a78bfa;
  --accent-muted: #ede9fe;
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 60px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--gray-200);
}
.logo { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.5px; color: var(--black); text-decoration: none; }
.logo span { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a { font-size: 0.875rem; font-weight: 500; color: var(--gray-600); text-decoration: none; transition: color var(--transition); }
.nav-links a:hover { color: var(--black); }

.nav-cta { background: var(--black); color: var(--white) !important; padding: 10px 22px; border-radius: 100px; font-size: 0.875rem; font-weight: 600 !important; text-decoration: none; transition: background var(--transition), transform var(--transition) !important; }
.nav-cta:hover { background: var(--accent) !important; transform: translateY(-1px); color: var(--white) !important; }

/* PAGE HEADER */
.page-header {
  padding: 160px 60px 80px;
  background: var(--gray-50);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -200px; right: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124,92,252,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.page-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-muted);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.page-header h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 1.0;
  color: var(--black);
  margin-bottom: 20px;
}
.page-header p {
  font-size: 0.95rem;
  color: var(--gray-600);
  max-width: 560px;
  line-height: 1.75;
}
.page-header p strong { color: var(--black); }

/* LAYOUT */
.legal-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 60px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 80px;
  align-items: start;
}

/* TOC SIDEBAR */
.toc {
  position: sticky;
  top: 100px;
}
.toc-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 20px;
}
.toc ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.toc a {
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--gray-400);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  display: block;
  transition: all var(--transition);
  border-left: 2px solid transparent;
}
.toc a:hover,
.toc a.active {
  color: var(--accent);
  background: var(--accent-muted);
  border-left-color: var(--accent);
}

/* LEGAL DOC */
.legal-section {
  padding-bottom: 64px;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 64px;
  position: relative;
}
.legal-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.section-num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
}

.legal-section h2 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--black);
  margin-bottom: 24px;
  line-height: 1.2;
}

.legal-section p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 16px;
}
.legal-section p strong { color: var(--black); font-weight: 600; }
.legal-section p:last-child { margin-bottom: 0; }

.legal-section ul {
  list-style: none;
  margin: 16px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.legal-section ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.65;
}
.legal-section ul li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 8px;
}

.legal-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
.legal-link:hover { color: var(--black); }

/* CONTACT CARD */
.contact-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 24px;
}
.contact-card-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.9rem;
  color: var(--black);
}
.contact-card-row:last-child { border-bottom: none; }
.contact-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-400);
  width: 90px;
  flex-shrink: 0;
}

/* FOOTER */
footer { background: var(--black); padding: 60px 60px 40px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-logo { font-size: 1.2rem; font-weight: 800; color: var(--white); text-decoration: none; }
.footer-logo span { color: var(--accent-light); }
.footer-links { display: flex; gap: 28px; list-style: none; }
.footer-links a { font-size: 0.875rem; color: rgba(255,255,255,0.45); text-decoration: none; transition: color var(--transition); }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.25); }

/* RESPONSIVE */
@media (max-width: 900px) {
  nav { padding: 16px 24px; }
  .page-header { padding: 120px 24px 60px; }
  .legal-wrapper { grid-template-columns: 1fr; gap: 48px; padding: 48px 24px; }
  .toc { position: static; }
  footer { padding: 40px 24px 28px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-links { flex-wrap: wrap; gap: 16px; }
}
