.legal-section .legal-intro {
  max-width: 850px;
  margin-bottom: 30px;
  color: var(--muted);
}

.legal-section details {
  margin-top: 14px;
}

.legal-section summary {
  width: 100%;
  font-weight: 650;
}

.legal-content {
  padding: 12px 4px 8px;
  max-width: 950px;
  color: var(--muted);
  font-size: 1rem;
}

.legal-content strong,
.legal-terms dt {
  color: var(--text);
  font-weight: 650;
}

.legal-content li {
  margin: 12px 0;
}

.legal-content .legal-source,
.legal-update {
  font-size: .875rem;
  line-height: 1.8;
  color: var(--muted);
}

.legal-source a {
  overflow-wrap: anywhere;
}

.legal-update {
  margin-top: 28px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9375rem;
  line-height: 1.7;
}

.legal-table th,
.legal-table td {
  text-align: left;
  vertical-align: top;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
}

.legal-table th {
  color: var(--text);
  font-weight: 650;
}

.legal-table th:first-child {
  width: 145px;
}

.legal-terms {
  margin: 14px 0;
}

.legal-terms > div {
  margin: 14px 0;
}

.legal-terms dd {
  margin: 4px 0 0;
}

@media (max-width: 760px) {
  .legal-table th,
  .legal-table td {
    padding: 12px 6px;
  }

  .legal-table th:first-child {
    width: 90px;
  }
}

/* WP009: solicitud del documento al final de la trayectoria. */
.cv-request {
  margin-top: 42px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.career .cv-request h3 { margin: 0 0 6px; font-size: 1.125rem; }
.cv-request p { margin: 0; color: var(--muted); font-size: .9375rem; }
.cv-request .button { flex-shrink: 0; }
@media (max-width: 600px) {
  .cv-request { align-items: stretch; flex-direction: column; padding: 22px; gap: 18px; }
  .cv-request .button { width: 100%; }
}

/* WP010: mayor protagonismo de la especialidad en la presentación. */
.hero .profession {
  font-size: clamp(1.625rem, 2.7vw, 2.25rem);
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -.02em;
  margin: 4px 0 22px;
  text-wrap: balance;
}

/* WP013: razones visibles de contratación y respaldo jurídico breve. */
.legal-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 30px 0 24px;
}
.legal-benefit {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  border-radius: 8px;
  background: var(--surface);
  min-width: 0;
}
.legal-benefit h3 {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 1.125rem;
  line-height: 1.45;
  font-weight: 700;
}
.legal-benefit p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.75; }
.legal-note { max-width: 850px; margin: 0; color: var(--muted); font-size: .9375rem; }
.legal-action { margin: 24px 0 32px; }
.legal-questions { padding-top: 12px; border-top: 1px solid var(--line); }
@media (max-width: 850px) {
  .legal-benefits { grid-template-columns: 1fr; gap: 16px; }
  .legal-benefit { padding: 22px; }
  .legal-benefit h3 { margin-bottom: 10px; }
}
@media (max-width: 480px) {
  .legal-action .button { width: 100%; }
}

/* WP014: contexto estadístico atribuido, independiente del argumento jurídico. */
.digital-context { background: var(--surface); border-block: 1px solid var(--line); }
.digital-context-intro { max-width: 820px; color: var(--muted); margin: 0 0 32px; }
.digital-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.digital-stat { padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--base); min-width: 0; }
.digital-stat h3 { font-size: 1.125rem; line-height: 1.45; margin: 0 0 20px; font-weight: 700; }
.digital-stat .stat-figure { color: var(--gold); font-size: clamp(2.5rem, 4.5vw, 3.25rem); font-weight: 750; line-height: 1.1; margin: 0 0 8px; }
.digital-stat .stat-unit { margin: 0; font-size: 1rem; font-weight: 650; }
.digital-stat .stat-period { margin: 10px 0 18px; color: var(--gold); font-size: .875rem; }
.digital-stat .stat-description { margin: 0; color: var(--muted); font-size: .9375rem; }
.digital-stat .stat-source { margin: 22px 0 0; font-size: .875rem; }
.digital-stat .stat-source a { overflow-wrap: anywhere; }
.digital-context-note { margin: 24px 0 0; max-width: 900px; color: var(--muted); font-size: .875rem; }
@media (max-width: 760px) {
  .digital-stats { grid-template-columns: 1fr; gap: 18px; }
  .digital-stat { padding: 24px; }
}

/* WP018: capítulos con jerarquía y fronteras uniformes. */
.section.chapter {
  padding: 84px 0;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}
.chapter.chapter-base { background: var(--base); }
.chapter.chapter-surface { background: var(--surface); }
.chapter > .wrap > h2 { max-width: 900px; }
.chapter .section-intro { max-width: 820px; margin-bottom: 36px; }
.credential-group + .credential-group { margin-top: 36px; }
.credential-group > h3 {
  color: var(--gold);
  font-size: 1.25rem;
  line-height: 1.5;
  font-weight: 650;
  margin: 0 0 18px;
}
.credentials-section .credential-list > div { padding: 22px 0; }
.chapter-surface .legal-benefit { background: var(--base); }
.profile-intro { max-width: 900px; color: var(--muted); }
.profile-intro p { margin: 0 0 18px; }
.profile-intro p:last-child { margin-bottom: 0; }
.career.chapter .career-grid {
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.career.chapter .career-grid h3 { margin: 0 0 22px; }
.career.chapter .cv-request { margin-top: 36px; background: var(--surface); }
.section.chapter-compact { padding: 64px 0; }
.chapter-compact .digital-context-intro { margin-bottom: 26px; }
.chapter-compact .digital-stats { gap: 36px; }
.chapter-compact .digital-stat {
  padding: 20px 0 0;
  border: 0;
  border-top: 2px solid var(--gold);
  border-radius: 0;
  background: transparent;
}
.chapter-compact .digital-stat h3 { margin-bottom: 14px; }
.chapter-compact .stat-figure { font-size: clamp(2.375rem, 4vw, 2.75rem); }
.chapter-compact .stat-period { margin: 8px 0 12px; }
.chapter-compact .stat-source { margin-top: 14px; }
.chapter-compact .digital-context-note { margin-top: 20px; }
@media (max-width: 760px) {
  .section.chapter { padding: 56px 0; }
  .chapter .section-intro { margin-bottom: 28px; }
  .credential-group + .credential-group { margin-top: 30px; }
  .credential-group > h3 { font-size: 1.125rem; margin-bottom: 16px; }
  .career.chapter .career-grid { margin-top: 30px; padding-top: 30px; gap: 32px; }
  .career.chapter .career-grid h3 { margin-bottom: 18px; }
  .career.chapter .cv-request { margin-top: 30px; }
  .section.chapter-compact { padding: 48px 0; }
  .chapter-compact .digital-stats { gap: 28px; }
}
