@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
  color: #1f1f1f;
  background: #ffffff;
  font-family: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
}

a {
  color: #245d9e;
  text-underline-offset: 0.2em;
}

a:focus-visible {
  border-radius: 4px;
  outline: 3px solid #245d9e;
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 8px;
  z-index: 100;
  width: min(100% - 40px, 1180px);
  margin: 8px auto 0;
  border: 1px solid #ffffff;
  border-radius: 999px;
  background: #ffffff;
  color: #1e2839;
  box-shadow: none;
  transition: box-shadow 240ms ease;
}

.site-header[data-scrolled="true"] {
  box-shadow: 0 24px 58px rgb(18 28 45 / 18%), 0 10px 22px rgb(0 61 91 / 12%), inset 0 1px 0 rgb(255 255 255 / 95%);
}

.site-header__inner {
  display: flex;
  min-height: 58px;
  padding-inline: 8px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #1e2839;
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
}

.brand img {
  display: block;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 14px 26px -20px rgb(30 44 83 / 70%);
}

.login-link {
  display: inline-flex;
  height: 44px;
  width: 120px;
  padding-inline: 20px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #245d9e;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 180ms ease;
}

.login-link:hover {
  background: #204a65;
}

main {
  width: min(100% - 40px, 1180px);
  margin-inline: auto;
  padding-block: 104px 112px;
}

.document-header {
  max-width: 780px;
}

h1 {
  max-width: 18ch;
  margin: 0;
  font-size: 2.75rem;
  font-weight: 600;
  line-height: 1.1;
  text-wrap: balance;
}

.document-metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 56px;
  margin: 32px 0 0;
}

.document-metadata div {
  display: grid;
  gap: 4px;
}

.document-metadata dt {
  color: #686f7d;
  font-size: 0.8rem;
  font-weight: 500;
}

.document-metadata dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.document-layout {
  display: grid;
  grid-template-columns: minmax(190px, 240px) minmax(0, 74ch);
  gap: 56px 80px;
  align-items: start;
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid #e2e6ee;
}

.contents {
  position: sticky;
  top: 32px;
}

.contents > p {
  margin: 0 0 16px;
  font-size: 0.95rem;
  font-weight: 600;
}

.contents ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contents a {
  color: #555d6c;
  font-size: 0.8rem;
  line-height: 1.45;
  text-decoration: none;
}

.contents a:hover {
  color: #245d9e;
  text-decoration: underline;
}

.legal-document {
  min-width: 0;
}

.legal-document h2,
.legal-document h3 {
  color: #1f1f1f;
  font-weight: 600;
  scroll-margin-top: 32px;
  text-wrap: balance;
}

.legal-document h2 {
  margin: 64px 0 20px;
  font-size: 1.45rem;
  line-height: 1.3;
}

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

.legal-document h3 {
  margin: 36px 0 14px;
  font-size: 1.08rem;
  line-height: 1.4;
}

.legal-document p,
.legal-document li {
  color: #343944;
  font-size: 0.95rem;
  line-height: 1.8;
}

.legal-document p {
  margin: 0 0 16px;
  text-wrap: pretty;
}

.legal-document p + p {
  margin-top: 8px;
}

.legal-document .clause strong {
  color: #1f1f1f;
  font-weight: 600;
}

.legal-document ul {
  display: grid;
  gap: 8px;
  margin: 8px 0 24px;
  padding-left: 24px;
}

.site-footer {
  display: flex;
  width: min(100% - 40px, 1180px);
  min-height: 80px;
  margin-inline: auto;
  padding-block: 24px;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  color: #555d6c;
}

.site-footer p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.6;
}

.site-footer__legal {
  max-width: 720px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 24px;
}

.site-footer nav a {
  color: #1f1f1f;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.site-footer nav a:hover,
.site-footer nav a[aria-current="page"] {
  color: #245d9e;
}

@media (max-width: 820px) {
  .site-header__inner {
    min-height: 58px;
  }

  main {
    padding-block: 48px 72px;
  }

  h1 {
    font-size: 2.2rem;
  }

  .document-layout {
    grid-template-columns: 1fr;
    margin-top: 48px;
    padding-top: 36px;
  }

  .contents {
    position: static;
  }

  .contents ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 24px;
  }
}

@media (max-width: 560px) {
  .site-header__inner,
  .site-footer {
    align-items: center;
  }

  .brand {
    font-size: 1.25rem;
  }

  .login-link {
    height: 42px;
  }

  main {
    width: min(100% - 32px, 1180px);
  }

  h1 {
    font-size: 1.85rem;
  }

  .contents ol {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

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

  body {
    background: #ffffff;
  }

  main {
    width: auto;
    padding: 0;
  }

  .document-layout {
    display: block;
    margin-top: 36px;
    padding-top: 24px;
  }

  .legal-document h2,
  .legal-document h3 {
    break-after: avoid;
  }
}
