/* Shared styling for privacy.html, terms.html and 404.html (dfc662c6 WP-15): one readable column,
   system fonts, the site header and footer. Colours are the Party Night --color-* tokens from
   /site/tokens.css (a second stylesheet); every use has a CSS system-colour fallback, so the page
   stays readable in the visitor's light or dark scheme when that file does not load. This file
   declares no colour value of its own. */
:root {
  color-scheme: light dark;
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
}

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

body {
  margin: 0;
  background: var(--color-ground, Canvas);
  color: var(--color-text, CanvasText);
  font-size: 1rem;
  line-height: 1.6;
}

a {
  color: var(--color-action, LinkText);
}

:focus-visible {
  outline: 3px solid var(--color-focus, Highlight);
  outline-offset: 3px;
}

/* Off-screen until focused, then at the top left. */
.skip {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: var(--color-action, Highlight);
  color: var(--color-on-action, HighlightText);
  font-weight: 800;
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

header[data-site-header] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding: 0.5rem 1rem;
  background: var(--color-surface, Canvas);
  border-bottom: 1px solid var(--color-text-muted, GrayText);
}

header[data-site-header] .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: auto;
  color: inherit;
  font-weight: 900;
  text-decoration: none;
}

header[data-site-header] .brand img {
  display: block;
}

header[data-site-header] nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

header[data-site-header] a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

header[data-site-header] nav a {
  color: inherit;
  text-decoration: none;
}

header[data-site-header] nav a:hover {
  text-decoration: underline;
}

main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

h1 {
  font-size: 1.75rem;
  line-height: 1.25;
}

h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
}

nav[data-legal-langs] {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-text-muted, GrayText);
}

nav[data-legal-langs] a {
  padding: 0.5rem 0.25rem;
}

nav[data-legal-langs] a[aria-current='page'] {
  font-weight: 700;
  text-decoration: none;
}

.updated {
  color: var(--color-text-muted, GrayText);
  font-size: 0.9rem;
}

.placeholder {
  background: var(--color-action, Mark);
  color: var(--color-on-action, MarkText);
  padding: 0 0.2em;
}

footer[data-site-footer] {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  border-top: 1px solid var(--color-text-muted, GrayText);
  color: var(--color-text-muted, GrayText);
  font-size: 0.875rem;
}

footer[data-site-footer] ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  margin: 0 0 0.5rem;
  padding: 0;
  list-style: none;
}

footer[data-site-footer] a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
