/* ==========================================================================
   Estilos para Páginas Legales (.legal-content)
   ========================================================================== */

.legal-page-section {
  color: #333333;
  font-family: inherit;
}

.legal-content {
  font-size: 1rem;
  line-height: 1.75;
}

/* Encabezados (Headings) */
.legal-content h1,
.legal-content h2,
.legal-content h3,
.legal-content h4,
.legal-content h5,
.legal-content h6 {
  color: #005ac4; /* Color primario institucional */
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-content h1 { font-size: 2.25rem; }
.legal-content h2 { font-size: 1.75rem; border-bottom: 2px solid #e5e7eb; padding-bottom: 0.5rem; }
.legal-content h3 { font-size: 1.35rem; }
.legal-content h4 { font-size: 1.15rem; }

/* Parrafos */
.legal-content p {
  margin-bottom: 1.25rem;
  color: #4b5563;
}

/* Listas ordenadas y desordenadas */
.legal-content ul,
.legal-content ol {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  padding-left: 1.75rem;
}

.legal-content ul {
  list-style-type: disc;
}

.legal-content ol {
  list-style-type: decimal;
}

.legal-content li {
  margin-bottom: 0.5rem;
  color: #374151;
}

.legal-content li strong {
  color: #111827;
}

/* Enlaces */
.legal-content a {
  color: #ff8900; /* Color secundario */
  text-decoration: underline;
  transition: color 0.2s ease;
}

.legal-content a:hover {
  color: #005ac4;
  text-decoration: none;
}

/* Citas (Blockquotes) */
.legal-content blockquote {
  border-left: 4px solid #ff8900;
  background-color: #fff8f0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #4b5563;
}

/* Tablas */
.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.legal-content th,
.legal-content td {
  padding: 0.75rem 1rem;
  border: 1px solid #e5e7eb;
  text-align: left;
}

.legal-content th {
  background-color: #f3f4f6;
  color: #111827;
  font-weight: 600;
}

.legal-content tr:nth-child(even) {
  background-color: #f9fafb;
}

/* Separador horizontal */
.legal-content hr {
  border: 0;
  height: 1px;
  background: #e5e7eb;
  margin: 2.5rem 0;
}

/* Ajustes para archivos adjuntos / botones de descarga nativos */
.legal-content .wp-block-file {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.legal-content .wp-block-file a.wp-block-file__button {
  background-color: #005ac4;
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
}

.legal-content .wp-block-file a.wp-block-file__button:hover {
  background-color: #ff8900;
}