/* =========================================================
   Páginas Legales — estilos públicos
   ========================================================= */

.rpl-doc {
  --rpl-ink: #1f2430;
  --rpl-muted: #6b7280;
  --rpl-line: #e3e3e7;

  max-width: 820px;
  margin-inline: auto;
  color: var(--rpl-ink);
  line-height: 1.7;
}

.rpl-doc__fecha {
  display: inline-block;
  margin: 0 0 26px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #f2f2f4;
  color: var(--rpl-muted);
  font-size: .82em;
}

.rpl-doc h2 {
  margin: 38px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rpl-line);
  font-size: 1.25em;
  line-height: 1.3;
}
.rpl-doc h2:first-of-type { margin-top: 0; }

.rpl-doc h3 {
  margin: 26px 0 8px;
  font-size: 1.02em;
}

.rpl-doc p { margin: 0 0 14px; }

.rpl-doc ul,
.rpl-doc ol {
  margin: 0 0 16px;
  padding-left: 22px;
}
.rpl-doc li { margin-bottom: 7px; }

.rpl-doc a { text-decoration: underline; }

/* Tabla de cookies */

.rpl-tabla {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 22px;
  font-size: .92em;
}
.rpl-tabla th,
.rpl-tabla td {
  padding: 10px 12px;
  border: 1px solid var(--rpl-line);
  text-align: left;
  vertical-align: top;
  word-break: break-word;
}
.rpl-tabla thead th {
  background: #f7f7f8;
  font-weight: 700;
}

@media (max-width: 600px) {
  .rpl-tabla,
  .rpl-tabla thead,
  .rpl-tabla tbody,
  .rpl-tabla tr,
  .rpl-tabla td { display: block; width: 100%; }
  .rpl-tabla thead { display: none; }
  .rpl-tabla tr { margin-bottom: 12px; border: 1px solid var(--rpl-line); }
  .rpl-tabla td { border: 0; border-bottom: 1px solid #f0f0f2; }
  .rpl-tabla td:last-child { border-bottom: 0; }
}

/* =========================================================
   Fila de enlaces legales
   ========================================================= */

.rpl-enlaces {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: .88em;
  line-height: 1.5;
}
.rpl-enlaces a { text-decoration: none; opacity: .85; }
.rpl-enlaces a:hover { opacity: 1; text-decoration: underline; }
.rpl-sep { opacity: .4; }

.rpl-enlaces-footer {
  padding: 18px 16px;
  background: #f7f7f8;
  border-top: 1px solid #e6e6ea;
  color: #4b5060;
}
.rpl-enlaces-footer a { color: inherit; }

/* =========================================================
   Banner de cookies
   ========================================================= */

.rpl-cookies {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9995;

  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  max-width: 980px;
  margin-inline: auto;
  padding: 18px 22px;

  background: #ffffff;
  color: #1f2430;
  border: 1px solid #dcdce2;
  border-radius: 12px;
  box-shadow: 0 18px 44px -18px rgba(0, 0, 0, .5);

  font-size: 14px;
  line-height: 1.55;
  box-sizing: border-box;
}
.rpl-cookies[hidden] { display: none; }

.rpl-cookies__texto { flex: 1 1 340px; min-width: 0; }
.rpl-cookies__texto strong { display: block; margin-bottom: 3px; font-size: 15px; }
.rpl-cookies__texto p { margin: 0; color: #5a6072; }
.rpl-cookies__texto a { color: inherit; text-decoration: underline; }

.rpl-cookies__acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: none;
}

.rpl-btn {
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .18s ease, border-color .18s ease;
}
.rpl-btn--primary { background: #1f2430; color: #fff; }
.rpl-btn--primary:hover { background: #000; }
.rpl-btn--ghost { background: transparent; color: #1f2430; border-color: #cfd2d8; }
.rpl-btn--ghost:hover { border-color: #1f2430; background: #f5f5f7; }

@media (max-width: 560px) {
  .rpl-cookies { left: 10px; right: 10px; bottom: 10px; padding: 16px; }
  .rpl-cookies__acciones { width: 100%; }
  .rpl-cookies__acciones .rpl-btn { flex: 1 1 auto; }
}
