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

:root {
  --primary: #7400F0;
  --primary-light: #b87aff;
  --bg-dark: #0D0620;
  --bg-gradient: linear-gradient(135deg, #1a0a3e 0%, #0D0620 50%, #0a1628 100%);
  --text: #FFFFFF;
  --text-muted: #9CA3AF;
  --text-dim: #6B7280;
  --border: rgba(255, 255, 255, 0.1);
  --border-light: rgba(255, 255, 255, 0.06);
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.06);
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-dark);
  background-image: var(--bg-gradient);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: var(--primary-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: #b87aff; }

/* -- Page (Home only) --------------------------- */
.page {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 40px;
}

/* -- Brand -------------------------------------- */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.logo-icon {
  height: 320px !important;
  width: auto !important;
  filter: drop-shadow(0 0 60px rgba(139,92,246,0.5));
  margin-bottom: -32px !important;
  margin-right: -24px !important;
}

.logo-wordmark-wrapper {
  height: 160px !important;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.logo-wordmark {
  height: 480px !important;
  width: auto !important;
  object-fit: contain;
  margin-top: -160px !important;
  margin-bottom: -160px !important;
}

/* -- Signup Form -------------------------------- */
.signup-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 380px;
}

.email-input {
  width: 100%;
  padding: 16px 20px;
  font-size: 15px;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.email-input::placeholder {
  color: var(--text-muted);
}

.email-input:focus {
  border-color: var(--primary);
}

.cta-btn {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #7400F0, #5c00c7);
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(116,0,240, 0.3);
}

.cta-btn:hover {
  background: linear-gradient(135deg, #b87aff, #7400F0);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(116,0,240, 0.45);
}

/* -- TOS Link ----------------------------------- */
.tos-link {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.tos-link:hover {
  color: var(--text);
}

/* ================================================
   NAVIGATION (Legal Pages)
   ================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 6, 32, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: flex-end;
  gap: 0;
}

.nav-logo .nav-icon {
  height: 36px;
  width: auto;
  margin-bottom: -2px;
  margin-right: -4px;
}

.nav-logo .nav-wordmark-wrapper {
  height: 28px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.nav-logo .nav-wordmark {
  height: 84px;
  width: auto;
  margin-top: -28px;
  margin-bottom: -28px;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

/* ================================================
   LEGAL PAGE CONTENT
   ================================================ */
.legal-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.legal-page .container {
  max-width: 100%;
}

.legal-page h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff 0%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal-page .last-updated {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-light);
}

.legal-page h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin-top: 48px;
  margin-bottom: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
  letter-spacing: -0.3px;
}

.legal-page h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.legal-page h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #d4d0e0;
  margin-top: 28px;
  margin-bottom: 12px;
}

.legal-page h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 20px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.legal-page p {
  font-size: 15px;
  line-height: 1.75;
  color: #c9c5d4;
  margin-bottom: 16px;
}

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

.legal-page li {
  font-size: 15px;
  line-height: 1.75;
  color: #c9c5d4;
  margin-bottom: 8px;
}

.legal-page li strong {
  color: #e0dce8;
}

.legal-page ul ul {
  margin-top: 8px;
  margin-bottom: 8px;
}

.legal-page a {
  color: var(--primary-light);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(139, 92, 246, 0.3);
}

.legal-page a:hover {
  text-decoration-color: var(--primary-light);
  color: #b87aff;
}

/* Back to home link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 48px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
}

.back-link:hover {
  color: var(--text);
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.15);
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
  border-top: 1px solid var(--border-light);
  padding: 24px;
  text-align: center;
}

.footer p {
  font-size: 13px;
  color: var(--text-dim);
}

.footer-bottom {
  max-width: 900px;
  margin: 0 auto;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 640px) {
  .legal-page {
    padding: 40px 20px 60px;
  }

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

  .legal-page h2 {
    font-size: 19px;
    margin-top: 36px;
    padding-top: 24px;
  }

  .nav-inner {
    padding: 14px 20px;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: 13px;
  }
}
