/* Юридические страницы — политика, согласие */

.legal-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  font-family: 'TildaSans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #151616;
  background: #f7f5f2;
  -webkit-font-smoothing: antialiased;
}

.legal-page__header {
  background: #fff;
  border-bottom: 1px solid #ececec;
  padding: 16px 24px;
}

.legal-page__header-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.legal-page__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #151616;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
}

.legal-page__brand:hover {
  color: #ff9700;
}

.legal-page__brand img {
  display: block;
  width: 120px;
  height: auto;
}

.legal-page__back {
  color: #60636e;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
}

.legal-page__back:hover {
  color: #ff9700;
}

.legal-page__main {
  flex: 1;
  width: min(100%, 860px);
  margin: 32px auto 40px;
  padding: 40px 48px 48px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(21, 22, 22, 0.06);
  box-sizing: border-box;
}

.legal-page h1 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #151616;
}

.legal-page__meta {
  margin: 0 0 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #ececec;
  color: #60636e;
  font-size: 0.9375rem;
}

.legal-page h2 {
  margin: 32px 0 12px;
  padding-top: 4px;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  color: #151616;
}

.legal-page h2:first-of-type {
  margin-top: 0;
}

.legal-page p,
.legal-page li {
  margin: 0 0 12px;
  color: #2a2b2e;
}

.legal-page ul {
  margin: 0 0 16px;
  padding-left: 1.35rem;
}

.legal-page li::marker {
  color: #ff9700;
}

.legal-page a {
  color: #ff9700;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page a:hover {
  color: #151616;
  text-decoration: none;
}

.legal-page__footer {
  margin-top: auto;
  padding: 24px;
  background: #fff;
  border-top: 1px solid #ececec;
}

.legal-page__footer-inner {
  max-width: 900px;
  margin: 0 auto;
  font-size: 0.875rem;
  color: #60636e;
}

.legal-page__footer nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.legal-page__footer nav span[aria-hidden="true"] {
  display: none;
}

.legal-page__footer a {
  display: inline-block;
  max-width: 100%;
  color: #151616;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.legal-page__footer a:hover {
  color: #ff9700;
  text-decoration: none;
}

@media (min-width: 560px) {
  .legal-page__footer nav {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
  }

  .legal-page__footer nav span[aria-hidden="true"] {
    display: inline;
    color: #c0c7d3;
  }
}

@media (max-width: 639px) {
  .legal-page__header {
    padding: 14px 16px;
  }

  .legal-page__header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-page__main {
    margin: 16px auto 24px;
    padding: 28px 20px 32px;
    border-radius: 16px;
    box-shadow: none;
  }

  .legal-page h1 {
    font-size: 1.4375rem;
  }

  .legal-page__footer {
    padding: 20px 16px 28px;
  }
}
