body.page-legal {
  background: #f4f6f8;
}

body.page-legal .legal-container {
  max-width: 1680px;
  padding: 0 clamp(24px, 4vw, 72px);
}

.legal-content {
  max-width: none !important;
  margin: 0 !important;
  padding: clamp(42px, 5vw, 72px) 0 clamp(72px, 8vw, 112px) !important;
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.legal-header {
  position: sticky;
  top: calc(var(--nav-h) + 28px);
  min-height: min(620px, calc(100vh - var(--nav-h) - 56px));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(188, 27, 46, 0.18), rgba(188, 27, 46, 0) 42%),
    linear-gradient(145deg, #11141b 0%, #242a35 100%);
  color: #ffffff;
  box-shadow: 0 24px 70px rgba(17, 20, 27, 0.18);
  overflow: hidden;
}

.legal-header::after {
  content: "";
  width: 78px;
  height: 4px;
  margin-top: 34px;
  background: var(--brand-red);
  border-radius: 4px;
}

.legal-header .section-label {
  color: #ffffff;
  opacity: 0.86;
}

.legal-header .section-title {
  width: fit-content;
  color: #ffffff;
  max-width: 100%;
  font-size: clamp(28px, 2.35vw, 36px);
  line-height: 1.08;
  margin: 0 auto 24px;
  text-align: left;
}

.legal-header .section-title .accent {
  display: block;
  color: var(--brand-red-light);
}

.legal-title-line {
  display: block;
}

.legal-title-compact {
  font-size: clamp(24px, 2.05vw, 31px) !important;
  line-height: 1.14 !important;
}

.legal-header .divider {
  display: none;
}

.legal-intro {
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: clamp(17px, 1.25vw, 20px) !important;
  line-height: 1.65 !important;
}

.legal-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.legal-section {
  margin: 0 !important;
  padding: clamp(20px, 2.2vw, 30px);
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(16, 24, 40, 0.07);
  height: 100%;
}

.legal-section:first-child {
  grid-column: 1 / -1;
}

.legal-section h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(20px, 1.45vw, 26px) !important;
  line-height: 1.2;
  margin-bottom: 16px !important;
  color: var(--brand-red);
}

.legal-section p,
.legal-section li {
  font-size: 16px !important;
  line-height: 1.68 !important;
  color: var(--text-muted);
}

.legal-section p:last-child,
.legal-section li:last-child {
  margin-bottom: 0 !important;
}

.legal-section ul {
  margin-top: 14px;
  padding-left: 20px;
  list-style-type: disc;
}

.legal-section a {
  color: var(--brand-red);
  text-decoration: none;
}

.legal-section a:hover {
  text-decoration: underline;
}

.legal-section:first-child ul {
  columns: 2;
  column-gap: 34px;
}

.legal-section:first-child li {
  break-inside: avoid;
}

@media (max-width: 1180px) {
  .legal-content {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .legal-header {
    position: relative;
    top: auto;
    min-height: auto;
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  body.page-legal .legal-container {
    padding: 0 16px;
  }

  .legal-content {
    padding-top: 18px !important;
    gap: 18px;
  }

  .legal-body {
    grid-template-columns: 1fr;
  }

  .legal-section:first-child ul {
    columns: 1;
  }

  .legal-header .section-title {
    font-size: clamp(28px, 8vw, 34px);
  }

  .legal-section {
    padding: 22px 18px;
  }

  .legal-section h2 {
    font-size: 21px;
  }

  .legal-section p,
  .legal-section li {
    font-size: 15px;
    line-height: 1.65;
  }
}
