/* =========================================
   PLATANADAS - POLITICA DE DATOS
   Look and feel basado en la linea grafica oficial
   ========================================= */

body {
  background:
    radial-gradient(circle at 15% 8%, rgba(255, 209, 0, 0.22), transparent 24rem),
    linear-gradient(180deg, var(--cream-alt) 0%, var(--cream) 42%, #fff 100%);
}

.legal-nav {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.legal-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--salsa);
}

.legal-logo img {
  border-radius: 8px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.65rem 1rem;
  border: 2px solid var(--salsa);
  border-radius: 8px;
  color: var(--salsa);
  font-weight: 700;
  background: rgba(255, 254, 252, 0.74);
  transition: background 0.2s ease, transform 0.2s ease;
}

.legal-back:hover {
  background: var(--amarillo-maduro);
  transform: translateY(-1px);
}

.legal-hero {
  position: relative;
  width: min(1180px, calc(100% - 2rem));
  min-height: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  padding: 3rem 0 4rem;
  text-align: center;
  overflow: hidden;
}

.hero-waves {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  isolation: isolate;
}

.hero-waves svg {
  width: 100%;
  height: 100%;
}

.legal-hero .hero-waves {
  top: 112px;
  height: 310px;
}

.legal-hero__content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 1rem;
  padding: 0.35rem 0.7rem;
  border: 2px solid var(--verde-pinton);
  border-radius: 8px;
  background: var(--cream);
  color: var(--salsa);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.legal-hero h1 {
  margin: 0;
  color: var(--salsa);
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 1;
}

.hero-lead {
  max-width: 760px;
  margin: 1.35rem auto 0;
  color: var(--salsa);
  font-size: 1.08rem;
}

.hero-meta {
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  background: var(--salsa);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 0.86rem;
}

.legal-hero__mark {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 154px;
  aspect-ratio: 1;
  border-radius: 14px;
  background: rgba(255, 254, 252, 0.78);
  box-shadow: 0 18px 44px rgba(42, 76, 55, 0.14);
  overflow: hidden;
}

.legal-hero__mark img {
  width: 78%;
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(42, 76, 55, 0.18));
}

.legal-layout {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto 4rem;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.legal-index {
  position: sticky;
  top: 1rem;
  padding: 1.1rem;
  border: 2px solid rgba(42, 76, 55, 0.14);
  border-radius: 8px;
  background: rgba(255, 254, 252, 0.88);
  box-shadow: var(--shadow-sm);
}

.legal-index p {
  margin-bottom: 0.75rem;
  color: var(--salsa);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.legal-index a {
  display: block;
  padding: 0.5rem 0;
  color: var(--salsa);
  font-size: 0.92rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(42, 76, 55, 0.1);
}

.legal-index a:hover {
  color: var(--verde-pinton);
}

.legal-document {
  border: 3px solid var(--salsa);
  border-radius: 8px;
  background: var(--cream);
  box-shadow: 10px 10px 0 rgba(136, 175, 57, 0.42);
  overflow: hidden;
}

.legal-document section {
  padding: 2rem clamp(1.1rem, 3vw, 2.5rem);
  border-bottom: 1px solid rgba(42, 76, 55, 0.12);
}

.legal-document h2 {
  margin-bottom: 0.8rem;
  color: var(--salsa);
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.legal-document p,
.legal-document li {
  color: #274734;
  font-size: 1rem;
}

.legal-document p + p,
.legal-document p + ul,
.legal-document ul + p {
  margin-top: 0.9rem;
}

.legal-document ul {
  list-style: disc;
  padding-left: 1.35rem;
}

.legal-document li + li {
  margin-top: 0.5rem;
}

.legal-document a {
  color: var(--salsa);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--verde-pinton);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.legal-note {
  margin: clamp(1.1rem, 3vw, 2.5rem);
  padding: 1rem;
  border-left: 6px solid var(--guava-coral);
  border-radius: 8px;
  background: var(--cream-alt);
  color: var(--salsa);
}

.legal-footer {
  padding: 1.5rem;
  background: var(--salsa);
  color: var(--cream);
  text-align: center;
  font-size: 0.9rem;
}

.legal-footer p + p {
  margin-top: 0.4rem;
}

.legal-footer a {
  color: var(--amarillo-maduro);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 900px) {
  .legal-hero {
    min-height: unset;
    padding-top: 2.5rem;
  }

  .legal-hero__mark {
    width: 132px;
  }

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

  .legal-index {
    position: static;
  }
}

@media (max-width: 560px) {
  .legal-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-back {
    width: 100%;
  }

  .legal-hero h1 {
    font-size: 2.55rem;
  }

  .hero-meta span {
    width: 100%;
  }
}
