/* =============================================
   PÁGINAS LEGALES — aviso legal, privacidad, cookies
   =============================================
   Depende solo de style.css (cabecera, pie, eyebrow).
   Cabecera negra y texto sobre fondo claro, con un
   menú lateral para saltar entre los tres documentos.
   ============================================= */

.legal-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 64px;
  background: #111110;
}

.legal-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 4%;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(198, 255, 0, 0.07) 0%, transparent 62%);
  pointer-events: none;
}

.legal-inner {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-h1 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #fff;
}

.legal-updated {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ── Cuerpo ── */

.legal-body {
  padding: 64px 0 96px;
  background: #f7f7f5;
}

.legal-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: start;
}

/* Sin esto, la tabla ancha de cookies ensancha la columna y la página */
.legal-layout > * {
  min-width: 0;
}

.legal-nav {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legal-nav-title {
  margin-bottom: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #173404;
  opacity: 0.6;
}

.legal-nav a {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: #444;
  transition: background 0.2s, color 0.2s;
}

.legal-nav a:hover {
  background: #fff;
  color: #111110;
}

.legal-nav a[aria-current="page"] {
  background: #111110;
  color: #CDF564;
}

.legal-content {
  max-width: 760px;
}

.legal-intro {
  margin-bottom: 28px;
  font-size: 1rem;
  line-height: 1.75;
  color: #444;
}

/* Ficha con los datos del titular */
.legal-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 12px 24px;
  margin: 0 0 40px;
  padding: 28px 30px;
  border: 1px solid rgba(17, 17, 16, 0.08);
  border-radius: 16px;
  background: #fff;
}

.legal-card dt {
  font-size: 0.82rem;
  font-weight: 600;
  color: #777;
}

.legal-card dd {
  font-size: 0.92rem;
  font-weight: 500;
  color: #111110;
}

.legal-content h2 {
  margin: 40px 0 12px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #111110;
}

.legal-content h3 {
  margin: 22px 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: #111110;
}

.legal-content p,
.legal-content li {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #444;
}

.legal-content p {
  margin-bottom: 14px;
}

.legal-content ul {
  margin: 0 0 16px;
  padding-left: 20px;
  list-style: disc;
}

.legal-content li {
  margin-bottom: 6px;
}

.legal-content strong {
  color: #111110;
  font-weight: 600;
}

.legal-content a {
  color: #111110;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #B3E04D;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* Tabla de cookies */
.legal-table-wrap {
  margin: 8px 0 20px;
  overflow-x: auto;
  border: 1px solid rgba(17, 17, 16, 0.08);
  border-radius: 14px;
  background: #fff;
}

.legal-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.legal-table th,
.legal-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(17, 17, 16, 0.06);
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
  color: #444;
}

.legal-table th {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #777;
  background: #fbfbf9;
}

.legal-table tr:last-child td {
  border-bottom: none;
}

.legal-yes,
.legal-no {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.legal-yes {
  background: #CDF564;
  color: #111110;
}

.legal-no {
  background: #efefeb;
  color: #666;
}


/* ── Contacto ── */

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px 24px;
  border: 1px solid rgba(17, 17, 16, 0.08);
  border-radius: 16px;
  background: #fff;
  color: #111110;
  transition: border-color 0.2s, transform 0.2s;
}

a.contact-card:hover {
  border-color: rgba(17, 17, 16, 0.22);
  transform: translateY(-2px);
}

.contact-card-dark {
  border-color: #111110;
  background: #111110;
  color: #fff;
}

.contact-card-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #173404;
  opacity: 0.7;
}

.contact-card-dark .contact-card-label {
  color: #CDF564;
  opacity: 1;
}

.contact-card-value {
  font-size: 1.1rem;
  font-weight: 700;
}

.contact-card-text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #777;
}

.contact-card-dark .contact-card-text {
  color: rgba(255, 255, 255, 0.6);
}


/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */

@media (max-width: 860px) {

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .legal-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .legal-nav-title {
    width: 100%;
    margin-bottom: 4px;
  }

  .legal-nav a {
    background: #fff;
  }
}

@media (max-width: 560px) {

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .legal-hero {
    padding: 64px 0 48px;
  }

  .legal-body {
    padding: 40px 0 72px;
  }

  .legal-card {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 22px 20px;
  }

  .legal-card dd {
    margin-bottom: 10px;
  }
}
