/* Окно выбора согласия на cookie (js/consent.js) и ссылки на политику конфиденциальности (partials/legal-links.php).
   Компактное и полупрозрачное, чтобы не перекрывать дизайн страниц. */
.site-consent {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 2147483000;
  box-sizing: border-box;
  width: calc(100% - 24px);
  max-width: 330px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(12, 12, 12, 0.9);
  color: #ececec;
  font: 12px/1.45 Arial, Helvetica, sans-serif;
  text-align: left;
  letter-spacing: normal;
  text-transform: none;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-consent {
    background: rgba(12, 12, 12, 0.7);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    backdrop-filter: blur(10px) saturate(120%);
  }
}
.site-consent[hidden] { display: none; }
.site-consent__title { margin: 0 0 3px; font: 700 12px/1.3 Arial, Helvetica, sans-serif; color: #fff; }
.site-consent__title:focus { outline: none; }
.site-consent__text { margin: 0 0 9px; color: #dcdcdc; }
.site-consent__link { color: #fff; text-decoration: underline; }
.site-consent__settings { margin: 0 0 9px; }
.site-consent__settings[hidden] { display: none; }
.site-consent__option { display: flex; gap: 8px; align-items: flex-start; padding: 5px 0; cursor: pointer; }
.site-consent__option--fixed { cursor: default; padding-left: 26px; }
.site-consent__option input { flex: none; width: 16px; height: 16px; margin: 1px 0 0; accent-color: #fff; }
.site-consent__option-text { display: flex; flex-direction: column; }
.site-consent__option-text strong { color: #fff; font-weight: 700; }
.site-consent__option-text span { color: #bcbcbc; font-size: 11px; }
.site-consent__actions { display: flex; gap: 6px; }
.site-consent__button {
  flex: 1 1 0;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font: 600 12px/1.2 Arial, Helvetica, sans-serif;
  cursor: pointer;
}
.site-consent__button:hover { background: rgba(255, 255, 255, 0.24); }
.site-consent__button--ghost { border-color: transparent; background: transparent; color: #dcdcdc; text-decoration: underline; }
.site-consent__button--ghost:hover { background: rgba(255, 255, 255, 0.1); }
.site-consent a:focus-visible,
.site-consent button:focus-visible,
.site-consent input:focus-visible { outline: 2px solid #4da3ff; outline-offset: 2px; }

/* Ссылки в подвалах страниц */
.site-legal { margin-left: 12px; font-size: inherit; }
.site-legal__link {
  display: inline;
  margin: 0 8px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: none;
  text-decoration: underline;
  opacity: 0.75;
  cursor: pointer;
}
.site-legal__link:hover { opacity: 1; }

/* Главная: нет подвала с копирайтом, ссылки закреплены в углу */
.site-legal-fixed {
  position: fixed;
  right: 16px;
  bottom: 10px;
  z-index: 50;
  color: #fff;
  font: 11px/1.4 Arial, Helvetica, sans-serif;
}
.site-legal-fixed .site-legal { margin-left: 0; }
.site-legal-fixed .site-legal__link { opacity: 0.55; }
.site-legal-fixed .site-legal__link:hover { opacity: 1; }

@media (max-width: 600px) {
  .site-consent { left: 8px; bottom: 8px; width: calc(100% - 16px); max-width: none; padding: 10px 12px; }
  .site-legal-fixed { right: 8px; bottom: 6px; }
}
