/* ============================================================
   PÁGINAS LEGALES — R Y M
   Hoja compartida por aviso-legal.html, privacidad.html y
   cookies.html. Tipografías y paleta iguales que index.html.
   ============================================================ */

:root {
  --tinta:    #0f172a;
  --texto:    #475569;
  --suave:    #64748b;
  --tenue:    #94a3b8;
  --linea:    #e2e8f0;
  --fondo:    #ffffff;
  --papel:    #f8fafc;
  --bronce:   #A3704C;
  --bronce-osc: #8A5C3C;
  --aviso:    #b45309;
}

* { box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
}

::selection { background: var(--bronce); color: #fff; }

.envoltorio { max-width: 820px; margin: 0 auto; padding: 0 24px; }

/* ------------------------------ Cabecera ------------------------------ */

.cabecera {
  border-bottom: 1px solid var(--linea);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  z-index: 40;
}

.cabecera .envoltorio {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 78px;
}

.cabecera img { height: 42px; width: auto; display: block; }

.volver {
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--suave);
  text-decoration: none;
  transition: color .3s ease;
}
.volver:hover { color: var(--bronce); }

/* ------------------------------ Contenido ----------------------------- */

main { padding: 56px 0 96px; }

.migas {
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--tenue);
  margin-bottom: 28px;
}
.migas a { color: var(--tenue); text-decoration: none; }
.migas a:hover { color: var(--bronce); }
.migas span { color: var(--tinta); }

h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: clamp(38px, 7vw, 62px);
  line-height: 1.04;
  letter-spacing: -.015em;
  color: var(--tinta);
  margin: 0 0 18px;
}

.entradilla {
  font-size: 16px;
  line-height: 1.8;
  color: var(--suave);
  margin: 0 0 12px;
  max-width: 62ch;
}

.actualizado {
  font-size: 12px;
  color: var(--tenue);
  margin: 0 0 52px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--linea);
}

h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: 30px;
  line-height: 1.2;
  color: var(--tinta);
  margin: 56px 0 16px;
  letter-spacing: -.01em;
}

h2:first-of-type { margin-top: 0; }

h3 {
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--tinta);
  margin: 32px 0 10px;
}

p { margin: 0 0 16px; max-width: 68ch; }

a { color: var(--bronce); text-decoration: none; border-bottom: 1px solid rgba(163, 112, 76, .35); transition: border-color .3s ease; }
a:hover { border-bottom-color: var(--bronce); }

ul, ol { margin: 0 0 18px; padding-left: 22px; max-width: 68ch; }
li { margin-bottom: 9px; }

strong { font-weight: 500; color: var(--tinta); }

/* Ficha de datos identificativos */
.ficha {
  margin: 0 0 20px;
  padding: 26px 28px;
  background: var(--papel);
  border: 1px solid var(--linea);
  border-radius: 14px;
}
.ficha div { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 9px 0; border-bottom: 1px solid var(--linea); }
.ficha div:last-child { border-bottom: 0; padding-bottom: 0; }
.ficha div:first-child { padding-top: 0; }
.ficha dt {
  flex: 0 0 170px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--tenue);
  padding-top: 3px;
}
.ficha dd { margin: 0; flex: 1 1 260px; color: var(--tinta); }

/* Hueco a rellenar por el cliente */
.rellenar {
  color: var(--aviso);
  background: rgba(180, 83, 9, .08);
  padding: 1px 7px;
  border-radius: 4px;
  font-weight: 500;
  font-size: .94em;
  white-space: nowrap;
}

/* Bloque condicional que hay que confirmar o borrar antes de publicar */
.condicional {
  margin: 26px 0;
  padding: 22px 24px;
  border: 1px dashed var(--aviso);
  border-radius: 12px;
  background: rgba(180, 83, 9, .04);
}
.condicional > p:first-child {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--aviso);
  margin-bottom: 12px;
}
.condicional > p:last-child { margin-bottom: 0; }

/* Tabla de cookies */
.tabla-envoltorio { overflow-x: auto; margin: 0 0 22px; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 13.5px; }
thead th {
  text-align: left;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--tenue);
  padding: 0 14px 12px 0;
  border-bottom: 1px solid var(--tinta);
}
tbody td { padding: 15px 14px 15px 0; border-bottom: 1px solid var(--linea); vertical-align: top; line-height: 1.6; }
tbody tr:last-child td { border-bottom: 0; }
tbody td:first-child { color: var(--tinta); font-weight: 400; white-space: nowrap; }

/* Botón para reabrir el banner */
.boton-cookies {
  appearance: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 15px 30px;
  border-radius: 9999px;
  border: 1px solid var(--bronce);
  background: var(--bronce);
  color: #fff;
  margin: 8px 0 12px;
  transition: background-color .3s ease, border-color .3s ease;
}
.boton-cookies:hover { background: var(--bronce-osc); border-color: var(--bronce-osc); }

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

.pie { border-top: 1px solid var(--linea); padding: 36px 0 48px; }
.pie .envoltorio {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
}
.pie nav { display: flex; flex-wrap: wrap; gap: 20px; }
.pie a, .pie button.enlace {
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--tenue);
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: color .3s ease;
}
.pie a:hover, .pie button.enlace:hover { color: var(--bronce); }
.pie p { font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--tenue); margin: 0; }

@media (max-width: 640px) {
  main { padding: 40px 0 72px; }
  h2 { font-size: 26px; margin-top: 44px; }
  .ficha { padding: 20px; }
  .ficha dt { flex-basis: 100%; }
}
