.legal {
  width: min(100% - (2 * var(--gutter)), 880px);
  min-height: calc(100svh - 154px);
  margin: var(--nav-height) auto 0;
  padding: clamp(56px, 9vw, 120px) 0;
}
.legal h1 {
  margin-bottom: 28px;
}
.legal > p:not(.eyebrow) {
  max-width: 68ch;
  margin-top: 18px;
}
.legal a {
  color: var(--blue);
}
.secondary-page .site-footer {
  padding-inline: var(--gutter);
}
@media (max-width: 700px), (max-width: 1000px) and (max-height: 500px) {
  .legal {
    width: min(100% - 36px, 880px);
    min-height: calc(100svh - 124px);
    padding-block: 48px;
  }
  .secondary-page .site-footer {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px 20px;
  }
}
/* Las páginas legales conservan el footer estándar claro del index. */
.secondary-page .site-footer {
  color: var(--ink);
  background: var(--paper);
  border-top-color: rgb(12 13 12 / 16%);
}
.secondary-page .site-footer::before {
  display: none;
}
.secondary-page .site-footer img {
  filter: invert(1);
}
.secondary-page .site-footer .footer-legal {
  color: #50514f;
}
.secondary-page .site-footer nav a::before,
.secondary-page .site-footer nav a::after {
  display: none !important;
  margin: 0 !important;
  content: none !important;
}

@media (max-width: 700px), (max-width: 1000px) and (max-height: 500px) {
  .legal {
    width: min(100% - 36px, 880px);
    min-height: calc(100svh - var(--nav-height));
    margin-top: var(--nav-height);
    padding: 36px 0 max(88px, calc(68px + env(safe-area-inset-bottom)));
    overflow-wrap: anywhere;
  }
  .legal h1 {
    font-size: clamp(32px, 9vw, 44px);
    line-height: 1.02;
  }
  .legal > p:not(.eyebrow) {
    font-size: 16px;
    line-height: 1.62;
  }
  .legal-content h2 {
    margin-top: 38px;
    font-size: clamp(23px, 6.3vw, 28px);
  }
  .legal-content p,
  .legal-content li {
    font-size: 16px;
    line-height: 1.62;
  }
  .legal-content li {
    margin-block: 10px;
  }
  .secondary-page .site-footer {
    padding: 22px var(--gutter) max(86px, calc(66px + env(safe-area-inset-bottom)));
    text-align: center;
  }
  .secondary-page .footer-brand,
  .secondary-page .site-footer nav {
    justify-content: center;
  }
  .secondary-page .site-footer {
    gap: 16px;
  }
  .secondary-page .site-footer a,
  .secondary-page .footer-legal,
  .secondary-page .footer-legal a {
    font-size: 11px;
    line-height: 1.45;
  }
}

@media (min-width: 701px) and (max-width: 1199px) and (orientation: portrait) {
  .legal {
    width: min(100% - (2 * var(--gutter)), 680px);
    min-height: calc(100dvh - var(--nav-height));
    margin-top: var(--nav-height);
    padding-block: clamp(42px, 6dvh, 68px) max(104px, calc(82px + env(safe-area-inset-bottom)));
  }
  .legal h1 {
    font-size: clamp(38px, min(6vw, 5.2dvh), 52px);
    line-height: 0.98;
  }
  .legal > p:not(.eyebrow) {
    font-size: clamp(15px, 2vw, 17px);
    line-height: 1.5;
  }
  .secondary-page .site-footer {
    padding-bottom: max(104px, calc(82px + env(safe-area-inset-bottom)));
  }
}

@media (min-width: 901px) and (max-width: 1199px) and (orientation: portrait) {
  .legal {
    width: min(100% - (2 * var(--gutter)), 800px);
  }
  .legal h1 {
    font-size: clamp(52px, 5.5vw, 62px);
  }
  .legal > p:not(.eyebrow),
  .legal li {
    font-size: 18px;
    line-height: 1.55;
  }
}

.legal-content {
  max-width: 68ch;
}
.legal-content h1 {
  margin: 0 0 28px;
}
.legal-content h2 {
  margin: 44px 0 14px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.1;
}
.legal-content p {
  margin: 16px 0;
  line-height: 1.6;
}
.legal-content ul {
  margin: 14px 0 20px;
  padding-left: 1.25em;
}
.legal-content li {
  margin: 7px 0;
  line-height: 1.5;
}

.legal-content h3 {
  margin: 28px 0 10px;
  font-size: clamp(18px, 2.4vw, 23px);
  line-height: 1.2;
}

@media (max-width: 700px) {
  .secondary-page {
    min-height: 100svh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
  }
  .legal {
    flex: 1 0 auto;
    min-height: calc(100svh - var(--nav-height));
    padding-block: 32px 56px;
  }
}

body .whatsapp {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: none !important;
}
/* El pie legal reserva una zona real para el botón flotante. */
.secondary-page .site-footer {
  padding-bottom: max(92px, calc(72px + env(safe-area-inset-bottom)));
}
@media (min-width: 701px) {
  .secondary-page .site-footer {
    padding-right: clamp(196px, 18vw, 280px);
    padding-bottom: 28px;
  }
}
.legal-content .cookie-table-wrap {
  width: 100%;
  margin: 16px 0 26px;
  overflow-x: auto;
  border: 1px solid rgb(12 13 12 / 16%);
}
.legal-content table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
}
.legal-content th,
.legal-content td {
  padding: 11px 12px;
  border: 1px solid rgb(12 13 12 / 16%);
  text-align: left;
  vertical-align: top;
}
.legal-content th {
  background: rgb(46 106 177 / 10%);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.cookie-placeholder {
  color: var(--blue);
  font-weight: 700;
}
