* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
}

.legal-hero {
  padding: calc(var(--header-height) + 74px) 8% 70px;
  background: #253126;
  color: #fff;
}

.legal-hero span {
  display: inline-block;
  margin-bottom: 16px;
  color: #8ee09e;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal-hero h1 {
  max-width: 14ch;
  margin-bottom: 20px;
  font-size: clamp(2.35rem, 4.4vw, 4.7rem);
  font-weight: 800;
  line-height: 1.08;
}

.legal-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
  line-height: 1.75;
}

.legal-content {
  display: grid;
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 82px);
  padding: 78px 8% 96px;
  background: #f7f5f1;
}

.legal-index {
  position: sticky;
  top: calc(var(--header-height) + 28px);
  align-self: start;
  display: grid;
  gap: 10px;
  padding: 24px;
  border: 1px solid #e5ded3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(35, 28, 20, 0.06);
}

.legal-index strong {
  margin-bottom: 8px;
  color: #15191d;
}

.legal-index a {
  width: fit-content;
  color: #4f565d;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.35;
}

.legal-index a:hover {
  color: var(--brand-dark);
}

.legal-panel {
  padding: clamp(30px, 5vw, 56px);
  border: 1px solid #e5ded3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(35, 28, 20, 0.08);
}

.legal-panel section + section {
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid #eee6dc;
}

.legal-panel h2 {
  margin-bottom: 18px;
  color: #15191d;
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
  font-weight: 800;
  line-height: 1.14;
}

.legal-panel h3 {
  margin: 26px 0 12px;
  color: #15191d;
  font-size: 1.18rem;
}

.legal-panel p,
.legal-panel li {
  color: #4f565d;
  font-size: 1rem;
  line-height: 1.78;
}

.legal-panel p + p,
.legal-panel ul + p,
.legal-panel p + ul {
  margin-top: 14px;
}

.legal-panel ul {
  padding-left: 22px;
}

.legal-note {
  margin-bottom: 30px;
  padding: 18px 20px;
  border-left: 4px solid var(--brand);
  background: #edf3e9;
  color: #304237;
  line-height: 1.65;
}

.legal-pending {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff1d6;
  color: #7a5212;
  font-weight: 800;
}

@media (max-width: 900px) {
  .legal-content {
    grid-template-columns: 1fr;
    padding: 58px 6% 76px;
  }

  .legal-index {
    position: static;
  }
}

@media (max-width: 640px) {
  .legal-hero {
    padding: calc(var(--header-height) + 54px) 6% 56px;
  }

  .legal-panel {
    padding: 26px 22px;
  }
}
