/* ===== Legal Aid Styles ===== */

.legal-hero {
  background-color: #f3f7fd;
  text-align: center;
  padding: 9rem 2rem;
  border-radius: 0 0 1.5rem 1.5rem;
}

.legal-hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #0d47a1;
  margin-bottom: 1rem;
}

.legal-hero p {
  font-size: 1.1rem;
  color: #333;
  max-width: 700px;
  margin: 0 auto;
}

.legal-section {
  padding: 2.5rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  border-bottom: 1px solid #e0e0e0;
}

.legal-section h2 {
  font-size: 1.5rem;
  color: #1e88e5;
  margin-bottom: 0.75rem;
}

.legal-section p {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #444;
}

.legal-section ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  line-height: 1.6;
  color: #333;
}

.legal-section ul li a {
  color: #1e88e5;
  text-decoration: none;
}

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

.legal-faq {
  padding: 2.5rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  background-color: #f9f9f9;
  border-radius: 10px;
}

.legal-faq h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #0d47a1;
}

.legal-faq ul {
  list-style-type: none;
  padding-left: 0;
  line-height: 1.8;
}

.legal-faq li {
  margin-bottom: 1rem;
}

.legal-cta {
  text-align: center;
  padding: 2rem;
  background-color: #e3f2fd;
  border-top: 1px solid #ccc;
}

.legal-cta p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.btn-primary {
  background-color: #1e88e5;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
}

.btn-primary:hover {
  background-color: #1565c0;
}

/* ===== Modal Styling ===== */
.modal {
  padding-top: 1.5rem;
  display: none;
  position: fixed;
  z-index: 999;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.25s ease-in-out;
}

.modal-content {
  background-color: #fff;
  margin: auto;
  padding: 5rem 2.5rem;
  width: 90%;
  max-width: 600px;
  border-radius: 16px;
  position: relative;
  top: 10%;
  max-height: 85vh; /* ✅ Limit height */
  overflow-y: auto;   /* ✅ Enable scroll when needed */
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s ease-out;
}


@keyframes fadeIn {
  from { opacity: 0 }
  to { opacity: 1 }
}

@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0 }
  to { transform: translateY(0); opacity: 1 }
}

.modal-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1e88e5;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-content ul {
  list-style-type: disc;
  padding-left: 1.25rem;
  margin-bottom: 1.75rem;
  color: #444;
  line-height: 1.6;
  font-size: 1rem;
}

.modal-content ul li {
  margin-bottom: 0.75rem;
}

.modal-content ul li strong {
  font-weight: 600;
}

.close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 1.5rem;
  color: #888;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #000;
}

.btn-primary {
  background-color: #1e88e5;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: background-color 0.2s ease;
  font-size: 1rem;
}

.btn-primary:hover {
  background-color: #1565c0;
}

.last-updated {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
  text-align: center;
}

.rights-list li {
  margin-bottom: 2rem;
}

.truth-box {
  background-color: #f1f8ff;
  border-left: 4px solid #1e88e5;
  padding: 0.75rem 1rem;
  margin-top: 0.5rem;
  border-radius: 6px;
  font-size: 0.95rem;
  color: #333;
}

.label-true {
  font-weight: bold;
  color: #1e88e5;
  margin-right: 0.3rem;
}

/* ===== Clickable LI Style ===== */
.clickable-li {
  cursor: pointer;
  transition: color 0.2s ease;
}

.clickable-li:hover {
  text-decoration: underline;
  color: #1e88e5;
}

.related-articles {
  margin-top: 3rem;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 10px;
}

.related-articles h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.related-article-list {
  list-style: none;
  padding: 0;
}

.related-article-list li {
  margin-bottom: 1.25rem;
}

.related-article-list a {
  color: #007bff;
  text-decoration: none;
  font-weight: 600;
}

.related-article-list a:hover {
  text-decoration: underline;
}

.view-more {
  display: inline-block;
  margin-top: 1rem;
  color: #007bff;
  font-weight: bold;
}
