.legal-page,
.not-found-page {
  min-height: 100vh;
  background: #f2f0e8;
  color: #07191a;
}

.legal-page__header,
.legal-page__footer {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 28px;
}

.legal-page__header img { width: 180px; height: auto; }
.legal-page__header .btn { width: auto; }

.legal-page__content {
  width: min(820px, calc(100% - 40px));
  background: transparent;
  margin: 56px auto 96px;
}

.legal-page__eyebrow {
  margin: 0 0 12px;
  color: #1b6f67;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.legal-page h1 {
  margin: 0;
  font-size: clamp(48px, 8vw, 92px);
  line-height: .95;
}

.legal-page__lead {
  margin: 28px 0 64px;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.45;
}

.legal-page section {
  padding-block: 28px;
  border-top: 1px solid rgba(7,25,26,.2);
}

.legal-page h2 { margin: 0 0 14px; font-size: clamp(24px, 3vw, 34px); }
.legal-page p,
.legal-page li { font-size: 17px; line-height: 1.65; }
.legal-page a { color: #075c55; }
.legal-page__header .btn--dark { color: var(--marfim); }
.legal-page code { overflow-wrap: anywhere; }

.legal-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.legal-page__actions .btn { width: auto; }

.legal-page__footer {
  border-top: 1px solid rgba(7,25,26,.2);
  font-size: 14px;
}

.not-found-page {
  display: grid;
  place-items: center;
  padding: 24px;
}

.not-found-page main {
  max-width: 680px;
  text-align: center;
}

.not-found-page img { width: min(240px, 70vw); height: auto; }
.not-found-page__code { margin: 56px 0 0; color: #1b6f67; font-size: 22px; font-weight: 700; }
.not-found-page h1 { margin: 8px 0 16px; font-size: clamp(42px, 8vw, 78px); line-height: .95; }
.not-found-page main > p:not(.not-found-page__code) { font-size: 18px; }
.not-found-page .btn { width: auto; margin-top: 28px; }

@media (max-width: 600px) {
  .legal-page main { background: transparent; }
  .legal-page__header { align-items: center; }
  .legal-page__header img { width: 140px; }
  .legal-page__header .btn { min-height: 40px; padding-inline: 14px; font-size: 12px; }
  .legal-page__content { margin-top: 34px; }
  .legal-page__lead { margin-bottom: 44px; }
  .legal-page__actions { display: grid; }
  .legal-page__actions .btn { width: 100%; }
  .legal-page__footer { align-items: flex-start; flex-direction: column; }
}
