.legal-page {
  background: #f5f7f6;
  color: #152c3a;
}

.legal-main {
  padding-block: clamp(48px, 8vw, 112px) clamp(84px, 10vw, 144px);
}

.legal-heading,
.legal-content {
  max-width: 780px;
  margin-inline: auto;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(40px, 6vw, 72px);
  font-size: 13px;
  color: #152f43;
  text-decoration: none;
}

.legal-back:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.legal-heading .eyebrow {
  margin-bottom: 18px;
  color: #2b676b;
}

.legal-heading .section-title {
  font-size: clamp(28px, 4.8vw, 54px);
  line-height: 1.5;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

.legal-intro {
  margin: 20px 0 42px;
  font-size: 15px;
  line-height: 1.9;
}

.legal-content {
  font-size: 15px;
  line-height: 2;
  overflow-wrap: anywhere;
}

.legal-content p {
  margin: 0;
}

.legal-content .draft-note {
  padding: 23px 27px;
  border-left: 3px solid #2b676b;
  background: #e0eeee;
  font-size: 14px;
  line-height: 1.9;
}

.draft-note strong {
  display: block;
  font-weight: 700;
}

.legal-content .legal-updated {
  margin-top: 20px;
  padding-bottom: 44px;
  color: #2b676b;
  font-size: 12px;
}

.legal-content section {
  padding-block: 32px;
  border-top: 1px solid #e0eeee;
}

.legal-content h2 {
  margin: 0 0 14px;
  color: #152c3a;
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 650;
  line-height: 1.6;
  letter-spacing: -0.02em;
}

.legal-content .privacy-contact {
  margin-top: 22px;
}

.privacy-contact a {
  color: #2b676b;
  font-size: clamp(19px, 3vw, 25px);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.error-main {
  min-height: min(720px, 78vh);
  display: grid;
  align-items: center;
}

.error-wrap {
  max-width: 800px;
  padding-bottom: 20px;
}

.error-code {
  margin: 0 0 12px;
  color: #152f43;
  font-size: clamp(100px, 19vw, 210px);
  font-weight: 650;
  line-height: 0.95;
  letter-spacing: -0.075em;
}

.error-code span {
  color: #2b676b;
}

.error-wrap .eyebrow {
  margin-block: 28px;
  color: #2b676b;
}

.error-wrap .section-title {
  font-size: clamp(25px, 4vw, 42px);
  line-height: 1.6;
  letter-spacing: -0.035em;
}

.error-wrap > p:not(.eyebrow, .error-code) {
  font-size: 15px;
  line-height: 1.9;
}

.document-button {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  margin-top: 20px;
  padding: 16px 25px;
  border: 1px solid #152f43;
  border-radius: 999px;
  background: #152f43;
  color: #f5f7f6;
  font-size: 14px;
  text-decoration: none;
}

.document-button:hover {
  background: #2b676b;
}

@media (max-width: 800px) {
  .legal-page .footer-inner > .footer-wordmark {
    display: inline-block;
    margin-bottom: 24px;
  }
}

@media (max-width: 560px) {
  .legal-content .draft-note {
    padding: 18px 20px;
  }

  .legal-content section {
    padding-block: 26px;
  }

  .legal-intro,
  .legal-content,
  .error-wrap > p:not(.eyebrow, .error-code) {
    font-size: 14px;
  }
}
