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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  background: #0a0a0a;
  color: #f5f5f5;
  line-height: 1.6;
  overflow-x: hidden;
}

section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px 24px;
  text-align: center;
}

.hero h1 {
  font-size: 64px;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 32px;
  max-width: 900px;
}

.hero p {
  font-size: 20px;
  font-weight: 300;
  color: rgba(245, 245, 245, 0.6);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

.problem p {
  font-size: 20px;
  font-weight: 300;
  color: rgba(245, 245, 245, 0.7);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

.what h2 {
  font-size: 48px;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 64px;
}

.what-body {
  max-width: 640px;
  margin: 0 auto;
}

.what-body p {
  font-size: 20px;
  font-weight: 300;
  color: rgba(245, 245, 245, 0.7);
  line-height: 1.7;
  margin-bottom: 32px;
}

.what-body p:last-child {
  margin-bottom: 0;
}

.why p {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: #f5f5f5;
  max-width: 640px;
  margin: 0 auto;
}

.cta h2 {
  font-size: 48px;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.cta p {
  font-size: 20px;
  font-weight: 300;
  color: rgba(245, 245, 245, 0.6);
  max-width: 640px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

.cta-button {
  display: inline-block;
  padding: 16px 48px;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #0a0a0a;
  background: #f5f5f5;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.cta-button:hover {
  opacity: 0.85;
}

footer {
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-top {
  width: 100%;
  max-width: 960px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.footer-brand {
  font-size: 16px;
  font-weight: 400;
  color: rgba(245, 245, 245, 0.5);
}

.footer-disclaimer {
  font-size: 13px;
  font-weight: 300;
  color: rgba(245, 245, 245, 0.35);
  text-align: right;
}

.footer-bottom {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-bottom small {
  font-size: 12px;
  font-weight: 300;
  color: rgba(245, 245, 245, 0.25);
}

.footer-bottom a {
  font-size: 12px;
  font-weight: 300;
  color: rgba(245, 245, 245, 0.25);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: rgba(245, 245, 245, 0.5);
}

/* ── Legal pages (privacy.html, tos.html) ────────────────────── */

.legal-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 80px 24px 64px;
  color: rgba(245, 245, 245, 0.8);
  line-height: 1.7;
  font-size: 16px;
  font-weight: 300;
}

/* Navigation */
.legal-page .back-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 400;
  color: rgba(245, 245, 245, 0.4);
  text-decoration: none;
  margin-bottom: 48px;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.legal-page .back-link:hover {
  color: rgba(245, 245, 245, 0.7);
}

/* Title + date */
.legal-page h1 {
  font-size: 40px;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #f5f5f5;
  margin-bottom: 12px;
}

.legal-page .effective-date {
  font-size: 14px;
  font-weight: 300;
  color: rgba(245, 245, 245, 0.35);
  margin-bottom: 56px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(245, 245, 245, 0.08);
}

/* Section headings */
.legal-page h2 {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #f5f5f5;
  margin-top: 56px;
  margin-bottom: 20px;
  padding-top: 8px;
}

.legal-page h3 {
  font-size: 17px;
  font-weight: 500;
  color: rgba(245, 245, 245, 0.9);
  margin-top: 36px;
  margin-bottom: 14px;
}

/* Body text */
.legal-page p {
  margin-bottom: 16px;
  line-height: 1.7;
}

/* Bold text — works inside p, li, td, anywhere */
.legal-page strong {
  color: #f5f5f5;
  font-weight: 500;
}

/* Links */
.legal-page a {
  color: rgba(245, 245, 245, 0.7);
  text-decoration: underline;
  text-decoration-color: rgba(245, 245, 245, 0.25);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.legal-page a:hover {
  color: #f5f5f5;
  text-decoration-color: rgba(245, 245, 245, 0.5);
}

/* Lists */
.legal-page ul,
.legal-page ol {
  margin: 12px 0 20px 0;
  padding-left: 28px;
  color: rgba(245, 245, 245, 0.8);
}

.legal-page ul {
  list-style-type: disc;
}

.legal-page ol {
  list-style-type: decimal;
}

.legal-page li {
  margin-bottom: 8px;
  line-height: 1.65;
  padding-left: 4px;
}

.legal-page li::marker {
  color: rgba(245, 245, 245, 0.3);
}

/* Tables */
.legal-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  font-size: 14px;
  line-height: 1.5;
}

.legal-page th {
  text-align: left;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.5);
  border-bottom: 1px solid rgba(245, 245, 245, 0.15);
}

.legal-page td {
  padding: 12px 16px;
  color: rgba(245, 245, 245, 0.7);
  border-bottom: 1px solid rgba(245, 245, 245, 0.06);
  vertical-align: top;
}

.legal-page td strong {
  color: #f5f5f5;
}

.legal-page tr:last-child td {
  border-bottom: none;
}

/* Inline code */
.legal-page code {
  font-family: "SF Mono", "Fira Code", "Menlo", monospace;
  font-size: 0.875em;
  background: rgba(245, 245, 245, 0.07);
  color: rgba(245, 245, 245, 0.85);
  padding: 2px 7px;
  border-radius: 4px;
}

@media (max-width: 768px) {
  section {
    min-height: 100svh;
    padding: 60px 20px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 18px;
  }

  .problem p {
    font-size: 18px;
  }

  .what h2 {
    font-size: 32px;
    margin-bottom: 40px;
  }

  .what-body p {
    font-size: 18px;
    margin-bottom: 24px;
  }

  .why p {
    font-size: 22px;
  }

  .cta h2 {
    font-size: 32px;
  }

  .cta p {
    font-size: 18px;
  }

  .cta-button {
    padding: 14px 40px;
    font-size: 15px;
  }

  .footer-top {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .footer-disclaimer {
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }

  .legal-page {
    padding: 48px 20px 40px;
  }

  .legal-page h1 {
    font-size: 28px;
  }

  .legal-page .effective-date {
    margin-bottom: 40px;
    padding-bottom: 24px;
  }

  .legal-page h2 {
    font-size: 19px;
    margin-top: 44px;
  }

  .legal-page h3 {
    font-size: 16px;
  }

  .legal-page table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 13px;
  }

  .legal-page th,
  .legal-page td {
    padding: 10px 12px;
    white-space: nowrap;
  }

  .legal-page td:first-child,
  .legal-page td:last-child {
    white-space: normal;
    min-width: 120px;
  }
}
