/* legal-notice.css
   Banner legal de privacidad + Panel de Ayuda + compactación de Ajustes en smartphone.
   Usa variables CSS de los skins (css/themes.css) y respeta modo claro/oscuro. */

/* ═══════════ BANNER LEGAL (primera visita) ═══════════ */
#legalNoticeBanner {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  animation: legalFadeIn 0.25s ease;
  padding: 0;
}
@keyframes legalFadeIn { from { opacity: 0; } to { opacity: 1; } }

.legal-notice-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto 14px auto;
  background: var(--panel-bg, #fffdf7);
  color: var(--text-color, #333);
  border-radius: 16px;
  border: 1px solid var(--border-color, rgba(0,0,0,0.1));
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  animation: legalSlideUp 0.3s ease;
}
@keyframes legalSlideUp { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }

.legal-notice-icon { font-size: 26px; line-height: 1; margin-top: 2px; }
.legal-notice-icon img { width: 30px; height: 30px; margin-top: 2px; }

.legal-notice-body { flex: 1; min-width: 0; }
.legal-notice-body strong { font-size: 0.95rem; display: block; margin-bottom: 4px; }
.legal-notice-body p { font-size: 0.8rem; line-height: 1.45; margin: 0 0 10px 0; opacity: 0.9; }

.legal-notice-actions { display: flex; gap: 8px; justify-content: flex-end; }
.legal-notice-actions button {
  border: none; border-radius: 20px; padding: 7px 14px;
  font-size: 0.78rem; cursor: pointer; font-weight: 600;
}
.legal-notice-more {
  background: transparent; color: var(--accent-color, #8a6d3b);
  text-decoration: underline;
}
.legal-notice-ok {
  background: var(--accent-color, #8a6d3b); color: #fff;
}
.legal-notice-close {
  position: absolute; top: 6px; right: 10px;
  background: none; border: none; font-size: 1.1rem;
  cursor: pointer; color: var(--text-color, #333); opacity: 0.5;
}
.legal-notice-close:hover { opacity: 1; }

/* Escritorio: tarjeta flotante en esquina inferior derecha */
@media (min-width: 1180px) {
  #legalNoticeBanner { align-items: flex-end; justify-content: flex-end; padding: 20px; background: transparent; pointer-events: none; }
  .legal-notice-card { margin: 0; max-width: 420px; pointer-events: auto; }
}
/* BANNER_END */

/* ═══════════ PANEL DE AYUDA ═══════════ */
#helpPanelOverlay {
  position: fixed; inset: 0; z-index: 99995;
  background: rgba(0, 0, 0, 0.45);
  display: none; align-items: center; justify-content: center;
}
#helpPanelOverlay.show { display: flex; animation: legalFadeIn 0.2s ease; }

.help-panel {
  display: flex; flex-direction: column;
  width: min(560px, 100%); height: min(82vh, 780px);
  background: var(--panel-bg, #fffdf7);
  color: var(--text-color, #333);
  border-radius: 18px;
  border: 1px solid var(--border-color, rgba(0,0,0,0.1));
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.help-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color, rgba(0,0,0,0.08));
}
.help-panel-header h3 {
  margin: 0; font-size: 1rem; display: flex; align-items: center; gap: 8px;
}
.help-header-icon { width: 18px; height: 18px; }
.help-panel-close {
  background: none; border: none; font-size: 1.5rem; line-height: 1;
  cursor: pointer; color: var(--text-color, #333); opacity: 0.6; padding: 0 4px;
}
.help-panel-close:hover { opacity: 1; }

.help-panel-body { flex: 1; overflow-y: auto; padding: 10px 12px 20px 12px; }
/* HELP_CSS_B */

/* Secciones (acordeón) */
.help-section {
  border: 1px solid var(--border-color, rgba(0,0,0,0.08));
  border-radius: 12px; margin-bottom: 8px; overflow: hidden;
  background: var(--card-bg, rgba(255,255,255,0.5));
}
.help-section-toggle {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px 12px;
  background: none; border: none; cursor: pointer; text-align: left;
  color: var(--text-color, #333); font-size: 0.88rem; font-weight: 600;
}
.help-section-icon { display: inline-flex; width: 22px; height: 22px; }
.help-section-icon img { width: 22px; height: 22px; object-fit: contain; }
.help-section-title { flex: 1; }
.help-section-arrow { font-size: 0.8rem; opacity: 0.5; transition: transform 0.2s; }
.help-section.open .help-section-arrow { transform: rotate(180deg); }

.help-section-content { padding: 2px 12px 10px 44px; }

.help-item { padding: 8px 0; border-top: 1px dashed var(--border-color, rgba(0,0,0,0.08)); }
.help-item:first-child { border-top: none; }
.help-item-title { font-size: 0.82rem; font-weight: 700; margin-bottom: 2px; }
.help-item-desc { font-size: 0.78rem; line-height: 1.5; opacity: 0.85; }

/* Privacidad (texto legal) */
.hl-privacy-body h4 { margin: 8px 0 6px 0; font-size: 0.88rem; }
.hl-privacy-body h5 { margin: 12px 0 4px 0; font-size: 0.8rem; }
.hl-privacy-body p, .hl-privacy-body li { font-size: 0.76rem; line-height: 1.55; opacity: 0.9; margin: 4px 0; }
.hl-privacy-body ul { padding-left: 18px; margin: 4px 0; }
.hl-privacy-date { margin-top: 14px !important; font-style: italic; opacity: 0.6 !important; }

/* Móvil: panel a pantalla casi completa (bottom sheet) */
@media (max-width: 1179px) {
  #helpPanelOverlay { align-items: flex-end; }
  .help-panel {
    width: 100%; height: 88vh; max-height: none;
    border-radius: 18px 18px 0 0;
  }
}
/* HELP_CSS_C */

/* ═══════════ BOTÓN ❓ EN HEADER DE AJUSTES ═══════════ */
.settings-header-actions { display: flex; align-items: center; gap: 6px; }
.help-settings-btn {
  background: none; border: none; cursor: pointer;
  font-size: 0.95rem; line-height: 1; padding: 4px 6px;
  opacity: 0.7; color: inherit;
}
.help-settings-btn:hover { opacity: 1; transform: scale(1.1); }

/* Filas de enlace (Ayuda / Privacidad) en Ajustes */
.settings-link-row { cursor: pointer; user-select: none; }
.settings-link-row:hover { background: var(--hover-bg, rgba(0,0,0,0.04)); }
.settings-link-icon { display: inline-flex; align-items: center; gap: 6px; margin-right: 8px; }
.settings-link-arrow { margin-left: auto; opacity: 0.4; font-size: 1rem; }

/* ═══════════ COMPACTACIÓN DE AJUSTES EN SMARTPHONE ═══════════ */
@media (max-width: 1179px) {
  .settings-panel { font-size: 0.85rem; }
  .settings-panel .settings-panel-header h3 { font-size: 0.95rem; }
  .settings-lang-flags { gap: 4px; }
  .lang-flag-btn { width: 20px; height: 20px; }
  .settings-item {
    padding: 8px 10px;
    min-height: 38px;
    gap: 10px;
  }
  .settings-item > span:first-child,
  .settings-item > label:first-child { font-size: 0.82rem; }
  /* Switches más pequeños */
  .settings-item .switch { transform: scale(0.85); }
  /* Selector de temas dentro del acordeón */
  .settings-item.skin-item { flex-direction: column; align-items: flex-start; }
  .settings-item.skin-item .skin-selector {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 6px;
  }
  .skin-option { display: flex; flex-direction: column; align-items: center; gap: 3px; }
  .skin-label { font-size: 0.62rem; }
}



