﻿/* Legal landing — sum-bar + mobile spacing (prototype v13) */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

/* Cookie banner — prototype v13 */
body.legal-landing .cookie {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  background: #1a1f2e;
  color: #fff;
  border-radius: 16px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  z-index: 60;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  font-family: 'Manrope', sans-serif;
}
body.legal-landing .cookie-text {
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
}
body.legal-landing .cookie-text a {
  color: #93c5fd;
  text-decoration: underline;
}
body.legal-landing .cookie-text a:hover {
  color: #bfdbfe;
}
body.legal-landing .cookie-btn {
  height: 40px;
  padding: 0 22px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
body.legal-landing .cookie-btn:hover {
  background: #1d4ed8;
}

@media (max-width: 768px) {
  body.legal-landing .cookie {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 14px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  body.legal-landing .cookie-btn {
    width: 100%;
  }
}

/* Cookie banner fallback for non-legal landings */
body:not(.legal-landing) .cookie {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--color-surface, #fff);
  border-top: 1px solid var(--color-border, #e5e7eb);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  padding: 16px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
body:not(.legal-landing) .cookie-text {
  flex: 1;
  min-width: 200px;
  font-size: 14px;
  color: var(--color-text-secondary, #6b7280);
}
body:not(.legal-landing) .cookie-text a {
  color: var(--color-primary, #2563eb);
  text-decoration: underline;
}
body:not(.legal-landing) .cookie-btn {
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  background: var(--color-accent, #ff6600);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}

.sum-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
  z-index: 55;
  transform: translateY(100%);
  transition: transform 0.25s ease, bottom 0.2s ease;
  font-family: 'Manrope', sans-serif;
}
.sum-bar.visible {
  transform: translateY(0);
}
.sum-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 48px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.sum-bar-pair {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sum-bar-lbl {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ca3af;
  margin-bottom: 2px;
}
.sum-bar-val {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #1a1f2e;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}
.sum-bar-btn {
  margin-left: auto;
  height: 46px;
  padding: 0 28px;
  background: #2563eb;
  color: #fff;
  border-radius: 12px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}
.sum-bar-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

/* Usedesk — поднять launcher и кнопку закрытия (с тенью) над sum-bar */
body.legal-landing {
  --legal-usedesk-bottom: 100px;
}

body.legal-landing :is(
  div:has(> #uw-main-button),
  div:has(> #uw-main-button-close),
  div:has(> .uw-main-button-close),
  div:has(> #uw-close-chat-button),
  #uw-main-button.uw__round-button,
  #uw-main-button-close,
  .uw-main-button-close,
  #uw-close-chat-button,
  .uw-close-chat-button
) {
  z-index: 56 !important;
  transition: bottom 0.2s ease;
  bottom: var(--legal-usedesk-bottom) !important;
}

@media (max-width: 768px) {
  body.legal-landing {
    --legal-usedesk-bottom: 130px;
  }

  body.legal-landing:has(.sum-bar.visible) {
    --legal-usedesk-bottom: calc(130px + 64px);
  }
}

@media (max-width: 1024px) {
  .sum-bar-inner {
    padding: 12px 24px;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .sum-bar-inner {
    padding: 10px 12px;
    gap: 12px;
  }
  .sum-bar-lbl {
    display: none;
  }
  .sum-bar-val {
    font-size: 16px;
  }
  .sum-bar-btn {
    padding: 0 18px;
    height: 42px;
    font-size: 13px;
  }

  /* Override admin inline padding — match prototype block spacing */
  .landing-content .hero {
    padding-top: 40px !important;
    padding-bottom: 56px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .landing-content .bullets {
    padding: 40px 16px !important;
  }
  .landing-content .section,
  .landing-content .how,
  .landing-content .trust,
  .landing-content .faq,
  .landing-content .docs {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .landing-content .reviews {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

@media (max-width: 480px) {
  .sum-bar-inner {
    padding: 8px 10px;
    gap: 8px;
  }
  .sum-bar-val {
    font-size: 14px;
  }
  .sum-bar-btn {
    padding: 0 12px;
    height: 40px;
    font-size: 12px;
  }
}

@media (max-width: 380px) {
  .sum-bar-inner {
    padding: 8px 10px;
    gap: 10px;
  }
  .sum-bar-val {
    font-size: 15px;
  }
  .sum-bar-btn {
    padding: 0 14px;
    height: 40px;
    font-size: 13px;
  }
}

@media (max-width: 1024px) {
  .landing-content .section,
  .landing-content .how,
  .landing-content .trust,
  .landing-content .faq,
  .landing-content .docs,
  .landing-content .bullets {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
  .landing-content .reviews {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}
