/* ==========================================================
   DAYONA WEBS — páginas legales
   Mismo lenguaje que la home: Inter, blanco y gris claro,
   verde de marca como acento.
   Autónomo: no depende de index.css.
   ========================================================== */

:root {
  --texto: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --tinta: #1D1D1F;
  --gris: #6E6E73;
  --gris-claro: #86868B;
  --blanco: #FFFFFF;
  --fondo: #F5F5F7;
  --linea: #D2D2D7;
  --verde: #0F7B63;
  --verde-osc: #0C6852;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--texto);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  color: var(--tinta);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--verde); }
a:hover { text-decoration: underline; }

.container { width: min(100% - var(--pad) * 2, 780px); margin-inline: auto; }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--verde); outline-offset: 3px; border-radius: 6px;
}

/* ---------- CABECERA ---------- */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.navbar .container { width: min(100% - var(--pad) * 2, 1280px); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 1rem; }
.logo-img { width: 116px; height: auto; }
.nav-links { display: flex; align-items: center; gap: clamp(0.9rem, 2.1vw, 1.8rem); }
.nav-links a { font-size: 0.8rem; font-weight: 400; color: var(--tinta); opacity: 0.85; text-decoration: none; }
.nav-links a:hover { opacity: 1; text-decoration: none; }
.nav-cta {
  padding: 0.35rem 0.95rem; border-radius: 999px;
  background: var(--verde); color: #fff !important; font-weight: 500; opacity: 1 !important;
  transition: background .2s;
}
.nav-cta:hover { background: var(--verde-osc); }

/* ---------- CONTENIDO LEGAL ---------- */
.legal-page { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(4rem, 8vw, 6rem); }

.legal-title {
  margin: 0 0 0.6rem;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700; line-height: 1.08; letter-spacing: -0.03em;
  text-wrap: balance;
}
/* La home usaba una tipografía distinta para .serif; aquí no aplica */
.serif { font-family: var(--texto); }

.legal-updated {
  margin: 0 0 clamp(2.5rem, 5vw, 3.5rem);
  font-size: 0.92rem; color: var(--gris-claro);
  padding-bottom: 1.5rem; border-bottom: 1px solid var(--linea);
}

.legal-section { margin-bottom: clamp(2rem, 4vw, 2.8rem); }
.legal-section h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 600; letter-spacing: -0.02em; line-height: 1.25;
}
.legal-section p { margin: 0 0 1rem; color: var(--gris); text-wrap: pretty; }
.legal-section p:last-child { margin-bottom: 0; }

.legal-section ul { margin: 0 0 1rem; padding: 0; list-style: none; }
.legal-section li {
  position: relative; padding-left: 1.25rem; margin-bottom: 0.55rem;
  color: var(--gris);
}
.legal-section li::before {
  content: ""; position: absolute; left: 0; top: 0.65em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--verde);
}
.legal-section strong { color: var(--tinta); font-weight: 600; }

/* ---------- VOLVER ---------- */
.legal-back { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 2rem; border-top: 1px solid var(--linea); }
.btn-secondary {
  display: inline-block; padding: 0.78rem 1.5rem; border-radius: 999px;
  background: transparent; color: var(--verde);
  box-shadow: inset 0 0 0 1px currentColor;
  font-size: 1rem; font-weight: 400; text-decoration: none;
  transition: background .2s, transform .15s;
}
.btn-secondary:hover { background: rgba(15, 123, 99, 0.08); text-decoration: none; }
.btn-secondary:active { transform: scale(0.97); }

/* ---------- PIE ---------- */
.footer {
  background: var(--fondo); color: var(--gris);
  padding: 2.5rem 0; font-size: 0.82rem;
  border-top: 1px solid var(--linea);
}
.footer .container { width: min(100% - var(--pad) * 2, 1280px); }
.footer-copy { margin: 0; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-secondary:active { transform: none; }
}
