/*
 * WebCarrier BBS: terminal page (the screen itself is a canvas).
 *
 * Copyright (C) 2026 Christoph Scheel <https://chrisscheel.de>
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */
html, body {
  margin: 0;
  height: 100%;
  background: #000;
  color: #aaa;
}
body {
  overflow: hidden;
}
#screen {
  position: fixed;
  inset: 0 0 22px 0;
  display: grid;
  place-items: center;
}
#term {
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  outline: none;
  cursor: none;
}
#legal {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22px;
  display: flex;
  justify-content: center;
  gap: 24px;
  font: 12px/22px "Courier New", Courier, monospace;
}
#legal a {
  color: #555;
  text-decoration: none;
}
#legal a:hover,
#legal a:focus-visible {
  color: #aaa;
  text-decoration: underline;
}

/* Imprint and privacy pages */
body.legal {
  overflow: auto;
}
body.legal article {
  max-width: 72ch;
  margin: 0 auto;
  padding: 32px 16px 64px;
  font: 16px/1.5 "Courier New", Courier, monospace;
}
body.legal h1 {
  font-size: 18px;
  color: #fff;
  background: #0000aa;
  padding: 2px 8px;
  margin: 0 0 24px;
}
body.legal p {
  white-space: pre-wrap;
  margin: 0 0 16px;
}
body.legal a {
  color: #55ffff;
}
@media (min-width: 720px) {
  body.legal article {
    padding-top: 64px;
  }
}
