/* ==========================================================================
   FIXILA - LEGAL PAGES STYLESHEET
   Save as: /css/legal.css
   Used on: privacy.html, terms.html
   ========================================================================== */

/* ==========================================================================
   LEGAL CONTENT SECTION
   ========================================================================== */
.legal-content {
  padding: 4rem 2rem;
  background: #ffffff;
}

.legal-container {
  max-width: 900px;
  margin: 0 auto;
}

/* Individual sections */
.legal-section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e2e8f0;
}

.legal-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Headings */
.legal-section h2 {
  font-size: 1.8rem;
  color: #1e3a8a;
  margin-bottom: 1.5rem;
  font-weight: 700;
  padding-top: 1rem;
}

.legal-section h3 {
  font-size: 1.3rem;
  color: #2563eb;
  margin: 2rem 0 1rem;
  font-weight: 600;
}

/* Paragraphs */
.legal-section p {
  font-size: 1rem;
  line-height: 1.8;
  color: #334155;
  margin-bottom: 1rem;
}

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

/* Lists */
.legal-section ul {
  margin: 1rem 0 1.5rem 0;
  padding-left: 2rem;
}

.legal-section ul li {
  font-size: 1rem;
  line-height: 1.8;
  color: #334155;
  margin-bottom: 0.75rem;
  position: relative;
}

.legal-section ul li::marker {
  color: #2563eb;
}

/* Nested lists */
.legal-section ul ul {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

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

/* Links */
.legal-section a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.legal-section a:hover {
  color: #1e40af;
  text-decoration: underline;
}

/* Contact info box */
.contact-info {
  background: #f8fafc;
  padding: 1.5rem;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  margin-top: 1rem;
}

.contact-info p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

.contact-info p:first-child {
  margin-top: 0;
}

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

.contact-info strong {
  color: #1e3a8a;
}

/* Emphasis boxes for important legal text */
.legal-section p strong {
  color: #1e3a8a;
  font-weight: 700;
}

/* ALL CAPS legal disclaimers */
.legal-section p {
  /* Allow all caps in legal docs */
}

/* Special styling for disclaimer paragraphs */
.legal-section > p:has(strong) {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  margin: 1.5rem 0;
}

/* Table of Contents (if you want to add one later) */
.legal-toc {
  background: #f8fafc;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 3rem;
  border: 1px solid #e2e8f0;
}

.legal-toc h3 {
  font-size: 1.3rem;
  color: #1e3a8a;
  margin-bottom: 1rem;
  font-weight: 700;
}

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

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

.legal-toc ul li a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.legal-toc ul li a:hover {
  text-decoration: underline;
}

/* Quick nav for long documents */
.quick-nav {
  position: sticky;
  top: 80px;
  background: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  z-index: 10;
}

.quick-nav a {
  display: inline-block;
  margin-right: 1rem;
  padding: 0.5rem 1rem;
  background: #eff6ff;
  color: #2563eb;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.quick-nav a:hover {
  background: #2563eb;
  color: white;
}

/* Print styles */
@media print {
  .hero-legal {
    background: white;
    color: black;
    padding: 2rem 0;
  }

  .hero-legal h1 {
    color: black;
  }

  .hero-legal p {
    color: black;
  }

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

  .legal-section h2 {
    page-break-after: avoid;
  }

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

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
  .hero-legal {
    padding: 3rem 1.5rem;
  }

  .hero-legal h1 {
    font-size: 2.2rem;
  }

  .hero-legal p {
    font-size: 1rem;
  }

  .legal-content {
    padding: 3rem 1.5rem;
  }

  .legal-section h2 {
    font-size: 1.5rem;
  }

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

  .legal-section ul {
    padding-left: 1.5rem;
  }

  .quick-nav {
    top: 60px;
  }

  .quick-nav a {
    display: block;
    margin-bottom: 0.5rem;
    margin-right: 0;
  }
}

@media (max-width: 480px) {
  .hero-legal h1 {
    font-size: 1.9rem;
  }

  .legal-section h2 {
    font-size: 1.3rem;
  }

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

  .legal-section p,
  .legal-section ul li {
    font-size: 0.95rem;
  }

  .contact-info {
    padding: 1rem;
  }
}