/* ============================================================
   MSoft — aviso de cookies (LSSI-CE / RGPD)
   Estilo: blanco, naranja #F6821F, ámbar, texto #1D1F20
   ============================================================ */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  padding: 16px;
  background: rgba(29, 31, 32, .28);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.cookie-banner[hidden] { display: none !important; }

.cookie-banner-inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #ededed;
  border-top: 4px solid #f6821f;
  border-radius: 12px;
  box-shadow: 0 18px 48px -20px rgba(29, 31, 32, .45);
  padding: 20px 22px;
  color: #1d1f20;
}
.cookie-banner h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.3;
  color: #1d1f20;
}
.cookie-banner p {
  margin: 0 0 10px;
  max-width: 78ch;
  font-size: 13.5px;
  line-height: 1.6;
  color: #666666;
}
.cookie-banner a { color: #a85000; text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner a:hover { color: #f6821f; }

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.cookie-banner .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #ededed;
  border-radius: 6px;
  padding: 9px 16px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.cookie-banner .btn-ghost { background: #fff; color: #1d1f20; }
.cookie-banner .btn-ghost:hover { background: #fff7ee; border-color: rgba(246, 130, 31, .5); }
.cookie-banner .btn-primary { background: #f6821f; border-color: #f6821f; color: #fff; }
.cookie-banner .btn-primary:hover { background: #e2700b; border-color: #e2700b; }

.cookie-options {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #ededed;
}
.cookie-options[hidden] { display: none !important; }
.cookie-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f4f4f4;
}
.cookie-option label { display: flex; flex-direction: column; gap: 2px; cursor: pointer; }
.cookie-option strong { font-size: 13.5px; color: #1d1f20; }
.cookie-option span { font-size: 12.5px; color: #666666; line-height: 1.5; }
.cookie-option input[type="checkbox"] {
  margin: 3px 0 0;
  width: 18px;
  height: 18px;
  accent-color: #f6821f;
  flex: none;
}
.cookie-option.is-locked input { accent-color: #2fb344; }
.cookie-save-row { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; }

.cookie-settings-link {
  background: none;
  border: 0;
  padding: 0;
  color: #a85000;
  font: inherit;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.cookie-settings-link:hover { color: #f6821f; }

/* Páginas legales */
.legal-page { background: #fff; color: #1d1f20; }
.legal-page .site-header { background: rgba(255, 255, 255, .94); }
.legal-page main { padding: 54px 0 70px; }
.legal-hero {
  background: linear-gradient(120deg, #f6821f, #faad3f);
  color: #fff;
  padding: 46px 0 40px;
  margin-bottom: 36px;
}
.legal-hero h1 { margin: 0 0 10px; color: #fff; font-size: clamp(1.9rem, 4vw, 2.6rem); }
.legal-hero p { margin: 0; color: rgba(255, 255, 255, .95); max-width: 78ch; line-height: 1.6; }
.legal-doc { max-width: 900px; margin: 0 auto; }
.legal-doc h2 {
  margin: 34px 0 12px;
  color: #1d1f20;
  font-size: 1.4rem;
  padding-bottom: 8px;
  border-bottom: 1px solid #ededed;
}
.legal-doc h3 { margin: 22px 0 8px; color: #a85000; font-size: 1.08rem; }
.legal-doc p, .legal-doc li { color: #36393a; line-height: 1.75; font-size: 15px; }
.legal-doc p { margin: 0 0 12px; }
.legal-doc ul, .legal-doc ol { margin: 0 0 16px; padding-left: 22px; }
.legal-doc li { margin-bottom: 6px; }
.legal-doc a { color: #a85000; text-decoration: underline; text-underline-offset: 2px; }
.legal-doc a:hover { color: #f6821f; }
.legal-doc .lead { font-size: 16px; color: #36393a; }
.legal-note {
  background: #fff7e0;
  border: 1px solid #f6c549;
  border-radius: 8px;
  padding: 14px 16px;
  margin: 0 0 22px;
  color: #8a5a00;
  font-size: 14px;
  line-height: 1.6;
}
.legal-table-wrap { overflow-x: auto; margin: 12px 0 22px; border: 1px solid #ededed; border-radius: 8px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.legal-table th, .legal-table td { padding: 10px 12px; border-bottom: 1px solid #ededed; text-align: left; vertical-align: top; line-height: 1.5; }
.legal-table th { background: #fafafa; color: #1d1f20; font-weight: 600; white-space: nowrap; }
.legal-table td { color: #36393a; }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-doc dl { margin: 0 0 18px; }
.legal-doc dt { font-weight: 700; color: #1d1f20; margin-top: 10px; }
.legal-doc dd { margin: 2px 0 0; color: #36393a; }
.legal-updated { color: #8a8a8a !important; font-size: 13px !important; margin-top: 30px !important; }
.legal-breadcrumb { font-size: 13px; color: #666666; margin-bottom: 14px; }
.legal-breadcrumb a { color: #a85000; text-decoration: none; }
.legal-breadcrumb a:hover { text-decoration: underline; }

@media (max-width: 700px) {
  .cookie-banner { padding: 8px; }
  .cookie-banner-inner { padding: 16px; }
  .cookie-banner-actions .btn { flex: 1 1 140px; }
  .legal-hero { padding: 34px 0 30px; }
}
