/* DO legal site. System fonts only; no external requests. Colours follow the app's tokens (ARCHITECTURE 5.1). */
:root {
  color-scheme: light dark;
  --background: #f7f7f9;
  --surface: #ffffff;
  --text: #0b0b0f;
  --text-secondary: #4a4a55;
  --accent: #3d63e6;
  --divider: #e3e3e8;
  --measure: 42rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0b0b0f;
    --surface: #16161c;
    --text: #f4f4f7;
    --text-secondary: #b3b3be;
    --accent: #8aa6ff;
    --divider: #2a2a33;
  }
}

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

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

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 400 1.0625rem/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "kern";
  overflow-wrap: break-word;
  hyphens: auto;
}

header.site,
main,
footer.site {
  max-width: var(--measure);
  margin: 0 auto;
  padding-inline: 1.25rem;
}

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

.brand {
  color: var(--text);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand span {
  color: var(--accent);
}

.languages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}

.languages li + li {
  margin-top: 0;
}

.languages [aria-current="page"] {
  color: var(--text-secondary);
  font-weight: 600;
}

main {
  padding-block: 1rem 3rem;
}

article,
main > h1 {
  max-width: var(--measure);
}

h1 {
  font-size: clamp(1.75rem, 4vw + 1rem, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 1.5rem 0 0.5rem;
}

h1 + p {
  color: var(--text-secondary);
  margin-top: 0;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 2.25rem 0 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--divider);
  scroll-margin-top: 1rem;
}

h3 {
  font-size: 1.0625rem;
  line-height: 1.4;
  margin: 1.5rem 0 0.25rem;
}

p,
ul {
  margin: 0 0 1rem;
}

.contact {
  font-size: 1.25rem;
  font-weight: 600;
}

ul {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.4rem;
}

strong {
  font-weight: 650;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.documents {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.documents a {
  display: block;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 14px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.documents a:hover {
  border-color: var(--accent);
}

footer.site {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-block: 1.5rem 2.5rem;
  border-top: 1px solid var(--divider);
  font-size: 0.9375rem;
}

@media print {
  header.site nav,
  footer.site {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}
