/* ===== Legal Pages Styling ===== */

.legal-hero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  margin-bottom: 0;
}

.legal-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.legal-hero .lead {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Legal content container */
.legal-content-wrapper {
  background: #ffffff;
  padding: 60px 0;
}

.legal-content-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Updated date styling */
.updated-date {
  color: #6c757d;
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e9ecef;
}

/* Intro paragraph */
.legal-intro {
  color: #495057;
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 40px;
  padding: 20px;
  background: #f8f9fa;
  border-left: 4px solid #007bff;
  border-radius: 4px;
}

/* Section headings */
.legal-content-container h2 {
  color: #007bff;
  font-size: 1.6rem;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e9ecef;
}

.legal-content-container h2:first-of-type {
  margin-top: 0;
}

/* Paragraphs */
.legal-content-container p {
  color: #495057;
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 1rem;
}

/* Lists */
.legal-content-container ul {
  color: #495057;
  line-height: 1.8;
  margin-bottom: 20px;
  padding-left: 24px;
}

.legal-content-container ul li {
  margin-bottom: 12px;
  font-size: 1rem;
}

/* Links */
.legal-content-container a {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.legal-content-container a:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Section numbers */
h2 {
  position: relative;
}

h2::before {
  content: attr(data-section);
  display: inline-block;
  background: #007bff;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  text-align: center;
  line-height: 32px;
  font-size: 0.9rem;
  margin-right: 12px;
  font-weight: 700;
}

/* Table of contents */
.legal-toc {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 40px;
}

.legal-toc h3 {
  color: #212529;
  font-size: 1.2rem;
  margin-top: 0;
  margin-bottom: 16px;
  font-weight: 600;
}

.legal-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.legal-toc li {
  margin-bottom: 10px;
}

.legal-toc a {
  color: #007bff;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.legal-toc a:hover {
  color: #0056b3;
  padding-left: 8px;
}

.legal-toc a::before {
  content: "▸";
  margin-right: 8px;
  font-weight: bold;
}

/* Contact section */
.legal-contact-box {
  background: #e7f3ff;
  border-left: 4px solid #007bff;
  padding: 24px;
  border-radius: 6px;
  margin-top: 40px;
  margin-bottom: 0;
}

.legal-contact-box p {
  margin-bottom: 12px;
  color: #0c5394;
  font-weight: 500;
}

.legal-contact-box a {
  color: #007bff;
  font-weight: 600;
}

/* Responsive design */
@media (max-width: 768px) {
  .legal-hero {
    min-height: 300px;
    padding: 60px 20px;
  }

  .legal-hero h1 {
    font-size: 2rem;
  }

  .legal-hero .lead {
    font-size: 1rem;
  }

  .legal-content-container {
    padding: 0 16px;
  }

  .legal-content-container h2 {
    font-size: 1.4rem;
    margin-top: 32px;
  }

  .legal-toc {
    padding: 16px;
  }
}

/* Print styles */
@media print {
  .legal-hero {
    background: #f8f9fa;
    color: #212529;
  }

  .legal-content-wrapper {
    padding: 0;
  }

  .legal-content-container h2 {
    page-break-after: avoid;
  }

  .legal-contact-box {
    border: 1px solid #dee2e6;
    background: #ffffff;
  }
}
