/* Keep the notice in normal reading order, including on narrow screens. */
.ch-legal-notice {
  box-sizing: border-box;
  display: block;
  flex: 0 1 100%;
  grid-column: 1 / -1;
  width: 100%;
  max-width: 90ch;
  margin: .65rem auto;
  padding: 0 .8rem;
  font: normal 400 .78rem/1.5 system-ui, sans-serif;
  color: inherit;
  text-align: start;
  text-transform: none;
  letter-spacing: normal;
  white-space: normal;
  overflow-wrap: break-word;
}
.ch-legal-notice a {
  display: inline;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: .12em;
}
@media print { .ch-legal-notice { display: none !important; } }

footer:has(> .ch-legal-notice) { flex-wrap: wrap; }
footer > .ch-legal-notice { order: 1; }

/* Presentation modes give the activity the full display. */
:fullscreen .ch-legal-notice,
body.ch-classroom-active .ch-legal-notice,
body.nom-classroom .ch-legal-notice,
body:has(#titration-studio-host.is-classroom) .ch-legal-notice {
  display: none;
}
