@font-face {
  font-family: "Poppins";
  src: url("assets/fonts/poppins-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("assets/fonts/poppins-semibold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #0e1210;
  --foreground: #f2f5f3;
  --secondary: #b8c9be;
  --accent: #8fddb0;
  --line: #334b3c;
  font-family:
    "Poppins",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: var(--foreground);
  background: var(--background);
  scrollbar-color: #557561 var(--background);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 2rem;
}

body {
  margin: 0;
  font-size: 1rem;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: var(--background);
}

a {
  color: var(--accent);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  overflow-wrap: anywhere;
}

a:hover {
  color: var(--foreground);
}

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

.site-header,
main,
.site-footer {
  width: min(72ch, calc(100% - 3rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  min-height: 104px;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.brand,
.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.brand img {
  display: block;
  width: 164px;
  height: auto;
}

.back-link {
  gap: 0.5rem;
  font-size: 0.875rem;
}

.back-link svg {
  flex-shrink: 0;
}

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

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

main {
  padding-block: clamp(3rem, 8vw, 5rem) 4rem;
}

.document-header {
  margin-bottom: 3rem;
}

h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.025em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(1.5rem, 5vw, 2.75rem);
  line-height: 1.2;
}

.document-header p {
  margin: 1rem 0 0;
  color: var(--secondary);
  font-size: 0.9375rem;
}

h2 {
  margin: 2.75rem 0 1rem;
  font-size: clamp(1.125rem, 3vw, 1.375rem);
  line-height: 1.45;
  scroll-margin-top: 2rem;
}

h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
}

.legal-content > h2:first-child {
  margin-top: 0;
}

p {
  margin: 0 0 0.75rem;
  overflow-wrap: anywhere;
}

strong {
  font-weight: 600;
}

ul {
  margin: 0.75rem 0 1.25rem;
  padding-left: 1.5rem;
}

li {
  padding-left: 0.25rem;
  margin-bottom: 0.5rem;
}

li::marker {
  color: var(--accent);
}

li p:last-child {
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-block: 1.5rem 2.5rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.site-footer a {
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.site-footer [aria-current="page"] {
  color: var(--foreground);
  font-weight: 600;
}

@media print {
  :root {
    color-scheme: light;
    color: #111;
    background: #fff;
  }

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

  main {
    width: 100%;
    padding: 0;
  }

  a,
  .document-header p {
    color: inherit;
  }

  h2,
  h3 {
    break-after: avoid;
  }

  body {
    font-size: 10pt;
    line-height: 1.6;
    color: #111;
  }

  h1 {
    font-size: 23pt;
  }

  h2 {
    font-size: 13pt;
    margin: 1.4rem 0 0.5rem;
  }

  h3 {
    font-size: 10pt;
    margin: 0.9rem 0 0.4rem;
  }

  p,
  li {
    orphans: 3;
    widows: 3;
  }

  .document-download {
    display: none;
  }

  .withdrawal-model {
    break-inside: avoid;
  }
}
