/* Page-Specific Styles */

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
  align-items: center;
  padding-top: var(--spacing-3xl);
  padding-bottom: var(--spacing-3xl);
}

.hero-text h1 {
  margin-bottom: var(--spacing-lg);
  color: var(--color-text-primary);
  line-height: 1.1;
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-2xl);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  max-width: 400px;
  width: 100%;
  filter: drop-shadow(var(--shadow-large));
}

@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image {
    order: -1;
  }

  .hero-image img {
    max-width: 300px;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: auto;
    padding-top: var(--spacing-2xl);
  }

  .hero-subtitle {
    font-size: var(--font-size-lg);
  }

  .hero-image img {
    max-width: 250px;
  }
}

/* ===== Features Section ===== */
.features {
  background-color: var(--color-warm-white);
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
  color: var(--color-text-primary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-2xl);
}

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
}

.feature-card {
  text-align: center;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-lg);
  display: block;
}

/* ===== How It Works Section ===== */
.how-it-works {
  background-color: var(--color-soft-beige);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-3xl);
  counter-reset: step-counter;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--color-moon-gold);
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin: 0 auto var(--spacing-lg) auto;
  box-shadow: var(--shadow-soft);
}

.step h3 {
  margin-bottom: var(--spacing-md);
  color: var(--color-text-primary);
}

.step p {
  color: var(--color-text-secondary);
}

@media (max-width: 768px) {
  .steps {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
  }
}

/* ===== Download CTA Section ===== */
.download-cta {
  background: linear-gradient(135deg, var(--color-cloud-blue) 0%, var(--color-cream) 100%);
  text-align: center;
}

.download-cta h2 {
  margin-bottom: var(--spacing-lg);
}

.download-cta p {
  font-size: var(--font-size-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--spacing-2xl);
}

/* ===== Legal Pages (Privacy & Terms) ===== */
.legal-document {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-3xl) var(--spacing-lg);
}

.legal-document header {
  margin-bottom: var(--spacing-2xl);
  padding-bottom: var(--spacing-lg);
  border-bottom: 2px solid var(--color-border);
}

.legal-document h1 {
  margin-bottom: var(--spacing-sm);
}

.last-updated {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  font-style: italic;
}

.table-of-contents {
  background-color: var(--color-warm-white);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-2xl);
  box-shadow: var(--shadow-soft);
}

.table-of-contents h2 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-md);
}

.table-of-contents ol {
  list-style: decimal;
  padding-left: var(--spacing-xl);
}

.table-of-contents li {
  margin-bottom: var(--spacing-sm);
}

.table-of-contents a {
  color: var(--color-link);
  text-decoration: none;
}

.table-of-contents a:hover {
  text-decoration: underline;
}

.legal-document section {
  margin-bottom: var(--spacing-3xl);
  scroll-margin-top: 100px; /* Offset for sticky header */
}

.legal-document h2 {
  margin-top: var(--spacing-2xl);
  margin-bottom: var(--spacing-lg);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--color-divider);
}

.legal-document h3 {
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
}

.legal-document h4 {
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
}

.legal-document table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--spacing-lg) 0;
  background-color: var(--color-warm-white);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.legal-document th,
.legal-document td {
  padding: var(--spacing-md);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.legal-document th {
  background-color: var(--color-soft-beige);
  font-weight: 600;
  color: var(--color-text-primary);
}

.legal-document ul {
  list-style: disc;
  padding-left: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
}

.legal-document ol {
  list-style: decimal;
  padding-left: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
}

.legal-document li {
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-secondary);
}

/* Print Styles for Legal Documents */
@media print {
  .site-header,
  .site-footer,
  .table-of-contents {
    display: none;
  }

  .legal-document {
    max-width: 100%;
    padding: 0;
  }

  .legal-document section {
    page-break-inside: avoid;
  }
}
