/* ═══════════════════════════════════════════════════════════════
   INFO PAGE STYLES
   Additional styles for info pages (Terms, Privacy, Cookies, etc.)
   
   Inherits from:
   - landing.css (base styles, variables, buttons)
   - content-page.css (content-hero, content-section, section-label)
   
   This file only contains NEW styles not present in parent CSS files.
   ═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────
   Sticky Footer Layout
   Ensures footer stays at bottom even with short content
   ───────────────────────────────────────────────────────────────── */
.info-page-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.info-page-main {
  flex: 1 0 auto;
}

.info-page-body footer {
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────────
   Info Hero Section
   ───────────────────────────────────────────────────────────────── */
.info-hero {
  padding: 8rem 0 0;
  margin: 0;
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
  text-align: center;
}

.info-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.info-hero h1 {
  font-family: var(--headings-font);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--text-primary);
  margin: 1rem 0 0;
}

/* ─────────────────────────────────────────────────────────────────
   Info Content Section
   ───────────────────────────────────────────────────────────────── */
.info-content {
  padding: 8rem 0 6rem;
  background: var(--white);
}

/* When hero is present, reduce top padding (hero handles the header clearance) */
.info-hero + .info-content {
  padding-top: 4rem;
}

/* ─────────────────────────────────────────────────────────────────
   Horizontal Rule - Blue fade to right
   ───────────────────────────────────────────────────────────────── */
.info-body hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, var(--brand) 0%, transparent 100%);
  margin: 2rem 0;
}

/* ─────────────────────────────────────────────────────────────────
   Info Body - Typography for HTML content from database
   (content-page.css uses .content-block, this is for raw HTML)
   ───────────────────────────────────────────────────────────────── */
.info-body {
  max-width: 800px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.info-body h2 {
  font-family: var(--headings-font);
  font-size: 1.5rem;
  color: var(--text-primary);
  margin: 2.5rem 0 1rem;
  padding-top: 1rem;
}

.info-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
}

.info-body h3 {
  font-family: var(--subheadings-font);
  font-size: 1.125rem;
  color: var(--brand-700);
  margin: 2rem 0 0.75rem;
  font-weight: 600;
}

.info-body p {
  margin: 0 0 1rem;
}

.info-body ul,
.info-body ol {
  margin: 1rem 0 1.5rem;
  padding-left: 1.5rem;
}

.info-body li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.info-body li strong {
  color: var(--text-primary);
}

.info-body a {
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1px solid var(--brand-200);
  transition: all 0.2s ease;
}

.info-body a:hover {
  color: var(--brand-700);
  border-bottom-color: var(--brand);
}

/* ─────────────────────────────────────────────────────────────────
   Info Navigation - Links to related pages
   ───────────────────────────────────────────────────────────────── */
.info-nav {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
}

.info-nav h4 {
  font-family: var(--body-font);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 1rem;
}

.info-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.info-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--gray-50);
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  transition: all 0.2s ease;
}

.info-nav-link:hover {
  background: var(--brand-50);
  color: var(--brand);
  border-color: var(--brand-200);
}

.info-nav-link.active {
  background: var(--brand);
  color: var(--white);
  border-color: var(--brand);
}

/* Import modal overlay styles from separate file */
@import url('info-modal-overlay.css');

/* ─────────────────────────────────────────────────────────────────
   Responsive
   ───────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .info-body h2 {
    font-size: 1.375rem;
    margin: 2rem 0 0.75rem;
  }
  
  .info-body h3 {
    font-size: 1.0625rem;
  }
  
  .info-nav-links {
    flex-direction: column;
  }
  
  .info-nav-link {
    width: 100%;
    justify-content: center;
  }
}
