
:root {
  --black: #000000;
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-tertiary: #1a1a1a;
  --bg-elevated: #222222;
  --border: #2a2a2a;
  --border-light: #333333;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  --accent: #66b8ea;
  --accent-hover: #4a9ed4;
  --accent-dim: #3a8bc4;
  --green: #00d395;
  --red: #ff5f5f;
  --orange: #ff9500;
  --purple: #a78bfa;
  --code-bg: #1a1a1a;
}

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

html {
  scroll-behavior: smooth;
}

::selection {
  background: var(--accent);
  color: white;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  padding: 0 2rem;
}

.logo {
  width: 154px;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-primary);
}

.logo svg {
  height: 28px;
  width: auto;
}

/* Make the logo white for dark backgrounds */
.logo svg .st0 {
  fill: #ffffff;
}

.logo svg .st1 {
  fill: #66b8ea;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.nav-link:hover, .nav-link:focus-visible {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.nav-link.active {
  color: var(--text-primary);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-ghost {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0 1rem;
  transition: color 0.15s ease;
  line-height: 42px;
}

.btn-ghost:hover {
  color: var(--text-primary);
}

.btn-primary {
  background: var(--accent);
  color: #000000;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0 1.25rem;
  border-radius: 6px;
  transition: background 0.15s ease;
  line-height: 42px;
}

.btn-primary:hover {
  background: var(--accent-hover);
}


.btn-secondary {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0 1.25rem;
  border-radius: 6px;
  transition: all 0.15s ease;
  line-height: 40px;
}

.btn-secondary:hover {
  border-color: var(--border-light);
  background: var(--bg-elevated);
}

.btn-large {
  padding: 0 1.75rem;
  font-size: 0.9375rem;
  line-height: 52px;
}


@media (max-width: 840px) {
  .nav-center {
    display: none;
  }
}

.site-footer {
  margin-top: auto;
}

.small-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.small-footer p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.terms-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.terms-footer .contact-info {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}

.terms-footer h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.terms-footer p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.terms-footer a {
  color: var(--accent);
  text-decoration: none;
}

.terms-footer a:hover {
  text-decoration: underline;
}


.cta {
  padding: 100px 2rem;
  text-align: center;
}

.cta-inner {
  max-width: 600px;
  margin: 0 auto;
}

.cta h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.cta p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}


.terms-section {
  margin-bottom: 3rem;
  scroll-margin-top: 80px;
}

.terms-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-number {
  background: var(--accent);
  color: #000;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.terms-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 1.5rem 0 0.75rem;
}

.terms-section p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.terms-section ul, .terms-section ol {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.terms-section li {
  margin-bottom: 0.5rem;
}

.terms-section strong {
  color: var(--text-primary);
}

.terms-section a {
  color: var(--accent);
  text-decoration: none;
}

.terms-section a:hover {
  text-decoration: underline;
}

.terms-container {
  display: flex;
  max-width: 1440px;
  margin: 0 auto;
  padding-top: 64px;
  min-height: 100vh;
}

.terms-sidebar {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
  border-right: 1px solid var(--border);
  background: var(--bg-secondary);
  padding: 1.5rem 0;
}

.terms-sidebar::-webkit-scrollbar {
  width: 4px;
}

.terms-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.terms-sidebar::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 4px;
}

.sidebar-header {
  padding: 0 1.5rem 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

.sidebar-header h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.sidebar-header p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.sidebar-nav {
  list-style: none;
}

.sidebar-nav li {
  margin: 0;
}

.sidebar-nav a {
  display: block;
  padding: 0.625rem 1.5rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all 0.15s ease;
}

.sidebar-nav a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.sidebar-nav a.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: rgba(102, 184, 234, 0.05);
}

.terms-content {
  flex: 1;
  padding: 2.5rem 3rem;
  max-width: 900px;
}

.terms-content h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.terms-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.terms-intro {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.info-table th, .info-table td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  text-align: left;
  font-size: 0.875rem;
}

.info-table th {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-weight: 600;
}

.info-table td {
  color: var(--text-secondary);
}

@media (max-width: 1024px) {
  .terms-sidebar {
    width: 240px;
  }

  .terms-content {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .terms-container {
    flex-direction: column;
  }

  .terms-sidebar {
    width: 100%;
    position: relative;
    top: 0;
    height: auto;
    max-height: 300px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .terms-content {
    padding: 1.5rem;
  }

  .terms-content h1 {
    font-size: 1.5rem;
  }
}

.risk-warning {
  background: rgba(255, 95, 95, 0.1);
  border: 1px solid rgba(255, 95, 95, 0.3);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.risk-warning h3 {
  color: var(--red);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.risk-warning h3 svg {
  width: 18px;
  height: 18px;
}

.risk-warning p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.highlight-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.highlight-box.warning {
  border-color: rgba(255, 149, 0, 0.3);
  background: rgba(255, 149, 0, 0.05);
}

.highlight-box.critical {
  border-color: rgba(255, 95, 95, 0.3);
  background: rgba(255, 95, 95, 0.05);
}

.highlight-box h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.highlight-box.warning h4 {
  color: var(--orange);
}

.highlight-box.critical h4 {
  color: var(--red);
}

.highlight-box p, .highlight-box ul {
  font-size: 0.875rem;
  margin-bottom: 0;
}

.highlight-box ul {
  margin-top: 0.5rem;
}

.terms-warning p {
  font-size: 0.8125rem;
  color: var(--orange);
  font-weight: 500;
  line-height: 1.5;
}

.terms-intro {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}


/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  max-width: 280px;
}

.footer-column h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.625rem;
}

.footer-column a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s ease;
}

.footer-column a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8125rem;
  transition: color 0.15s ease;
}

.footer-legal a:hover {
  color: var(--text-secondary);
}


.footer-license {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.footer-license svg {
  color: var(--accent);
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .cta {
    padding: 60px 1.5rem;
  }

  .cta-buttons {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
