/* ==========================================================================
   Secondary Pages Styles (Privacy, Terms, Support)
   Matches Patente Facile Landing Page Identity
   ========================================================================== */

/* ----------------------------------------
   Base Resets and Overrides
---------------------------------------- */
html, body {
  background-color: var(--bg-cream);
}

body {
  margin: 0;
  padding-top: 80px; /* Account for fixed navbar */
}



/* ----------------------------------------
   Hero Section (Restrained)
---------------------------------------- */
.secondary-hero {
  padding: calc(var(--space-xl) + 2rem) 0 var(--space-xl);
  text-align: center;
  background-color: var(--bg-cream); /* Unified page background */
}

.secondary-hero .eyebrow {
  margin-bottom: var(--space-sm);
}

.secondary-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-dark);
  margin-bottom: var(--space-md);
  line-height: 1.1;
}

.secondary-hero .lead {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.secondary-hero .last-updated {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 600;
  margin-top: var(--space-md);
}

/* ----------------------------------------
   Two-Column Layout (Privacy, Terms)
---------------------------------------- */
.legal-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  padding: var(--space-xl) 0;
}

@media (min-width: 1024px) {
  .legal-layout {
    flex-direction: row;
    align-items: flex-start;
  }
}

/* ----------------------------------------
   Sidebar / Table of Contents
---------------------------------------- */
.legal-sidebar {
  width: 100%;
}

@media (min-width: 1024px) {
  .legal-sidebar {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 120px; /* Account for navbar */
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    padding-right: var(--space-md);
  }
}

.toc-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc-title {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-dark);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.toc-link {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 12px;
  transition: all var(--transition-smooth);
}

.toc-link:hover, .toc-link:focus {
  background-color: var(--border-color);
  color: var(--text-dark);
}

.toc-link.active {
  background-color: #f5f1ff; /* Violet soft */
  color: var(--accent-color);
  font-weight: 700;
}

/* ----------------------------------------
   Legal Content
---------------------------------------- */
.legal-content {
  flex: 1;
  max-width: 800px;
}

.legal-section {
  scroll-margin-top: 120px; /* Account for floating navbar */
  margin-bottom: var(--space-xl);
}

.legal-section h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.legal-section h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.legal-section p, .legal-section li {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: var(--space-sm);
}

.legal-section ul {
  padding-left: 1.5rem;
  margin-bottom: var(--space-md);
}

.legal-section li {
  margin-bottom: 8px;
}

.legal-section a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-smooth);
}

.legal-section a:hover, .legal-section a:focus {
  color: #5b21b6;
  text-decoration: underline;
}

.legal-note {
  background-color: #f5f1ff;
  border-left: 4px solid var(--accent-color);
  padding: var(--space-md);
  border-radius: 16px;
  margin: var(--space-md) 0;
}

.legal-note strong {
  color: var(--text-dark);
}

.legal-note p {
  margin-bottom: 0;
}

/* ----------------------------------------
   Support Page Editorial Grid
---------------------------------------- */
.support-section {
  padding: var(--space-xl) 0;
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  max-width: 800px;
  margin: 0 auto;
}

.support-article {
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border-color);
}

.support-article:last-child {
  border-bottom: none;
}

.support-article h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.support-article p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: var(--space-sm);
}

.support-hint {
  font-size: 0.95rem;
  color: #8e837f;
  margin-top: 12px;
  padding: 12px;
  background-color: var(--bg-cream-dark);
  border-radius: 12px;
}

.support-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background-color: #f5f1ff;
  color: var(--accent-color);
  font-weight: 700;
  border-radius: 100px;
  text-decoration: none;
  transition: all var(--transition-smooth);
  margin-top: var(--space-md);
}

.support-contact-btn:hover, .support-contact-btn:focus {
  background-color: var(--accent-color);
  color: white;
}

/* ----------------------------------------
   Print Styles
---------------------------------------- */
@media print {
  body {
    padding-top: 0;
    background-color: white;
    color: black;
  }
  
  .navbar-wrapper,
  .footer-cta-section,
  .legal-sidebar,
  .mobile-menu {
    display: none !important;
  }

  .secondary-hero {
    border-bottom: none;
    padding: 20px 0;
  }

  .legal-layout {
    display: block;
    padding: 0;
  }

  .legal-content {
    max-width: 100%;
  }

  .legal-section {
    page-break-inside: avoid;
    margin-bottom: 20px;
  }

  h1, h2, h3, p, li, strong {
    color: black !important;
  }

  a {
    color: black !important;
    text-decoration: underline;
  }
}
