.hero.page-section {
  padding-top: 56px;
  padding-bottom: 34px;
}

.page-section.page-section--soft {
  padding-top: 44px;
}

.legal-hero {
  max-width: 980px;
}

.legal-hero h1 {
  margin: 22px 0 0;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.legal-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  font-weight: 500;
}

.legal-shell {
  width: min(1080px, calc(100% - 28px));
}

.legal-card {
  padding: 30px;
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(47, 54, 92, 0.06);
  box-shadow: var(--shadow-soft);
}

.legal-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.legal-meta__item {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.legal-content {
  color: var(--text);
}

.legal-content h1,
.legal-content h2,
.legal-content h3,
.legal-content h4 {
  margin: 28px 0 0;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.legal-content h1:first-child,
.legal-content h2:first-child,
.legal-content h3:first-child,
.legal-content h4:first-child,
.legal-content p:first-child,
.legal-content ul:first-child,
.legal-content ol:first-child {
  margin-top: 0;
}

.legal-content h2 { font-size: 30px; }
.legal-content h3 { font-size: 24px; }
.legal-content h4 { font-size: 20px; }

.legal-content p,
.legal-content div,
.legal-content li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 500;
}

.legal-content p,
.legal-content div,
.legal-content ul,
.legal-content ol {
  margin: 16px 0 0;
}

.legal-content ul,
.legal-content ol {
  padding-left: 22px;
}

.legal-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-empty {
  text-align: center;
  padding: 36px 10px;
}

.legal-empty h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.legal-empty p {
  max-width: 620px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 500;
}

.legal-empty .button {
  margin-top: 24px;
}

@media (max-width: 720px) {
  .hero.page-section {
    padding-top: 42px;
    padding-bottom: 24px;
  }

  .page-section.page-section--soft {
    padding-top: 32px;
  }

  .legal-card {
    padding: 24px;
  }
}

@media (max-width: 520px) {
  .legal-hero h1 {
    font-size: clamp(40px, 12vw, 56px);
  }

  .legal-hero p {
    font-size: 17px;
  }
}
