:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic", sans-serif;
  color: #17231f;
  background: #f5f8f6;
}

* {
  box-sizing: border-box;
}

html {
  overflow-wrap: anywhere;
}

body {
  margin: 0;
  min-width: 0;
  line-height: 1.75;
}

a {
  color: #08784b;
  text-underline-offset: 0.18em;
}

.site-shell {
  width: min(100% - 32px, 820px);
  margin-inline: auto;
  padding-block: 32px 72px;
}

.site-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.brand {
  display: inline-block;
  color: #17231f;
  font-size: 1rem;
  font-weight: 750;
  text-decoration: none;
}

h1 {
  margin: 10px 0 0;
  font-size: clamp(1.75rem, 5vw, 2.45rem);
  line-height: 1.3;
}

h2 {
  margin-top: 0;
  font-size: 1.1rem;
  font-weight: 650;
}

.language-switcher {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  align-items: center;
}

.language-switcher a[aria-current="page"] {
  color: #17231f;
  font-weight: 750;
  text-decoration: none;
}

.document-index {
  padding: 28px;
  border: 1px solid #dce5e0;
  border-radius: 8px;
  background: #fff;
}

.document-index ul {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding-left: 1.35rem;
}

.legal-document {
  padding: 32px;
  border: 1px solid #dce5e0;
  border-radius: 8px;
  background: #fff;
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
}

.document-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 18px 0 34px;
  color: #52615a;
  font-size: 0.92rem;
}

.document-meta div {
  display: flex;
  gap: 0.45em;
}

.document-meta dt {
  font-weight: 700;
}

.document-meta dd {
  margin: 0;
}

.document-body {
  margin: 0;
  max-width: 100%;
  overflow: visible;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: normal;
  font: inherit;
  line-height: 1.85;
}

.language-landing {
  min-height: 100vh;
  display: grid;
  align-content: center;
}

.language-landing nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.language-landing nav a {
  min-width: 140px;
  padding: 14px 20px;
  border: 1px solid #b8cbc1;
  border-radius: 6px;
  background: #fff;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}

.redirect-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
}

@media (max-width: 560px) {
  .site-shell {
    width: min(100% - 24px, 820px);
    padding-block: 22px 48px;
  }

  .site-header {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
  }

  .legal-document,
  .document-index {
    padding: 20px;
  }

  .document-meta {
    display: grid;
    gap: 6px;
  }
}
