.legal-page [hidden] {
  display: none !important;
}

.legal-page {
  min-height: 100vh;
  background: var(--cream);
}

.legal-header {
  padding-inline: 6.1%;
}

.legal-nav {
  display: flex;
  flex: 1;
  justify-content: center;
  margin-inline: 24px;
  color: #58665d;
  font-size: 14px;
  font-weight: 700;
}

.legal-nav a:hover,
.legal-back:hover,
.legal-external:hover {
  color: #758b3e;
}

.legal-main {
  width: min(930px, 90%);
  margin: 0 auto;
  padding: 44px 0 76px;
}

.legal-back {
  display: inline-block;
  margin-bottom: 18px;
  color: #718077;
  font-size: 14px;
  font-weight: 700;
}

.legal-card {
  padding: clamp(24px, 5vw, 58px);
  border: 1px solid #e5e8df;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 65px rgba(23, 39, 33, .06);
}

.legal-card h1 {
  margin: 14px 0 12px;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.2;
  letter-spacing: -.035em;
}

html[dir="rtl"] .legal-card h1,
html[dir="rtl"] .legal-card h2 {
  letter-spacing: 0;
}

.legal-lead {
  max-width: 760px;
  margin: 0 0 25px;
  color: #647168;
  font-size: 17px;
  line-height: 1.8;
}

.legal-notice {
  margin: 24px 0 30px;
  padding: 17px 19px;
  border-inline-start: 4px solid var(--lime);
  border-radius: 8px;
  background: #f4f6ec;
  color: #435148;
  line-height: 1.8;
}

.legal-card section {
  padding: 21px 0;
  border-top: 1px solid #edf0e9;
}

.legal-card h2 {
  margin: 0 0 9px;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.45;
}

.legal-card section p {
  margin: 0 0 8px;
  color: #5f6e64;
  font-size: 16px;
  line-height: 1.85;
}

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

.legal-placeholder {
  color: #7b683b !important;
  font-weight: 700;
}

.legal-external {
  color: #617b34;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-updated {
  margin: 24px 0 0;
  padding-top: 17px;
  border-top: 1px solid #edf0e9;
  color: #78857b;
  font-size: 13px;
}

.legal-footer {
  display: flex;
  min-height: 72px;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 15px 6.1%;
  background: var(--ink);
  color: #bac6b8;
  font-size: 13px;
}

.legal-footer a:first-child {
  color: #fff;
  font-weight: 800;
  letter-spacing: .08em;
}

.legal-footer a:last-child:hover {
  color: var(--lime);
}

@media (max-width: 760px) {
  .legal-header {
    padding-inline: 5%;
  }

  .legal-nav {
    display: none;
  }

  .legal-main {
    width: 92%;
    padding: 27px 0 48px;
  }

  .legal-card {
    padding: 25px 20px;
    border-radius: 12px;
  }

  .legal-card h2 {
    font-size: 19px;
  }

  .legal-lead,
  .legal-card section p {
    font-size: 15px;
  }

  .legal-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 20px 5%;
  }
}
