/* ============================================= */
/* PAGE-SPECIFIC: Legal Pages                   */
/* Purpose: Privacy Policy, Terms of Service    */
/* ============================================= */

/* ============================================= */
/* HERO - MINIMAL VARIANT FOR LEGAL PAGES       */
/* ============================================= */

.hero--minimal {
  min-height: 30vh;
  background: var(--primary-color);
  padding: 4rem 5%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero--minimal .hero-content {
  max-width: 800px;
  text-align: center;
  color: white;
}

.hero--minimal h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: white;
}

.hero--minimal .hero-description {
  font-size: 1.125rem;
  opacity: 0.95;
  color: white;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .hero--minimal {
    min-height: 25vh;
    padding: 3rem 5%;
  }

  .hero--minimal h1 {
    font-size: 2rem;
  }

  .hero--minimal .hero-description {
    font-size: 1rem;
  }
}

/* ============================================= */
/* LEGAL CONTENT CONTAINER                      */
/* ============================================= */

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

/* Introduction Paragraph - Larger */
.legal-intro {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--border-color);
}

/* ============================================= */
/* LEGAL SECTIONS                               */
/* ============================================= */

.legal-section {
  margin-bottom: 3rem;
}

.legal-section:last-child {
  margin-bottom: 0;
}

/* Section Headings */
.legal-section h2 {
  font-size: 1.75rem;
  color: var(--text-color);
  margin-bottom: 1.25rem;
  margin-top: 0;
  padding-top: 1rem;
}

.legal-section h3 {
  font-size: 1.25rem;
  color: var(--text-color);
  margin-bottom: 1rem;
  margin-top: 2rem;
  font-weight: 600;
}

/* Section Paragraphs */
.legal-section p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 1.25rem;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

/* Lists in Legal Content */
.legal-section ul,
.legal-section ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.legal-section li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
  color: var(--text-color);
}

/* Links in Legal Content */
.legal-section a {
  color: var(--primary-color);
  text-decoration: underline;
  transition: color var(--transition-fast);
}

.legal-section a:hover {
  color: var(--primary-dark);
}

/* ============================================= */
/* CONTACT DETAILS SECTION                      */
/* ============================================= */

.contact-details {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
  margin-top: 1.5rem;
}

.contact-details p {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  line-height: 1.6;
}

.contact-details p:last-child {
  margin-bottom: 0;
}

.contact-details strong {
  color: var(--text-color);
  font-weight: 600;
}

.contact-details a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.contact-details a:hover {
  text-decoration: underline;
}

/* ============================================= */
/* TABLE OF CONTENTS (Optional Enhancement)     */
/* ============================================= */

.legal-toc {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 3rem;
  border-left: 4px solid var(--primary-color);
}

.legal-toc h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.legal-toc ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.legal-toc li {
  margin-bottom: 0.5rem;
}

.legal-toc a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  transition: color var(--transition-fast);
}

.legal-toc a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ============================================= */
/* MOBILE OPTIMIZATIONS                         */
/* ============================================= */

@media (max-width: 768px) {
  .legal-section h2 {
    font-size: 1.5rem;
  }

  .legal-section h3 {
    font-size: 1.125rem;
  }

  .legal-intro {
    font-size: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
  }

  .contact-details {
    padding: 1rem;
  }

  .legal-toc {
    padding: 1.5rem;
  }
}

/* ============================================= */
/* PRINT STYLES - LEGAL PAGES                   */
/* ============================================= */

@media print {
  .hero--minimal,
  #header,
  #footer,
  .skip-link {
    display: none;
  }

  .legal-content {
    font-size: 11pt;
    line-height: 1.6;
    color: black;
  }

  .legal-section h2 {
    font-size: 14pt;
    page-break-after: avoid;
    border-top: 1pt solid #ccc;
    padding-top: 12pt;
  }

  .legal-section h3 {
    font-size: 12pt;
    page-break-after: avoid;
  }

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

  .legal-intro {
    border-bottom: 1pt solid #ccc;
  }

  .contact-details {
    background: none;
    border: 1pt solid #ccc;
    padding: 8pt;
  }

  .legal-section a[href^="http"]:after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #666;
  }

  .legal-section a[href^="tel:"]:after,
  .legal-section a[href^="mailto:"]:after {
    content: "";
  }
}

/* ============================================= */
/* ACCESSIBILITY ENHANCEMENTS                   */
/* ============================================= */

/* Focus Styles */
.legal-section a:focus,
.contact-details a:focus,
.legal-toc a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* ============================================= */
/* NOTES & DOCUMENTATION                        */
/* ============================================= */

/*
USAGE:
- Privacy Policy page
- Terms of Service page
- Any legal/policy pages

FEATURES:
- Minimal hero (no image, solid background)
- Clean, readable typography optimized for legal content
- Clear section separation
- Contact details highlighted
- Optional table of contents
- Print-friendly styles
- WCAG AA compliant

STRUCTURE:
- hero--minimal: Simple hero for legal pages
- legal-content: Main container (800px max-width)
- legal-intro: Larger intro paragraph
- legal-section: Individual policy sections
- contact-details: Highlighted contact info
- legal-toc: Optional table of contents (if needed)

ACCESSIBILITY:
- Proper heading hierarchy
- Focus indicators on all links
- Skip link support
- High contrast ratios
- Print-optimized for documentation
*/
