
/* =====================================================================
   EVERMORE ENGLISH ACADEMY
   Páginas legales: Política de Privacidad / Términos y Condiciones
   Estética: verde oliva, crema y beige rosado.
   Independiente de styles.css y theme-evermore.css.
   ===================================================================== */

:root {
  --c-primary: #4B5A41;
  --c-accent: #8A9870;
  --c-ink: #3B4733;
  --c-bg: #F4EEE2;
  --c-alt: #EADCCD;
  --c-text: #2F382B;
  --c-muted: #58624F;   /* mismo tono que el sitio, ≥ 4,5:1 sobre el crema */
  --c-line: #D9CDB8;
  --c-card: rgba(251, 247, 239, .96);
  --r: 18px;

  --f-head: 'Lora', Georgia, 'Times New Roman', serif;
  --f-body: 'Nunito', system-ui, sans-serif;
}

/* ---------- Base ---------- */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--c-bg);
}

body {
  margin: 0;
  font: 400 1.0625rem/1.7 var(--f-body);
  color: var(--c-text);
  background:
    linear-gradient(
      180deg,
      #EADCCD 0,
      #F4EEE2 420px
    ) no-repeat;
  overflow-wrap: break-word;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--c-primary);
}

a:hover {
  color: var(--c-ink);
}

:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 8px;
  top: 8px;
  background: var(--c-card);
  color: var(--c-ink);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 99;
}

/* ---------- Barra superior ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 247, 239, .94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-line);
  box-shadow: 0 4px 16px rgba(59, 71, 51, .06);
}

.top__in {
  width: min(860px, 92%);
  margin-inline: auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top__logo img {
  display: block;
  height: 46px;
  width: auto;
}

.top__back {
  font-weight: 700;
  text-decoration: none;
  color: var(--c-primary);
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--c-primary);
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}

.top__back:hover {
  background: var(--c-primary);
  color: #fff;
}

/* ---------- Documento legal ---------- */

.doc {
  counter-reset: sec;
  width: min(860px, 92%);
  margin: 32px auto 24px;
  background: var(--c-card);
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 24px;
  padding: 48px 56px 56px;
  box-shadow: 0 12px 36px rgba(59, 71, 51, .12);
}

.doc h1 {
  font: 600 clamp(2rem, 6vw, 3rem)/1.15 var(--f-head);
  color: var(--c-ink);
  letter-spacing: -.02em;
  margin: 0 0 .2em;
}

.doc__date {
  margin: 0 0 1.6em;
  color: var(--c-muted);
  font-size: .95rem;
}

.doc p {
  margin: 0 0 1em;
  color: var(--c-muted);
}

.doc strong,
.doc b {
  color: var(--c-text);
}

/* ---------- Títulos numerados ---------- */

.doc > h2 {
  counter-increment: sec;
  font: 600 clamp(1.45rem, 4vw, 2rem)/1.25 var(--f-head);
  color: var(--c-ink);
  margin: 2em 0 .6em;
}

.doc > h2::before {
  content: counter(sec) ". ";
  color: var(--c-primary);
}

/* ---------- Listas ---------- */

.doc ul {
  list-style: none;
  margin: 0 0 1.2em;
  padding: 0;
}

.doc li {
  position: relative;
  padding-left: 2em;
  margin: .7em 0;
  color: var(--c-muted);
}

.doc li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--c-primary);
  font-weight: 700;
}

/* ---------- Resumen destacado ---------- */

.resumen {
  background: var(--c-alt);
  border-left: 5px solid var(--c-primary);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 20px 24px;
  margin: 0 0 .5em;
}

.resumen h2 {
  font: 600 1.25rem/1.35 var(--f-head);
  color: var(--c-ink);
  margin: 0 0 .4em;
}

.resumen ul {
  margin: 0;
}

.resumen li {
  color: var(--c-text);
  margin: .5em 0;
}

/* ---------- Datos pendientes de completar ---------- */

mark.fill {
  background: #E6EBD9;
  color: var(--c-ink);
  border: 1px solid #D0D9BE;
  border-radius: 4px;
  padding: 0 4px;
}

/* ---------- Leyenda legal ---------- */

.legend {
  font-size: .82rem;
  line-height: 1.55;
  color: var(--c-muted);
  border-top: 1px solid var(--c-line);
  padding-top: 1.2em;
  margin-top: 2.2em;
}

/* ---------- Pie ---------- */

.foot {
  text-align: center;
  margin: 0 0 40px;
  font-size: .95rem;
  color: var(--c-muted);
}

.foot a {
  font-weight: 700;
}

/* ---------- Tablet ---------- */

@media (max-width: 800px) {
  .doc {
    padding: 36px 30px 44px;
    border-radius: 20px;
  }
}

/* ---------- Celular ---------- */

@media (max-width: 600px) {
  body {
    font-size: 1rem;
  }

  .top__in {
    min-height: 58px;
  }

  .top__logo img {
    height: 40px;
  }

  .top__back {
    padding: 8px 12px;
    font-size: .9rem;
  }

  .doc {
    width: 100%;
    margin: 0 0 20px;
    border-radius: 0 0 22px 22px;
    padding: 28px 20px 36px;
  }

  .doc > h2 {
    margin-top: 1.7em;
  }

  .resumen {
    padding: 16px;
  }

  .legend {
    font-size: .78rem;
  }
}

/* ---------- Accesibilidad ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ---------- Impresión / guardar como PDF ---------- */

@media print {
  .top,
  .skip,
  .foot {
    display: none !important;
  }

  body {
    background: #fff;
    color: #222;
  }

  .doc {
    box-shadow: none;
    border: 0;
    margin: 0;
    width: 100%;
    padding: 0;
    background: none;
  }

  .doc p,
  .doc li,
  .doc__date,
  .legend {
    color: #333;
  }

  mark.fill {
    background: none;
    border: 0;
  }
}
