:root {
  --fi-primary: #00d084;
  --fi-primary-dark: #00b873;
  --fi-secondary: #0891b2;
  --fi-accent: #f59e0b;
  --bg-primary: #050807;
  --bg-secondary: #0c120f;
  --bg-card: #101813;
  --border: #1f2d26;
  --text-primary: #f5f5f5;
  --text-secondary: #b5b5c3;
}

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

body {
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background:
    radial-gradient(circle at top, rgba(0, 208, 132, 0.12), transparent 45%), var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
}

a {
  color: var(--fi-primary);
  text-decoration: none;
}

a:hover {
  color: var(--fi-accent);
}

.header {
  width: 100%;
  padding: 24px 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  backdrop-filter: blur(18px);
  background: rgba(5, 8, 7, 0.85);
  border-bottom: 1px solid var(--border);
  z-index: 5;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 20px;
  color: var(--text-primary);
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--fi-primary), var(--fi-secondary));
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #041007;
}

.header-links {
  display: flex;
  gap: 16px;
  font-size: 14px;
}

.header-links a {
  color: var(--text-secondary);
  font-weight: 500;
}

.header-links a.active {
  color: var(--fi-primary);
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 56px 5vw 120px;
}

.legal-hero {
  margin-bottom: 32px;
}

.legal-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--fi-secondary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legal-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fi-secondary);
}

.legal-hero h1 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  margin: 16px 0 12px;
}

.legal-meta {
  color: var(--text-secondary);
  font-size: 14px;
}

.notice-card {
  margin: 32px 0;
  padding: 20px 24px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
}

.notice-card strong {
  color: var(--text-primary);
}

.toc {
  margin: 32px 0 48px;
  padding: 24px;
  border-radius: 18px;
  background: rgba(16, 24, 19, 0.85);
  border: 1px solid var(--border);
}

.toc h2 {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.toc ol {
  list-style: decimal;
  margin-left: 20px;
  color: var(--text-secondary);
}

.toc a {
  color: var(--text-primary);
}

.section {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.section h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

.section h3 {
  font-size: 18px;
  margin: 16px 0 8px;
}

.section p,
.section ul {
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.section ul {
  padding-left: 20px;
}

.callout {
  border-left: 4px solid var(--fi-accent);
  padding: 16px 20px;
  margin: 24px 0;
  background: rgba(245, 158, 11, 0.08);
  color: var(--text-secondary);
}

.footer-note {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-secondary);
}

@media (max-width: 640px) {
  .header {
    flex-direction: column;
    gap: 12px;
  }
  .header-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}
