/* Document and recovery pages share the site's restrained typographic rhythm. */
.privacy-page .masthead .wrap,
.error-page .masthead .wrap,
.privacy-page footer .wrap,
.error-page footer .wrap {
  max-width: var(--max, 1240px);
}

.privacy-page main {
  padding: clamp(56px, 7.5vw, 104px) 0 clamp(72px, 9vw, 128px);
}

.privacy-page main > .wrap,
.error-page main > .wrap {
  width: 100%;
  max-width: calc(760px + 2 * var(--gutter));
}

.privacy-page .label,
.error-page .label {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .02em;
  text-transform: none;
  margin-bottom: 20px;
}

.privacy-page h1 {
  max-width: 16ch;
  font-size: clamp(38px, 5.2vw, 62px);
  font-weight: 550;
  line-height: 1.07;
  letter-spacing: -.035em;
  text-wrap: balance;
  margin: 0 0 22px;
}

.privacy-page .updated {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: clamp(36px, 4.5vw, 56px);
}

.privacy-page main p:not(.label):not(.updated):not(.contactblock),
.privacy-page main ul {
  max-width: 70ch;
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.privacy-page h2 {
  max-width: 28ch;
  font-size: clamp(24px, 2.5vw, 29px);
  font-weight: 550;
  line-height: 1.2;
  letter-spacing: -.025em;
  text-wrap: balance;
  margin: 54px 0 18px;
}

.privacy-page main ul {
  padding-left: 22px;
}

.privacy-page main li {
  padding-left: 4px;
  margin-bottom: 10px;
}

.privacy-page .panel {
  max-width: 70ch;
  padding: clamp(22px, 3vw, 30px);
  margin-bottom: 22px;
  border-radius: 4px;
}

.privacy-page main .contactblock {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 0;
}

.privacy-page main a {
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}

.privacy-page footer {
  margin-top: 0;
}

.privacy-page footer .wrap,
.error-page footer {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 12px;
  line-height: 1.7;
}

.privacy-page footer .wrap {
  padding-top: 30px;
  padding-bottom: calc(30px + env(safe-area-inset-bottom));
  gap: 8px 32px;
}

.error-page .masthead .wrap {
  display: flex;
  align-items: center;
  min-height: 84px;
}

.error-page .mark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -.025em;
}

.error-page .mark:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.error-page main {
  padding: clamp(64px, 10vw, 128px) 0;
}

.error-page h1 {
  max-width: 16ch;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 550;
  line-height: 1.06;
  letter-spacing: -.035em;
  text-wrap: balance;
  margin-bottom: 26px;
}

.error-page main p:not(.label) {
  max-width: 52ch;
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.75;
  margin-bottom: 34px;
}

.error-page .btn {
  min-height: 50px;
  padding: 13px 24px;
  border-radius: 4px;
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
}

.error-page footer {
  background: var(--paper);
  color: var(--ink-soft);
  padding-top: 26px;
  padding-bottom: calc(26px + env(safe-area-inset-bottom));
}

.error-page footer .wrap {
  display: block;
  padding-top: 0;
  padding-bottom: 0;
  border-top: 0;
}

@media (max-width: 640px) {
  .privacy-page main > .wrap,
  .error-page main > .wrap {
    padding-right: 22px;
    padding-left: 22px;
  }

  .privacy-page h2 {
    margin-top: 42px;
  }

  .privacy-page main p:not(.label):not(.updated):not(.contactblock),
  .privacy-page main ul {
    font-size: 16px;
    line-height: 1.8;
  }

  .privacy-page main .contactblock {
    font-size: 15px;
  }

  .privacy-page footer .wrap {
    gap: 8px;
  }

  .error-page .masthead .wrap {
    min-height: 70px;
  }
}
