/* Términos y condiciones: página propia y la misma lectura dentro de la ventana del registro. */
.terms-page { min-height: 100dvh; background: var(--bg); overflow-y: auto; }
.terms-shell { width: min(720px, 100%); margin: 0 auto; padding: calc(16px + var(--safe-top)) 16px calc(32px + var(--safe-bottom)); }
.terms-back { display: inline-block; margin-bottom: 12px; color: var(--yellow); font-weight: 700; text-decoration: none; padding: 8px 0; }

.terms { color: var(--text-2); line-height: 1.55; font-size: 15px; }
.terms h1 { color: var(--text); font-size: 24px; line-height: 1.25; margin: 0 0 6px; }
.terms h2 { color: var(--yellow); font-size: 19px; margin: 28px 0 4px; }
.terms h3 { color: var(--text); font-size: 16px; margin: 18px 0 6px; }
.terms p { margin: 0 0 10px; }
.terms ul { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 6px; }
.terms strong { color: var(--text); }
.terms-meta { color: var(--muted); font-size: 13px; }

dialog.dialog-terms { width: min(640px, calc(100vw - 24px)); }
dialog.dialog-terms .terms h1 { font-size: 21px; padding-right: 44px; }

/* Enlace dentro de la frase de la casilla: sigue el texto, no se parte en bloque. */
.terms-link { display: inline; color: var(--yellow); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
