/* === Reset & Base === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1e293b;
  background: #f8fafc;
  line-height: 1.7;
}

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* === Top Navigation === */
.top-nav {
  background: #0f172a;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.top-nav-brand:hover {
  text-decoration: none;
}

.top-nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.top-nav-brand span {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.top-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.top-nav-links a {
  color: #cbd5e1;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}

.top-nav-links a:hover,
.top-nav-links a.active {
  background: #1e293b;
  color: #fff;
  text-decoration: none;
}

/* === Hero Section === */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #0ea5e9 100%);
  color: #f8fafc;
  padding: 80px 40px;
  text-align: center;
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: #fff;
}

.hero .subtitle {
  font-size: 1.15rem;
  color: #94a3b8;
  max-width: 640px;
  margin: 0 auto 12px;
}

.hero .badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 20px;
}

/* === Container === */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 40px;
}

/* === Section === */
.section {
  margin-bottom: 48px;
}

.section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e2e8f0;
}

.section p,
.section li {
  color: #475569;
  font-size: 0.93rem;
}

.section ul,
.section ol {
  padding-left: 24px;
  margin-top: 8px;
}

.section li {
  margin-bottom: 6px;
}

/* === Feature Grid === */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.feature-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
}

.feature-card .icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
  display: block;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.feature-card p {
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.6;
}

/* === Steps === */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 24px;
  counter-reset: step;
}

.step {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  position: relative;
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #0f172a;
  color: #fff;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.step h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.step p {
  color: #64748b;
  font-size: 0.85rem;
  line-height: 1.5;
}

/* === Doc Links (used on landing page) === */
.doc-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.doc-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  padding: 20px 24px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  flex: 1;
  min-width: 240px;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.doc-link:hover {
  border-color: #94a3b8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-decoration: none;
}

.doc-link .doc-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.doc-link strong {
  display: block;
  font-size: 0.95rem;
  color: #0f172a;
  margin-bottom: 2px;
}

.doc-link p {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0;
}

/* === Contact Bar === */
.contact-bar {
  background: #0f172a;
  color: #94a3b8;
  text-align: center;
  padding: 32px 40px;
  font-size: 0.88rem;
}

.contact-bar a {
  color: #38bdf8;
}

.contact-bar .contact-email {
  font-size: 1rem;
  color: #e2e8f0;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

/* === Legal Page Layout === */
.legal-page {
  background: #fff;
  max-width: 800px;
  margin: 40px auto;
  padding: 48px 56px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
}

.legal-page h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.legal-page .last-updated {
  color: #64748b;
  font-size: 0.88rem;
  margin-bottom: 32px;
  display: block;
}

.legal-page h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 32px;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e2e8f0;
}

.legal-page h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #334155;
  margin-top: 20px;
  margin-bottom: 8px;
}

.legal-page p {
  color: #475569;
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.legal-page ul,
.legal-page ol {
  padding-left: 24px;
  margin-bottom: 12px;
}

.legal-page li {
  color: #475569;
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.legal-page a {
  color: #2563eb;
  font-weight: 500;
}

.legal-page .highlight-box {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 16px 0;
  font-size: 0.9rem;
  color: #0c4a6e;
}

.legal-page .highlight-box strong {
  color: #0369a1;
}

/* === Footer === */
.footer {
  text-align: center;
  padding: 24px 40px;
  color: #94a3b8;
  font-size: 0.82rem;
  border-top: 1px solid #e2e8f0;
  margin-top: 40px;
}

/* === Responsive === */
@media (max-width: 768px) {
  .top-nav {
    padding: 0 16px;
    height: 56px;
  }

  .top-nav-links a {
    padding: 6px 10px;
    font-size: 0.82rem;
  }

  .hero {
    padding: 48px 20px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .container {
    padding: 32px 20px;
  }

  .legal-page {
    margin: 20px 16px;
    padding: 32px 24px;
  }

  .doc-links {
    flex-direction: column;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .top-nav {
    flex-direction: column;
    height: auto;
    padding: 12px 16px;
    gap: 8px;
  }

  .top-nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}
