/* Textos legales en el móvil (aviso legal, privacidad, cookies): letra de lectura de 16 px, nada por debajo de 12 px, índice plegable y con zonas de toque de 44 px.
   Solo actúa en pantallas estrechas. */
.toc-card > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.toc-card > summary::-webkit-details-marker { display: none; }
.toc-card > summary h6 { margin: 0 !important; }
.toc-card .toc-flecha { color: var(--dsg-muted); transition: transform .2s; }
.toc-card[open] .toc-flecha { transform: rotate(180deg); }
.toc-card > summary:focus-visible { outline: 2px solid var(--dsg-orange); outline-offset: 4px; border-radius: 6px; }

@media (max-width: 640px) {
  .toc-card { padding: .25rem 1rem !important; margin-bottom: 1.5rem !important; }
  .toc-card > summary { min-height: 52px; }
  .toc-card > summary h6 { font-size: .78rem !important; }
  .toc-card[open] > summary { border-bottom: 1px solid var(--dsg-border); margin-bottom: .35rem; }
  .toc-list { gap: 0 !important; padding-bottom: .35rem !important; }
  .toc-list li a { min-height: 44px; font-size: .95rem !important; padding: .4rem 0 !important; }

  .legal-wrap p, .legal-wrap li { font-size: 1rem !important; line-height: 1.65 !important; }
  .legal-wrap td { font-size: .92rem !important; }
  .legal-wrap th, .legal-wrap .tag, .legal-wrap .section-badge, .legal-wrap .badge-legitimacion { font-size: .78rem !important; }
  .legal-wrap .label, .legal-wrap .value { font-size: .92rem !important; }
  .legal-wrap .browser-item { font-size: .92rem !important; min-height: 44px; }
  .legal-section { margin-bottom: 2rem !important; }
  .legal-wrap h1 { font-size: 1.6rem !important; line-height: 1.2; }
  .legal-wrap .section-header h2, .legal-wrap h2 { font-size: 1.2rem !important; line-height: 1.25; }
}
