/* ==========================================================================
   AREA UNITED · Páginas legales (aviso legal, términos, cookies)
   Plantilla común en fondo blanco (.p2-light de css/p2-base.css).
   Escritorio: índice fijo a la izquierda + texto a 72 caracteres.
   ========================================================================== */
.p2-legal { background: var(--off-white); color: var(--black-pure); }

/* Migas sobre fondo claro */
.p2-legal .au-crumb-list { color: var(--gray-text-light); }
.p2-legal .au-crumb-list a { color: var(--gray-text-light); }
.p2-legal .au-crumb-list a:hover, .p2-legal .au-crumb-list a:focus-visible { color: var(--black-pure); }
.p2-legal .au-crumb-list li + li::before { color: #BDBDBA; }
.p2-legal .au-crumb-list [aria-current="page"] { color: var(--black-pure); }

.p2-lg-hero { padding-bottom: clamp(24px, 4vw, 48px); }
.p2-lg-head { display: grid; gap: 18px; justify-items: start; }
.p2-lg-head .label { color: var(--black-pure); display: inline-flex; align-items: center; gap: 10px; }
.p2-lg-head .label::before { content: ""; width: 10px; height: 10px; background: var(--yellow); }
.p2-lg-head h1 { font-size: var(--p2-cd-fs-h1, var(--fs-h2)); max-width: 14ch; }
.p2-lg-head .lead { max-width: 58ch; color: var(--gray-text-light); }

.p2-lg-body { padding-top: 0; border-top: 1px solid var(--gray-line-light); }
.p2-lg-grid { display: grid; gap: 32px; padding-top: clamp(32px, 5vw, 56px); }

/* Índice de la página */
.p2-lg-index { display: grid; gap: 12px; align-content: start; }
.p2-lg-index ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.p2-lg-index a {
  display: block;
  padding: 7px 0 7px 12px;
  border-left: 2px solid var(--gray-line-light);
  font-size: 14px;
  color: var(--gray-text-light);
  transition: color var(--t-fast), border-color var(--t-fast);
}
.p2-lg-index a:hover, .p2-lg-index a:focus-visible { color: var(--black-pure); border-color: var(--yellow); }

/* Texto */
.p2-lg-text { max-width: 72ch; }
.p2-lg-sec { padding-bottom: clamp(28px, 4vw, 44px); scroll-margin-top: calc(var(--header-h, 80px) + 24px); }
.p2-lg-sec + .p2-lg-sec { padding-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--gray-line-light); }
.p2-lg-text h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1; margin-bottom: 20px; color: var(--black-pure); }
.p2-lg-text h3 { font-family: var(--font-display); font-size: 20px; letter-spacing: var(--ls-button); text-transform: uppercase; margin: 28px 0 10px; color: var(--black-pure); }
.p2-lg-text h4 { font-size: 15px; font-weight: 600; margin: 20px 0 8px; color: var(--black-pure); }
.p2-lg-text p { font-size: 16px; line-height: 1.7; color: #262626; margin: 0 0 14px; }
.p2-lg-text a { color: var(--black-pure); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.p2-lg-text a:hover, .p2-lg-text a:focus-visible { background: var(--yellow); }
.p2-lg-text strong { font-weight: 600; }

.p2-lg-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.p2-lg-list li { display: flex; align-items: baseline; gap: 12px; font-size: 16px; line-height: 1.6; color: #262626; }
.p2-lg-list li::before { content: ""; width: 8px; height: 8px; flex: none; background: var(--yellow); translate: 0 -1px; }

/* Tabla de cookies: en móvil cada fila pasa a tarjeta con etiquetas */
.p2-lg-table-wrap { margin: 0 0 14px; }
.p2-lg-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.p2-lg-table th { text-align: left; font-family: var(--font-display); font-size: 13px; letter-spacing: var(--ls-button); text-transform: uppercase; padding: 10px 12px; background: var(--black-pure); color: var(--white); }
.p2-lg-table td { padding: 12px; vertical-align: top; border-bottom: 1px solid var(--gray-line-light); line-height: 1.5; }
@media (max-width: 767px) {
  .p2-lg-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .p2-lg-table, .p2-lg-table tbody, .p2-lg-table tr, .p2-lg-table td { display: block; width: 100%; }
  .p2-lg-table tr { border: 1px solid var(--gray-line-light); margin-bottom: 12px; }
  .p2-lg-table td { display: grid; grid-template-columns: 96px 1fr; gap: 10px; border-bottom: 1px solid var(--gray-line-light); }
  .p2-lg-table td:last-child { border-bottom: 0; }
  .p2-lg-table td::before { content: attr(data-label); font-family: var(--font-display); font-size: 12px; letter-spacing: var(--ls-button); text-transform: uppercase; color: var(--gray-text-light); }
}

@media (min-width: 1024px) {
  .p2-lg-grid { grid-template-columns: 240px minmax(0, 1fr); gap: 72px; align-items: start; }
  .p2-lg-index { position: sticky; top: calc(var(--header-h, 80px) + 24px); }
}
