/* =====================================================================
   legal.css — Aviso de privacidad & Reglamento.
   Editorial pages on white that reuse the site chrome (nav + footer).
   Title is plain Fraunces (no band/photo); the reglamento uses a native
   <details> accordion (works with zero JS).
   ===================================================================== */

/* nav sits over white content here → make it solid for legibility */
.nav {
  background: var(--surface-white);
  border-color: var(--line);
  box-shadow: var(--sh-sm);
}

/* ---- Page shell ---- */
.legal {
  background: var(--surface-white);
  padding-top: clamp(116px, 15vh, 156px);
  padding-bottom: 96px;
}
.legal__wrap {
  max-width: 820px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* back link */
.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--action-cornflower-deep, #2f6fd6);
  margin-bottom: 26px;
}
.legal__back svg {
  width: 16px;
  height: 16px;
  transform: rotate(180deg); /* the shared arrow points right → flip to ← */
}
.legal__back:hover {
  color: var(--ink-navy);
}

/* editorial title */
.legal__title {
  font-family: var(--display-font), "Fraunces", serif;
  font-variation-settings: "wght" 600, "opsz" 144, "SOFT" 30;
  font-weight: 600;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink-navy);
  margin: 0 0 10px;
}
.legal__updated {
  color: rgba(30, 58, 95, 0.55);
  font-size: 14px;
  margin: 0;
}
.legal__rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 28px 0 40px;
}

/* body copy */
.legal__body {
  color: #3a4a5e;
  font-size: 16px;
  line-height: 1.72;
}
.legal__body h2 {
  font-family: var(--display-font), "Fraunces", serif;
  font-variation-settings: "wght" 600, "opsz" 40;
  font-weight: 600;
  font-size: clamp(20px, 3vw, 26px);
  color: var(--ink-navy);
  margin: 42px 0 12px;
}
.legal__body p {
  margin: 0 0 16px;
}
.legal__body ul {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.legal__body ul li {
  position: relative;
  padding-left: 26px;
}
.legal__body ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--action-cornflower);
}
.legal__body a {
  color: var(--action-cornflower-deep, #2f6fd6);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal__body strong,
.legal__body b {
  color: var(--ink-navy);
}

/* closing contact block */
.legal__contact {
  margin-top: 44px;
  padding: 24px 26px;
  background: var(--surface-frozen, #eaf1fb);
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: 15px;
  line-height: 1.7;
  color: #3a4a5e;
}
.legal__contact b {
  color: var(--ink-navy);
}

/* sign-off line (reglamento) */
.legal__signoff {
  margin-top: 40px;
  font-size: 16px;
  color: var(--ink-navy);
}

/* ---- Reglamento accordion (native <details>, no JS needed) ---- */
.legal__lead {
  color: #3a4a5e;
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 24px;
}
.acc {
  display: grid;
  gap: 12px;
}
.acc__item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-white);
  box-shadow: var(--sh-sm);
  overflow: hidden;
}
.acc__item[open] {
  border-color: rgba(77, 150, 255, 0.4);
}
.acc__sum {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  font-family: var(--display-font), "Fraunces", serif;
  font-variation-settings: "wght" 600, "opsz" 40;
  font-size: clamp(17px, 2.4vw, 21px);
  color: var(--ink-navy);
}
.acc__sum::-webkit-details-marker {
  display: none;
}
.acc__sum:hover {
  background: rgba(77, 150, 255, 0.04);
}
.acc__chev {
  margin-left: auto;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-frozen, #eaf1fb);
  color: var(--ink-navy);
  transition: background 0.2s, color 0.2s;
}
.acc__chev svg {
  width: 15px;
  height: 15px;
  transform: rotate(90deg); /* arrow → points down when closed */
  transition: transform 0.3s ease;
}
.acc__item[open] .acc__chev {
  background: var(--action-cornflower);
  color: #fff;
}
.acc__item[open] .acc__chev svg {
  transform: rotate(-90deg); /* points up when open */
}
.acc__body {
  padding: 2px 22px 22px;
}
.acc__body ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
}
.acc__body li {
  position: relative;
  padding-left: 28px;
  color: #3a4a5e;
  line-height: 1.6;
}
.acc__body li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-mustard);
}
.acc__body li b {
  color: var(--ink-navy);
}

@media (max-width: 600px) {
  .legal {
    padding-top: clamp(94px, 22vw, 118px);
    padding-bottom: 64px;
  }
}
