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

body {
  min-height: 100vh;
}

.document-header {
  width: min(calc(100% - 38px), 1120px);
  min-height: 82px;
  margin-inline: auto;
  gap: 12px;
  flex-wrap: wrap;
}

.document-home {
  width: 100%;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: var(--panel);
  font-size: 13px;
  font-weight: 650;
}

.document-home:hover,
.document-home:focus-visible {
  color: var(--ink);
}

.document-main {
  width: min(calc(100% - 38px), 820px);
  margin-inline: auto;
  padding: 42px 0 58px;
}

.document-title {
  margin-bottom: 29px;
}

.document-title h1 {
  margin: 0 0 15px;
  font-size: clamp(42px, 11vw, 64px);
  line-height: 0.99;
  letter-spacing: -0.06em;
}

.document-title p:last-child {
  max-width: 610px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.document-card {
  padding: 27px 21px 8px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.document-section {
  margin-bottom: 29px;
}

.document-section h2 {
  margin: 0 0 11px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.045em;
}

.document-section p,
.document-section li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.document-section p {
  margin: 0 0 12px;
}

.document-section p:last-child {
  margin-bottom: 0;
}

.document-section ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

.document-section a,
.document-contact {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.document-updated {
  margin: 4px 0 20px;
  color: var(--muted);
  font-size: 12px;
}

.support-contact {
  margin: 23px 0 20px;
  display: inline-flex;
  text-decoration: none;
}

.document-footer {
  width: min(calc(100% - 38px), 1120px);
  margin-inline: auto;
  padding: 0 0 35px;
  border: 0;
  color: var(--muted);
  font-size: 11px;
  display: grid;
  justify-items: center;
  gap: 15px;
}

.document-footer nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

.document-footer nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 650;
}

@media (min-width: 620px) {
  .document-header {
    min-height: 88px;
    flex-wrap: nowrap;
  }

  .document-home {
    width: auto;
    margin-left: auto;
  }

  .document-header .locale-switch {
    margin-left: 0;
  }

  .document-main {
    padding: 72px 0 80px;
  }

  .document-card {
    padding: 43px 49px 17px;
    border-radius: 28px;
  }

  .document-section h2 {
    font-size: 26px;
  }

  .document-section p,
  .document-section li {
    font-size: 15px;
  }
}
