:root {
  color-scheme: light;
  --brand: #002244;
  --text: #333;
  --background: #f4f4f4;
  --surface: #fff;
  --card: #eeeeff;
  --focus: #b95100;
}

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

html {
  scroll-padding-top: 1rem;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--background);
}

a {
  color: var(--brand);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 0.15em;
}

a:focus-visible,
[tabindex="-1"]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

h1,
h2,
h3 {
  line-height: 1.3;
  overflow-wrap: break-word;
}

h1,
h2 {
  color: var(--brand);
}

p,
li,
address {
  overflow-wrap: anywhere;
}

address {
  font-style: normal;
}

.site-header,
.site-footer {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--surface);
  background: var(--brand);
}

.site-header h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2rem);
  color: inherit;
}

.site-header p {
  max-width: 65rem;
  margin: 0.5rem auto 0;
  font-size: 1.2rem;
}

.site-header a,
.site-footer a {
  color: inherit;
}

.brand {
  font-size: 1.75rem;
  font-weight: 700;
  text-decoration: none;
}

.site-navigation,
main {
  width: min(100% - 2rem, 64rem);
  margin-inline: auto;
}

.site-navigation {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1rem;
  padding-block: 0.5rem;
}

.navigation-links,
.language-links,
.footer-links,
.language-choice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 0.5rem;
}

.site-navigation a,
.footer-links a,
.language-choice a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem;
}

.language-links a[aria-current="page"] {
  border-radius: 0.25rem;
  color: var(--surface);
  background: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

main {
  flex: 1;
}

.section,
.legal-content,
.error-content,
.language-content {
  margin-block: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--surface);
}

.section h2,
.legal-content > h1,
.error-content > h1,
.language-content > h1 {
  margin-top: 0;
}

.legal-content > h1,
.error-content > h1,
.language-content > h1 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  hyphens: auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.grid > div {
  min-width: 0;
  padding: 1rem;
  border-radius: 0.3rem;
  background: var(--card);
}

.grid h3 {
  margin-top: 0;
}

.legal-content {
  max-width: 76ch;
  margin-inline: auto;
}

.legal-content h2 {
  margin-top: 2rem;
  font-size: 1.3rem;
}

.legal-content h3 {
  font-size: 1.1rem;
}

.legal-content li + li {
  margin-top: 0.5rem;
}

.page-date {
  font-size: 0.95rem;
}

.site-footer {
  margin-top: 2rem;
  padding-block: 1rem;
}

.site-footer p {
  margin: 0;
}

.skip-link {
  position: absolute;
  z-index: 10;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.75rem 1rem;
  transform: translateY(-200%);
  color: var(--brand);
  background: var(--surface);
}

.skip-link:focus {
  transform: translateY(0);
}

.objection {
  padding: 1rem;
  border-left: 4px solid var(--brand);
  background: var(--card);
}

@media (max-width: 600px) {
  .grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-navigation {
    justify-content: center;
  }
}

@media print {
  body {
    display: block;
    background: #fff;
    color: #000;
  }

  .site-navigation,
  .site-footer,
  .skip-link {
    display: none;
  }

  main {
    width: 100%;
  }

  .legal-content {
    max-width: none;
    padding: 0;
  }
}
