/* Базовая обвязка для юридических страниц */
.legal-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 120px 16px 64px;
}

.legal-hero {
  padding-top: 120px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--dark-gray, #2f2f2f);
  background: linear-gradient(180deg, rgba(199,248,73,.08), transparent);
}
.legal-hero .lead { color: var(--white-0-55, #ffffffaa); }

.legal-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.legal-toc {
  top: 80px;
  margin: 24px 0 8px;
  padding: 16px;
  border: 1px solid var(--dark-gray, #2f2f2f);
  background: rgba(255,255,255,.02);
  border-radius: 8px;
}
.toc-title { font-size: 18px; margin: 0 0 8px; }
#toc a { display:block; padding:8px 6px; font-size:14px; color:var(--white, #fff); opacity:.8; text-decoration:none; }
#toc a:hover, #toc a.active { opacity:1; color: var(--brand, #c7f849); }

.legal-content section {
  padding: 16px 0;
  border-bottom: 1px dashed rgba(255,255,255,.08);
}

.legal-content h2 {
  font-size: 28px;
  margin: 0 0 8px;
}
.lead { font-size: 18px; line-height: 1.6; }

.contact-list { padding-left: 18px; }
.contact-list a { color: var(--brand, #c7f849); }

.legal-cta {
  margin-top: 12px;
  padding-top: 12px;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--dark-gray, #2f2f2f);
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:focus { outline: 2px solid var(--brand, #c7f849); }

/* Thanks */
.thanks {
  display:flex; align-items:center; justify-content:center; min-height: 70vh;
  padding-top: 140px;
}
.thanks-card {
  text-align:center;
  border:1px solid var(--dark-gray, #2f2f2f);
  background: rgba(255,255,255,.03);
  padding: 32px 24px;
  border-radius: 12px;
}
.thanks-icon { width:64px; height:64px; margin-bottom: 12px; }
.thanks .actions { display:flex; gap:12px; justify-content:center; margin-top: 16px; }

/* Анимации появления */
[data-animate]{opacity:0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease;}
[data-animate].in-view{opacity:1; transform:none;}

/* Медиа */
@media (min-width: 992px){
  .legal-container { padding-left: 24px; padding-right: 24px; }
  main.legal-container {
    display:grid; grid-template-columns: 280px 1fr; gap: 32px;
  }
  .legal-toc { margin-top: 140px; height:fit-content; }
  .actions { justify-content: flex-end;
    display: flex;
    gap: 12px;
    flex-direction: column;
  }
  .legal-content section { padding: 32px 0; }
  .legal-content h2 { font-size: 42px; 
}
}
@media screen and (max-width: 767px) {
    h1 {
        font-size: 30px;
    }
}