:root {
  color-scheme: light;
  --ink: #162033;
  --muted: #667085;
  --line: #e4e7ec;
  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --surface: #ffffff;
  --page: #f6f8fb;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--blue);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(228, 231, 236, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}
.header-inner {
  display: flex;
  width: min(1120px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #101828;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
}
.brand-logo {
  display: block;
  width: 32px;
  height: 32px;
}

main {
  padding: 48px 16px 72px;
}
.legal-document {
  width: min(880px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 18px 55px rgba(16, 24, 40, 0.07);
}
.document-header {
  padding: 52px 64px 34px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(145deg, #fff 35%, var(--blue-soft));
}
h1 {
  max-width: 760px;
  margin: 0;
  color: #101828;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.14;
  letter-spacing: -0.035em;
}
.document-subtitle {
  margin: 10px 0 0;
  color: #344054;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.015em;
}
.language-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.language-switcher a {
  padding: 7px 13px;
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  background: white;
  color: #475467;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
  text-decoration: none;
}
.language-switcher a:hover,
.language-switcher a[aria-current="page"] {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}
.document-content {
  padding: 38px 64px 48px;
}
.document-content h2 {
  margin: 2.4em 0 0.8em;
  padding-top: 0.35em;
  color: #101828;
  font-size: 23px;
  line-height: 1.35;
  letter-spacing: -0.015em;
}
.document-content h2:first-child,
.document-date + h2 {
  margin-top: 0.35em;
}
.document-content p {
  margin: 0 0 1em;
}
.document-date {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.list-item {
  padding-left: 1.15em;
  text-indent: -1.15em;
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
    line-height: 1.66;
  }
  .header-inner {
    min-height: 60px;
    gap: 10px;
  }
  .brand {
    gap: 6px;
    font-size: 18px;
  }
  .brand-logo {
    width: 30px;
    height: 30px;
  }
  .language-switcher {
    flex-wrap: nowrap;
    gap: 4px;
  }
  .language-switcher a {
    padding: 5px 8px;
    font-size: 12px;
  }
  main {
    padding: 20px 12px 42px;
  }
  .legal-document {
    border-radius: 16px;
  }
  .document-header {
    padding: 34px 22px 26px;
  }
  h1 {
    font-size: 31px;
  }
  .document-subtitle {
    font-size: 15px;
  }
  .document-content {
    padding: 26px 22px 34px;
  }
  .document-content h2 {
    font-size: 20px;
  }
}

@media print {
  body {
    background: white;
    font-family: Georgia, "Times New Roman", serif;
  }
  .site-header,
  .language-switcher {
    display: none;
  }
  main {
    padding: 0;
  }
  .legal-document {
    width: 100%;
    border: 0;
    box-shadow: none;
  }
  .document-header {
    padding: 0 0 24px;
    background: white;
  }
  .document-content {
    padding: 0;
  }
  h1 {
    font-size: 30pt;
  }
  h2 {
    break-after: avoid;
  }
  p,
  li {
    orphans: 3;
    widows: 3;
  }
}
