/* Banner de cookies y páginas legales — LELA */

.footer-legal {
  margin-top: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.15rem 0.35rem;
}

.footer-legal a {
  color: var(--orange-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-legal a:hover {
  color: var(--dark);
}

.footer-legal a:focus-visible {
  outline: 2px solid var(--orange-ink);
  outline-offset: 3px;
}

.footer-legal [aria-hidden="true"] {
  color: #888;
}

.hero-legal {
  padding: 1.75rem 1.5rem;
}

.hero-legal h1 {
  font-size: 2rem;
}

.legal {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.legal h2 {
  font-size: 1.25rem;
  margin: 1.85rem 0 0.55rem;
  color: var(--orange-ink);
}

.legal h3 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.4rem;
}

.legal p,
.legal li {
  margin-bottom: 0.75rem;
}

.legal ul,
.legal ol {
  padding-left: 1.25rem;
}

.legal a {
  color: var(--orange-ink);
}

.legal a:hover {
  color: var(--dark);
}

.legal-note {
  background: rgba(248, 184, 104, 0.22);
  border-left: 4px solid var(--orange-pastel);
  padding: 0.9rem 1rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
}

.legal-note p:last-child,
.legal blockquote p:last-child {
  margin-bottom: 0;
}

.legal blockquote {
  background: rgba(248, 184, 104, 0.22);
  border-left: 4px solid var(--orange-pastel);
  padding: 0.9rem 1rem;
  border-radius: 10px;
  margin: 0 0 1.25rem;
}

.legal .version {
  margin-bottom: 0.25rem;
}

.legal-kv {
  width: 100%;
  border-collapse: collapse;
  background: white;
  margin: 0.5rem 0 1.25rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.legal-kv th,
.legal-kv td {
  text-align: left;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid rgba(28, 28, 40, 0.08);
  vertical-align: top;
}

.legal-kv tr:last-child th,
.legal-kv tr:last-child td {
  border-bottom: none;
}

.legal-kv th {
  width: 34%;
  background: rgba(248, 184, 104, 0.35);
  font-weight: 700;
}

.legal-cierre {
  margin-top: 2rem;
  font-size: 0.92rem;
}

.cookie-table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(28, 28, 40, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 40rem;
  background: white;
  font-size: 0.92rem;
}

.cookie-table th,
.cookie-table td {
  text-align: left;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid rgba(28, 28, 40, 0.08);
  vertical-align: top;
}

.cookie-table th {
  background: rgba(248, 184, 104, 0.45);
  font-size: 0.82rem;
}

.cookie-table tr:last-child td {
  border-bottom: none;
}

.cookie-table code {
  font-size: 0.85em;
}

body.cookie-banner-open {
  padding-bottom: 12rem;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: #fffdf8;
  color: var(--dark);
  border-top: 4px solid var(--orange-pastel);
  box-shadow: 0 -8px 28px rgba(28, 28, 40, 0.14);
  padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom));
  max-height: min(70vh, 28rem);
  overflow: auto;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner-inner {
  max-width: 60rem;
  margin: 0 auto;
}

.cookie-banner-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.cookie-banner-text {
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}

.cookie-banner-text a {
  color: var(--orange-ink);
  font-weight: 700;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
}

.cookie-btn {
  flex: 1 1 10rem;
  appearance: none;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  min-height: 48px;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 2px solid var(--dark);
  background: var(--orange-pastel);
  color: var(--dark);
  cursor: pointer;
}

.cookie-btn:hover {
  background: #f0a04a;
}

.cookie-btn:focus-visible {
  outline: 2px solid var(--dark);
  outline-offset: 3px;
}

@media (max-width: 560px) {
  body.cookie-banner-open {
    padding-bottom: 18rem;
  }

  .cookie-banner-actions {
    flex-direction: column;
  }

  .hero-legal h1 {
    font-size: 1.65rem;
  }
}
