/* BANA-X Afrikaans - the legal pages (TASK-019 rule H, rulings 15b and 18).
   The only stylesheet of web/public: same origin, so the Content-Security-
   Policy needs no 'unsafe-inline'. The colours are the app's night tokens
   (tailwind.config.js): night-950 #0D0A33, night-900 #160F52, night-800
   #221873, night-700 #33279A, lav-200 #C9C2FF, gold-400 #FFD43B.
   Every text pair is at least 7:1. No web font: the system font. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #160f52;
  color: #ffffff;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

/* One column, 360 px first, at most 46rem wide on a desktop. */
header,
main {
  max-inline-size: 46rem;
  margin-inline: auto;
  padding-inline: 16px;
}

header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-block: 16px;
}

header a:first-child {
  font-weight: 800;
}

main {
  padding-block: 8px 48px;
}

h1 {
  margin-block: 16px 8px;
  font-size: 2rem;
  line-height: 1.25;
}

h2 {
  margin-block: 32px 8px;
  font-size: 1.375rem;
  line-height: 1.3;
}

p,
ul {
  margin-block: 0 16px;
}

ul {
  padding-inline-start: 1.5rem;
}

li + li {
  margin-block-start: 6px;
}

a {
  color: #ffd43b;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:focus-visible {
  outline: 3px solid #ffd43b;
  outline-offset: 2px;
}

.meta {
  color: #c9c2ff;
}

.important {
  margin-block: 16px 24px;
  padding: 16px;
  border: 1px solid #33279a;
  border-radius: 12px;
  background: #221873;
}

.important h2 {
  margin-block-start: 0;
}

.important > :last-child {
  margin-block-end: 0;
}

/* Black on white, so the terms can be printed (ECT Act s43(1)(k)). */
@media print {
  body {
    background: #ffffff;
    color: #000000;
  }

  a,
  .meta {
    color: #000000;
  }

  .important {
    border: 1px solid #000000;
    background: none;
    color: #000000;
  }
}
