body.legal { display: block; height: auto; }
.legal .topbar a { color: inherit; text-decoration: none; }
.legal-main { max-width: 760px; margin: 0 auto; padding: 16px 16px 48px; line-height: 1.6; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.legal-version { color: var(--ink-soft); font-size: 0.9rem; }
.legal-main section { padding-top: 16px; scroll-margin-top: 12px; }
.legal-main h2 { font-size: 1.4rem; margin: 16px 0 8px; }
.legal-main h3 { font-size: 1.02rem; margin: 18px 0 4px; }
.legal-main ul { padding-left: 20px; }
.pending { color: var(--danger); font-style: italic; }
.legal-summary { background: var(--brand-soft); border-radius: var(--radius); padding: 4px 16px 8px; margin-top: 12px; }
.legal-main ol { padding-left: 22px; }

/* Guía (ayuda.html): a screenshot next to its explanation; one column on the phone. */
.guide-step { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
.guide-step img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.guide-step h2 { margin-top: 0; }
.guide details { border-bottom: 1px solid var(--line); padding: 8px 0; }
.guide summary { cursor: pointer; font-weight: 600; }
.guide details p { margin: 6px 0 4px; }
@media (max-width: 720px) {
  .guide-step { grid-template-columns: 1fr; }
  .guide-step img { max-width: 260px; margin: 0 auto; display: block; }
}

/* The 17 goals in the guide (#ods): the same list as the map's «¿Qué es cada ODS?» (app.css), with its icons. */
.goals-guide-item img { width: 64px; height: 64px; display: block; }
.goals-guide-item p { line-height: 1.45; }
