/* ===== LEGAL PAGES / THANKS ===== */

.legal-wrapper {
  /* уже наследует .content / .content.light из all.css */
  max-width: 960px;
}

.legal-header {
  margin-bottom: 2.8em;
}

.legal-title {
  font-family: var(--heading-font);
  color: var(--heading);
  text-transform: uppercase;
  margin: 0.4em 0 0.8em;
  font-size: 2.6em;
  line-height: 1.15;
}

.legal-meta {
  max-width: 40rem;
  font-size: 1em;
  opacity: 0.85;
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 1.4em;
  font-size: 1em;
}

.legal-content h2 {
  font-size: 1.4em;
  margin-top: 1.4em;
  margin-bottom: 0.2em;
}

.legal-content h3 {
  font-family: var(--heading-font);
  color: var(--heading);
  text-transform: none;
  font-size: 1.15em;
  font-weight: 600;
  margin-top: 1.2em;
  margin-bottom: 0.3em;
}

.legal-content p {
  font-size: 1em;
}

.legal-content ul {
  margin: 0.4em 0 0.8em 1.4em;
  padding: 0;
}

.legal-content li {
  margin-bottom: 0.25em;
}

/* ===== Thanks page ===== */

.thanks {
  text-align: left;
}

.thanks-inner {
  max-width: 720px;
}

.thanks-block {
  margin-top: 2em;
}

.thanks-block h2 {
  font-family: var(--heading-font);
  color: var(--heading);
  text-transform: uppercase;
  font-size: 1.4em;
  margin-bottom: 0.4em;
}

.thanks-block p {
  font-size: 1em;
}

.thanks-block ul {
  margin: 0.4em 0 0.8em 1.4em;
  padding: 0;
}

.thanks-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8em;
  margin-top: 2.4em;
}

.thanks-btn {
  border-radius: var(--corner-8);
  padding: 1.1em 2.2em;
  font-size: 0.875em;
  font-weight: 500;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.thanks-btn.primary {
  background-color: var(--accent);
  color: var(--light);
}

.thanks-btn.primary:hover {
  background-color: var(--accent-darker);
}

.thanks-btn.secondary {
  background-color: transparent;
  color: var(--heading);
  border: 1px solid var(--border);
}

.thanks-btn.secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== Responsive ===== */

@media screen and (max-width: 991px) {
  .legal-wrapper {
    max-width: 100%;
  }

  .legal-title {
    font-size: 2.2em;
  }
}

@media screen and (max-width: 767px) {
  .legal-title {
    font-size: 2em;
  }

  .legal-meta {
    font-size: 0.95em;
  }

  .legal-content {
    font-size: 0.97em;
  }

  .thanks-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .thanks-btn {
    width: 100%;
    justify-content: center;
  }
}

@media screen and (max-width: 479px) {
  .legal-title {
    font-size: 1.4em;
  }
}
