/* ============================================================
   Centro Flor de Lis — Legal pages (shared)
   Aviso legal · Privacidad · Cookies
   Reuses tokens & components from /styles.css.
   A quiet, immediately-readable reading column.
   ============================================================ */

/* ---------- Page shell ---------- */
.legal {
  /* clear the fixed floating nav */
  padding-top: clamp(7.5rem, 14vh, 11rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  background:
    radial-gradient(120% 70% at 50% -10%, #fff 0%, var(--crema) 48%, var(--crema) 100%);
}

/* centered reading column (~72ch) */
.legal__wrap {
  width: 100%;
  max-width: 72ch;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Page header ---------- */
.legal__header {
  margin-bottom: clamp(2.4rem, 5vw, 3.6rem);
  padding-bottom: clamp(1.6rem, 3vw, 2.2rem);
  border-bottom: 1px solid rgba(30, 21, 48, .12);
}
.legal__eyebrow { margin-bottom: 1.3rem; }
.legal__title {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  font-weight: 440;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--tinta);
  margin: 0 0 1.1rem;
}
.legal__updated {
  font-family: var(--sans);
  font-size: .95rem;
  color: var(--tinta-mute);
  margin: 0;
}

/* ---------- Reading body ---------- */
.legal__body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--tinta-2);
  letter-spacing: -0.005em;
}
.legal__body > * + * { margin-top: 1.15em; }

/* section headings (Fraunces) */
.legal__body h2 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 440;
  line-height: 1.12;
  letter-spacing: -0.018em;
  color: var(--tinta);
  margin-top: clamp(2.4rem, 5vw, 3.2rem);
  margin-bottom: .2em;
}
/* first heading after the intro shouldn't push too far */
.legal__body > h2:first-child { margin-top: 0; }

.legal__body p { margin: 0; }
.legal__body strong { color: var(--tinta); font-weight: 600; }

.legal__body a:not(.btn) {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
  transition: text-decoration-color .3s var(--ease), color .3s var(--ease);
}
.legal__body a:not(.btn):hover {
  text-decoration-color: var(--accent);
}

/* lists within legal copy (e.g. enumerated rights) */
.legal__body ul {
  margin: 1.15em 0 0;
  padding-left: 1.3em;
}
.legal__body li { margin-top: .5em; }
.legal__body li::marker { color: var(--accent-soft); }

/* ---------- Pending / placeholder data marker ---------- */
.pending {
  background: #FBE8C8;
  color: #7a5a1a;
  padding: .1em .4em;
  border-radius: 4px;
  font-weight: 500;
  /* keep long placeholders from breaking the line awkwardly */
  white-space: normal;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ---------- Cross-links + back-to-home footer block ---------- */
.legal__nav {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: clamp(1.8rem, 3vw, 2.4rem);
  border-top: 1px solid rgba(30, 21, 48, .12);
}
.legal__navlabel {
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--tinta-mute);
  margin: 0 0 1rem;
}
.legal__crosslinks {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem .8rem;
  margin-bottom: 1.8rem;
}
.legal__crosslink {
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  font-size: .92rem;
  font-weight: 500;
  color: var(--tinta-2);
  padding: .5rem 1.05rem;
  border-radius: 100px;
  background: var(--crema-calida);
  box-shadow: inset 0 0 0 1px rgba(91, 58, 135, .10);
  transition: color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.legal__crosslink:hover {
  color: var(--accent);
  background: var(--white);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent);
}
/* current page marker among the cross-links */
.legal__crosslink[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-tint);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent);
}

.legal__back {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  font-family: var(--sans);
  font-weight: 500;
  font-size: .96rem;
  color: var(--accent);
}
.legal__back .legal__backarrow { transition: transform .45s var(--ease); }
.legal__back:hover .legal__backarrow { transform: translateX(-3px); }
.legal__back-text { position: relative; }
.legal__back-text::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.legal__back:hover .legal__back-text::after { transform: scaleX(1); }

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .legal__body { font-size: 16px; }
}
