/* =============================================
   LEGAL PAGES — oferta, privacy, returns
   ============================================= */

.legal-main {
  padding: 100px 0 80px;
  min-height: 100vh;
}

.legal-wrap {
  max-width: 780px;
  margin: 0 auto;
}

/* Header */
.legal-header {
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(201,168,76,0.15);
}

.legal-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 300;
  color: var(--white);
  margin: 12px 0 16px;
  line-height: 1.1;
}

.legal-date {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--white-30);
  font-family: var(--font-body);
}

/* Sections */
.legal-body {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.legal-section {
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 40px;
}
.legal-section:last-child {
  border-bottom: none;
}

.legal-section h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--gold-light);
  margin-bottom: 20px;
}

.legal-section p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--white-60);
  margin-bottom: 14px;
}
.legal-section p:last-child { margin-bottom: 0; }

.legal-section p strong {
  color: var(--white);
  font-weight: 500;
}

.legal-section ul {
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}

.legal-section ul li {
  font-family: var(--font-body);
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--white-60);
  padding-left: 20px;
  position: relative;
}
.legal-section ul li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 8px;
  top: 5px;
}
.legal-section ul li strong {
  color: var(--white);
}

/* Note block */
.legal-note {
  background: rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 20px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--white-60);
}
.legal-note strong { color: var(--gold); }

/* Links */
.legal-link {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}
.legal-link:hover { color: var(--gold-light); }

/* Footer nav links */
.legal-footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.legal-nav-link {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-30);
  transition: color var(--transition-fast);
}
.legal-nav-link:hover { color: var(--gold); }

/* =============================================
   RETURNS PAGE specific
   ============================================= */

/* Cards row */
.returns-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 56px;
}

.returns-card {
  background: var(--black-mid);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.returns-card--gold {
  border-color: rgba(201,168,76,0.2);
  background: rgba(201,168,76,0.04);
}

.returns-card__num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}
.returns-card--gold .returns-card__num { color: var(--gold-light); }

.returns-card__label {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-30);
  line-height: 1.5;
  text-align: center;
}

/* Steps */
.returns-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 20px;
}

.returns-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.returns-step__num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--gold);
  opacity: 0.5;
  flex-shrink: 0;
  width: 40px;
  line-height: 1;
  padding-top: 2px;
}

.returns-step div strong {
  display: block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 6px;
}

.returns-step div p {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--white-60);
  margin: 0;
}

/* CTA */
.returns-cta {
  margin-top: 48px;
  padding: 40px;
  background: var(--black-mid);
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: var(--radius-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.returns-cta p {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--white);
  margin: 0;
}

/* Mobile */
@media (max-width: 899px) {
  /* Принудительно прижимаем шторку к НИЗУ экрана, как на главной */
  body:has(.legal-main) .nav__drawer {
    top: auto !important;
    bottom: 0 !important;
    border-radius: 20px 20px 0 0 !important; /* Скругления снова сверху карточки */
    transform: translateY(100%) !important; /* Изначально спрятана ВНИЗУ за экраном */
    z-index: 200 !important; /* Встает четко поверх темного оверлея */
  }

  /* При клике (класс .open) она плавно выезжает СНИЗУ ВВЕРХ */
  body:has(.legal-main) .nav__drawer.open {
    transform: translateY(0) !important;
  }

  /* Наш темный фон-затемнение тоже фиксируем на своем слое */
  body:has(.legal-main) .nav__overlay {
    z-index: 199 !important;
  }
}