:root {
  --bg: #0b1220;
  --bg2: #111927;
  --bg3: #1a2535;
  --accent: #41c7a4;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --border: rgba(255,255,255,0.08);
  --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ======= NAVBAR ======= */
.legal-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0 5%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(20px);
  background: rgba(11,18,32,0.85);
  border-bottom: 1px solid var(--border);
}

.legal-logo {
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-logo-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.legal-back {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.legal-back:hover { color: var(--text); text-decoration: none; }

/* ======= HERO ======= */
.legal-hero {
  padding: 64px 5% 40px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(65,199,164,0.04) 0%, transparent 100%);
}

.legal-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(65,199,164,0.08);
  border: 1px solid rgba(65,199,164,0.2);
  border-radius: 100px;
  padding: 4px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.legal-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  line-height: 1.1;
}

.legal-date {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ======= CONTENT ======= */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 5% 80px;
}

.legal-intro {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.legal-section {
  margin-bottom: 48px;
}

.legal-section h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-section h2 .section-num {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(65,199,164,0.08);
  border: 1px solid rgba(65,199,164,0.2);
  border-radius: 6px;
  padding: 2px 8px;
}

.legal-section p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 14px;
}

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

.legal-section ul {
  list-style: none;
  margin: 12px 0 14px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-section ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
}

.legal-section ul li::before {
  content: '→';
  color: var(--accent);
  font-weight: 700;
  margin-top: 2px;
  flex-shrink: 0;
}

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

.legal-highlight {
  background: rgba(65,199,164,0.06);
  border: 1px solid rgba(65,199,164,0.15);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 16px 0;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.7;
}

.legal-third-party {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}

.third-party-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.third-party-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.third-party-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 4px;
}

.third-party-desc {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.6;
}

.third-party-link {
  font-size: 0.78rem;
  color: var(--accent);
  margin-top: 4px;
  display: block;
}

/* ======= CONTACT BOX ======= */
.legal-contact {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 32px;
  margin-top: 48px;
}

.legal-contact h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.legal-contact p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 8px;
}

.legal-contact a {
  color: var(--accent);
  font-weight: 600;
}

/* ======= FOOTER ======= */
.legal-footer {
  padding: 32px 5%;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--bg2);
}

.legal-footer a {
  color: var(--accent);
  margin: 0 10px;
}

.legal-footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

/* ======= RESPONSIVE ======= */
@media (max-width: 640px) {
  .legal-hero { padding: 48px 5% 32px; }
  .legal-content { padding: 32px 5% 60px; }
  .legal-contact { padding: 20px; }
  .legal-nav { padding: 0 4%; }
}
