/**
 * Юридические блоки: cookie-плашка и чекбокс согласия на обработку ПД.
 * Цвета в духе темы: красный акцент как у .btn--red, нейтральные серые.
 */

:root {
  --legal-accent: #c41e3a;
  --legal-accent-hover: #a01830;
  --legal-text: #1a1a1a;
  --legal-muted: #6b6b6b;
  --legal-border: #c8c8c8;
  --legal-bg: #ffffff;
  --legal-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

/* --- Cookie banner --- */
.meat-cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 99998;
  max-width: 1100px;
  margin: 0 auto;
  display: none;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 18px 24px;
  font-family: Gilroy, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: var(--legal-text);
  background: var(--legal-bg);
  border-radius: 24px;
  box-shadow: var(--legal-shadow);
}

.meat-cookie-banner.is-visible {
  display: flex;
}

.meat-cookie-banner__text {
  flex: 1 1 280px;
  margin: 0;
}

.meat-cookie-banner__text a {
  color: var(--legal-accent);
  text-decoration: underline;
}

.meat-cookie-banner__text a:hover {
  color: var(--legal-accent-hover);
}

.meat-cookie-banner__actions {
  flex-shrink: 0;
}

.meat-cookie-banner__accept {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 28px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--legal-accent);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.meat-cookie-banner__accept:hover {
  background: var(--legal-accent-hover);
}

@media (max-width: 600px) {
  .meat-cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 16px;
  }
}

/* --- Consent checkbox (формы) --- */
.legal-consent {
  margin-top: 12px;
  margin-bottom: 8px;
}

.legal-consent__label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-family: Gilroy, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: var(--legal-text);
}

.legal-consent__input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 1px solid var(--legal-border);
  border-radius: 4px;
  accent-color: var(--legal-accent);
  cursor: pointer;
}

.legal-consent__input.error,
.legal-consent__input:invalid {
  outline: 2px solid var(--legal-accent);
  outline-offset: 1px;
}

.legal-consent__text a {
  color: var(--legal-accent);
  text-decoration: underline;
}

.legal-consent__text a:hover {
  color: var(--legal-accent-hover);
}

.legal-consent__error {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--legal-accent);
}

/* WooCommerce checkout */
.woocommerce .legal-consent--checkout {
  margin: 16px 0;
}

.woocommerce .legal-consent--checkout .legal-consent__label {
  font-size: 14px;
}

/* Modal auth compact */
.modal-auth__form .legal-consent {
  margin-top: 8px;
  margin-bottom: 4px;
}

.auth-content__form .legal-consent {
  margin-top: 10px;
  margin-bottom: 8px;
}

/* Футер: блок с копирайтом и ссылками */
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

.footer__bottom-start {
  flex: 1 1 auto;
  min-width: 200px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 28px;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-top: 0;
  font-family: Gilroy, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  line-height: 1.4;
}

.footer-legal-links a {
  color: inherit;
  opacity: 0.88;
  text-decoration: underline;
}

.footer-legal-links a:hover {
  opacity: 1;
  color: var(--legal-accent);
}

.footer-legal-links__sep {
  opacity: 0.45;
  user-select: none;
}

/* Контакты в футере (берём как feedback-contacts__list) */
.footer-contacts {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: grid;
  gap: 8px;
  max-width: 360px;
}

.footer-contacts--under-social {
  margin-top: 5px;
  margin-bottom: 5px;
  max-width: 260px;
}

.footer-contacts--under-social .footer-contacts__link {
  align-items: center;
}

.footer-contacts--under-social .footer-contacts__icon {
  width: 17px;
  height: 17px;
  color: var(--gray);
}

.footer-contacts--under-social .footer-contacts__icon svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.social .social__title {
  display: none;
  margin-top: 4px;
  margin-bottom: 5px;
}

.social__list {
  gap: calc(1.4 * var(--indent));
}

.footer-contacts__item {margin: 0;
}

.footer-contacts__link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  opacity: 0.92;
}

.footer-contacts__link:hover {
  opacity: 1;
  color: var(--legal-accent);
}

.footer-contacts__icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-contacts__text {
  display: inline-block;
  font-family: Gilroy, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.35;
}

.footer-contacts__item--address .footer-contacts__text {
  font-size: 13px;
  color: var(--legal-muted);
}

/* Лого + локация в одной колонке */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 220px;
}

.footer-brand .footer-logo {
  display: inline-flex;
}

/* Локация отдельной колонкой (между меню и соцсетями) */
.footer-location {
  max-width: 320px;
}

.footer-location--under-logo {
  margin-top: 0;
  max-width: 280px;
}

.footer-location__link {
  display: flex;
  align-items: flex-start;
  gap: 0;
  color: inherit;
  text-decoration: none;
  opacity: 0.92;
}

.footer-location__link:hover {
  opacity: 1;
  color: var(--legal-accent);
}

.footer-location__text {
  font-family: Gilroy, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  line-height: 1.35;
  color: var(--legal-muted);
}

@media (max-width: 900px) {
  .footer-contacts {
    max-width: 100%;
  }

  .footer-location {
    max-width: 100%;
  }
}

/* Юридическая страница (шаблон legal.php) */
.legal-page__article {
  max-width: 900px;
  margin: 0 auto;
}

.legal-page__title {
  font-family: Gilroy, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--legal-text);
}

.legal-page__content {
  font-family: Gilroy, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--legal-text);
}

.legal-page__content h2,
.legal-page__content h3 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  font-weight: 600;
}

.legal-page__content p {
  margin: 0 0 1em;
}

.legal-page__content a {
  color: var(--legal-accent);
  text-decoration: underline;
}

.menu__footer .footer-legal-links {
  margin-top: 8px;
}