/* Banners */
.banners {
  background: transparent;
}

.banner-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  --banner-gap: 16px;
  gap: var(--banner-gap);
  align-items: stretch;
}

.banner-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  aspect-ratio: 5 / 2; /* стабилизирует сетку */
}

.banner-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.banner-card img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  filter: brightness(0) invert(1); /* иконки/логотипы белые на тёмном фоне */
}
/* Global Background image from HTML */
#site-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
}

/* Make key sections non-black (transparent over bg) */
#contact,
#faq,
#security,
#reviews,
.offers,
.banners {
  background-color: transparent;
}

/* Optional subtle overlay for readability (not black) */
.hero,
#security,
#reviews,
#offers,
#faq,
#contact,
.banners {
  backdrop-filter: none;
}

/* Hero media */
.hero-media {
  margin: 24px 0 0;
  display: flex;
  justify-content: center;
}
.hero-img {
  width: 100%;
  max-width: 960px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* Illustration in security section */
.section-illustration {
  margin: 16px 0 24px;
}
.section-illustration img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

/* Планшет: компактнее, при необходимости можно снизить до 4 */
@media (max-width: 1200px) {
  .banner-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Мобильные: 2 столбца; при нечетном количестве — последний по центру и без растягивания */
@media (max-width: 640px) {
  .banner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .banner-grid > .banner-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - var(--banner-gap)) / 2);
  }
}
/* ===================================
   CardGalaxyHub - Casino Aggregator
   Color Palette: Midnight Blue, Silver, Soft Gold
   =================================== */

/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #e8e8e8;
  background: linear-gradient(135deg, #0a1929 0%, #1a2332 50%, #0f1821 100%);
  overflow-x: hidden;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #d4af37;
  margin-bottom: 1rem;
  font-weight: 600;
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: #d4af37;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #f4d03f;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
  color: #0a1929;
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #f4d03f 0%, #d4af37 100%);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: #d4af37;
  border-color: #d4af37;
}

.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.1);
}

.btn-small {
  padding: 8px 20px;
  font-size: 0.9rem;
}

.btn-outline {
  background: transparent;
  color: #c0c0c0;
  border-color: #c0c0c0;
}

.btn-outline:hover {
  background: rgba(192, 192, 192, 0.1);
  color: #e8e8e8;
}

.btn-glow {
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.btn-glow:hover {
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.6);
}

/* Age Verification Popup */
.age-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 25, 41, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.age-popup.hidden {
  display: none;
}

.age-popup-content {
  background: linear-gradient(135deg, #1a2332 0%, #0f1821 100%);
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  max-width: 500px;
  border: 2px solid #d4af37;
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

.age-popup-content img {
  margin-bottom: 20px;
}

.age-popup-content h2 {
  color: #d4af37;
  margin-bottom: 15px;
}

.age-popup-content p {
  color: #c0c0c0;
  margin-bottom: 15px;
}

.age-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 25px;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1a2332 0%, #0f1821 100%);
  padding: 20px;
  z-index: 9999;
  border-top: 2px solid #d4af37;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.cookie-banner.hidden {
  display: none;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-content p {
  flex: 1;
  min-width: 250px;
  margin: 0;
  color: #c0c0c0;
  font-size: 0.9rem;
}

.cookie-content a {
  color: #d4af37;
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Header */
.header {
  background: rgba(10, 25, 41, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo a {
  background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navigation */
.nav-list {
  display: flex;
  list-style: none;
  gap: 35px;
  margin: 0;
  padding: 0;
}

.nav-list li {
  margin: 0;
}

.nav-list a {
  color: #c0c0c0;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-list a:hover {
  color: #d4af37;
}

.nav-list a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #d4af37;
  transition: width 0.3s ease;
}

.nav-list a:hover::after {
  width: 100%;
}

/* Burger Menu */
.burger-toggle {
  display: none;
}

.burger-icon {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 21px;
  cursor: pointer;
  z-index: 1001;
  position: relative;
}

.burger-line {
  width: 100%;
  height: 3px;
  background: #d4af37;
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-origin: center;
}

@media (max-width: 900px) {
  .burger-icon {
    display: flex;
  }

  .nav {
    position: absolute;
    right: 0;
    top: 0;
    height: auto;
    max-height: 70vh;
    width: 280px;
    background: linear-gradient(135deg, #1a2332 0%, #0f1821 100%);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 999;
    overflow-y: auto;
    padding-top: 80px;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 20px;
  }

  .nav-list li {
    border-bottom: 1px solid rgba(192, 192, 192, 0.1);
  }

  .nav-list a {
    display: block;
    padding: 15px 10px;
  }

  .burger-toggle:checked ~ .nav {
    transform: translateX(0);
  }

  .burger-toggle:checked ~ .burger-icon .burger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .burger-toggle:checked ~ .burger-icon .burger-line:nth-child(2) {
    transform: scaleX(0);
  }

  .burger-toggle:checked ~ .burger-icon .burger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

/* Hero Section */
.hero {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(10, 25, 41, 0.8) 0%,
    rgba(15, 24, 33, 0.8) 100%
  );
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("hero-image.jpg") center/cover no-repeat;
  opacity: 0.15;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* Use HTML img as hero background */
.hero .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  filter: brightness(0.55);
}

/* Disable old pseudo-element background */
.hero::before {
  display: none !important;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.hero-subtitle {
  font-size: 1.3rem;
  color: #c0c0c0;
  margin-bottom: 1rem;
}

.hero-verified {
  font-size: 1.1rem;
  color: #d4af37;
  font-weight: 600;
  margin-bottom: 2rem;
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 30px 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(26, 35, 50, 0.6);
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.feature-item i {
  color: #d4af37;
  font-size: 1.2rem;
}

.feature-item span {
  color: #e8e8e8;
  font-weight: 500;
  font-size: 0.9rem;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
}

@media (max-width: 768px) {
  .hero {
    padding: 24px 0;
  }

  .hero::before {
    display: none;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    display: none;
  }

  .hero-buttons {
    display: none;
  }

  .hero-features {
    gap: 10px;
  }

  .feature-item {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .feature-item i {
    font-size: 1rem;
  }

  .feature-item span {
    font-size: 0.75rem;
  }
}

/* Sections */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #d4af37;
}

.glow-text {
  text-shadow: 0 0 26px rgba(212, 175, 55, 0.7);
}

/* Offers Section */
.offers {
  background: rgba(15, 24, 33, 0.5);
}

.offers-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.offer-card {
  background: linear-gradient(
    135deg,
    rgba(26, 35, 50, 0.8) 0%,
    rgba(15, 24, 33, 0.8) 100%
  );
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.3);
  display: flex; /* desktop: две колонки 50/50 */
}

.glow-card {
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.35);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.glow-card:hover {
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.6);
  transform: translateY(-5px);
}

.offer-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  border-right: 1px solid rgba(212, 175, 55, 0.2);
  width: 50%;
}

.offer-logo {
  width: 100%;
  max-width: 180px;
  /* margin-bottom: 20px; */
}

/* Лого-контейнер прозрачный, без рамок и с аккуратной посадкой SVG */
.offer-logo .logo-placeholder {
  background: transparent !important;
  border: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.offer-logo .logo-placeholder img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.logo-placeholder {
  aspect-ratio: 16 / 9;
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.2) 0%,
    rgba(244, 208, 63, 0.2) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: #d4af37;
  border-radius: 8px;
  border: 2px solid rgba(212, 175, 55, 0.3);
}

.offer-mobile-stats {
  display: block;
  width: 100%;
}

.offer-desktop-stats {
  display: none;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  /* margin-bottom: 12px; */
}

.stat-item {
  color: #c0c0c0;
  font-size: 0.9rem;
}

.stat-item strong {
  color: #d4af37;
}

.offer-right {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 50%;
}

.offer-right h3 {
  color: #d4af37;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.offer-description {
  color: #c0c0c0;
  margin-bottom: 20px;
  line-height: 1.6;
}

.payment-methods {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.payment-methods i {
  font-size: 2rem;
  color: #d4af37;
}

@media (min-width: 769px) {
  /* Desktop: flex 50/50 уже задан; скрываем мобильные метрики, показываем десктопные */
  .offer-left {
    padding: 30px 20px;
  }
  .offer-logo {
    margin-bottom: 0;
  }
  .offer-mobile-stats {
    display: none;
  }
  .offer-desktop-stats {
    display: block;
    width: 100%;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 0; /* убрать паддинги между секциями */
  }

  /* Mobile: 2 колонки внутри карточки (50%/50%), без строк */
  .offer-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .offer-left {
    border-right: 1px solid rgba(212, 175, 55, 0.2);
    border-bottom: none;
    padding: 10px;
    width: auto;
  }

  .offer-right {
    padding: 10px;
    width: auto;
  }

  /* Показываем описание бонусов на мобильном */
  .offer-description {
    display: block;
    font-size: 0.85rem; /* меньше размер шрифта */
    line-height: 1.35; /* компактнее */
    margin-bottom: 8px;
  }

  .offers-grid {
    gap: 12px; /* меньше расстояния между карточками */
  }

  /* Сильно уменьшить иконки методов оплаты на мобильном */
  .payment-methods {
    gap: 8px;
  }
  .payment-methods i {
    font-size: 1.1rem;
  }

  /* Уменьшить заголовки секций на мобильном */
  .section-title {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
  }

  /* Уменьшить маргины/отступы внутренних блоков */
  .hero-features {
    margin: 16px 0;
    gap: 8px;
  }
  .certificates {
    gap: 12px;
    margin-top: 16px;
  }
  .reviews-grid {
    gap: 12px;
  }
  .faq-item {
    margin-bottom: 12px;
    padding: 16px;
  }
  .contact-content p {
    margin-bottom: 10px;
  }
}

/* Reviews Section */
.reviews {
  background: rgba(10, 25, 41, 0.5);
  padding-bottom: 10px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.review-card {
  background: linear-gradient(
    135deg,
    rgba(26, 35, 50, 0.8) 0%,
    rgba(15, 24, 33, 0.8) 100%
  );
  padding: 30px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.review-stars {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.review-text {
  color: #c0c0c0;
  font-style: italic;
  margin-bottom: 15px;
  line-height: 1.6;
}

.review-author {
  color: #d4af37;
  font-weight: 600;
}

/* Security Section */
.security {
  background: rgba(15, 24, 33, 0.5);
}

.security-content {
  max-width: 900px;
  margin: 0 auto 40px;
}

.security-intro {
  font-size: 1.1rem;
  color: #e8e8e8;
  margin-bottom: 20px;
}

.security-content p {
  color: #c0c0c0;
  line-height: 1.8;
}

.certificates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.cert-item {
  text-align: center;
  padding: 30px;
  background: linear-gradient(
    135deg,
    rgba(26, 35, 50, 0.8) 0%,
    rgba(15, 24, 33, 0.8) 100%
  );
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.cert-item i {
  font-size: 3rem;
  color: #d4af37;
  margin-bottom: 15px;
}

.cert-item h4 {
  color: #d4af37;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.cert-item p {
  color: #c0c0c0;
  font-size: 0.9rem;
  margin: 0;
}

@media (max-width: 768px) {
  .certificates {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .cert-item {
    padding: 20px 15px;
  }

  .cert-item i {
    font-size: 2rem;
  }
}

/* FAQ Section */
.faq {
  background: rgba(10, 25, 41, 0.5);
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: linear-gradient(
    135deg,
    rgba(26, 35, 50, 0.8) 0%,
    rgba(15, 24, 33, 0.8) 100%
  );
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 20px;
  border-left: 4px solid #d4af37;
}

.faq-item h3 {
  color: #d4af37;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.faq-item p {
  color: #c0c0c0;
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 768px) {
  .faq-item {
    padding: 20px;
  }
}

/* Banners Section */
.banners {
  padding: 60px 0;
  background: rgba(15, 24, 33, 0.5);
}

.banner-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.banner-placeholder {
  aspect-ratio: 16 / 9;
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.1) 0%,
    rgba(244, 208, 63, 0.1) 100%
  );
  border: 2px dashed rgba(212, 175, 55, 0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d4af37;
  font-weight: 600;
}

@media (max-width: 768px) {
  .banner-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .banner-grid .banner-placeholder:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 50%;
  }
}

/* Contact Section */
.contact {
  background: rgba(10, 25, 41, 0.5);
}

.contact-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.contact-content p {
  color: #c0c0c0;
  margin-bottom: 20px;
}

.contact-info {
  background: linear-gradient(
    135deg,
    rgba(26, 35, 50, 0.8) 0%,
    rgba(15, 24, 33, 0.8) 100%
  );
  padding: 30px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.contact-info p {
  margin-bottom: 15px;
}

.contact-info strong {
  color: #d4af37;
}

.contact-info a {
  color: #f4d03f;
  word-break: break-all;
}

.contact-address {
  word-break: break-word;
}

/* Footer */
.footer {
  background: rgba(10, 25, 41, 0.95);
  padding: 60px 0 30px;
  border-top: 2px solid rgba(212, 175, 55, 0.3);
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
}

.responsible-gaming {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(192, 192, 192, 0.2);
}

.responsible-gaming img {
  flex-shrink: 0;
}

.rg-text h3 {
  color: #d4af37;
  margin-bottom: 5px;
  font-size: 1.3rem;
}

.rg-text h4 {
  color: #c0c0c0;
  margin-bottom: 10px;
  font-size: 1rem;
  font-weight: 500;
}

.rg-text p {
  color: #c0c0c0;
  line-height: 1.6;
  margin: 0;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.footer-links a {
  color: #c0c0c0;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #d4af37;
}

.footer-age {
  text-align: center;
  color: #c0c0c0;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.footer-copy {
  text-align: center;
  color: #888;
  font-size: 0.85rem;
  margin: 0;
}

@media (max-width: 768px) {
  .responsible-gaming {
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 15px;
  }
}

/* Utility Classes */
.hidden {
  display: none !important;
}

/* ===========================
   Legal pages spacing tweaks
   =========================== */
.legal-page section,
.legal-page .legal-section {
  padding: 16px 0; /* меньше вертикальные отступы */
  margin: 0; /* убираем внешние маргины секций */
}

.legal-page h1,
.legal-page h2,
.legal-page h3 {
  margin-bottom: 10px; /* компактнее заголовки */
}

.legal-page p,
.legal-page ul,
.legal-page ol {
  margin-bottom: 10px; /* компактнее параграфы и списки */
}

@media (max-width: 768px) {
  .legal-page section,
  .legal-page .legal-section {
    padding: 10px 0; /* ещё компактнее на мобильном */
  }

  .legal-page h1,
  .legal-page h2,
  .legal-page h3 {
    margin-bottom: 8px;
  }

  .legal-page p,
  .legal-page ul,
  .legal-page ol {
    margin-bottom: 8px;
  }
}
