.brolab-legal-footer {
  margin-top: 40px;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 12, 18, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.brolab-legal-links {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  font-size: 14px;
}

.brolab-legal-links a,
.cookie-manage-link {
  color: #f4f6fb;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  padding: 8px 12px;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
}

.cookie-manage-link:hover,
.cookie-manage-link:focus-visible,
.brolab-legal-links a:hover,
.brolab-legal-links a:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}

.cc-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9998;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 14px;
  background: rgba(9, 13, 20, 0.96);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
  color: #f6f7fa;
  padding: 16px;
  display: grid;
  gap: 14px;
}

.cc-banner[hidden] {
  display: none !important;
}

.cc-banner__title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
}

.cc-banner__text,
.cc-banner__links {
  margin: 0;
  line-height: 1.45;
  font-size: 14px;
}

.cc-banner__links a {
  color: #dce9ff;
}

.cc-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cc-btn {
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
}

.cc-btn--primary {
  background: #f4f7ff;
  border-color: #f4f7ff;
  color: #0e1118;
}

.cc-btn--secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #f4f7ff;
}

.cc-btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: #f4f7ff;
}

.cc-btn:focus-visible,
.cc-icon-btn:focus-visible,
.cc-toggle input:focus-visible + .cc-toggle__switch {
  outline: 2px solid #8ec8ff;
  outline-offset: 2px;
}

.cc-modal-open {
  overflow: hidden;
}

.cc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(7, 9, 12, 0.6);
}

.cc-modal-overlay[hidden] {
  display: none !important;
}

.cc-modal {
  width: min(640px, 100%);
  max-height: 92vh;
  overflow: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(12, 16, 25, 0.98);
  color: #f7f8fb;
  padding: 18px;
}

.cc-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.cc-modal__header h2 {
  margin: 0;
  font-size: 24px;
}

.cc-icon-btn {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  border-radius: 8px;
  min-width: 42px;
  min-height: 42px;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.cc-modal__desc {
  margin: 12px 0 16px;
  line-height: 1.5;
}

.cc-form {
  display: grid;
  gap: 10px;
}

.cc-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 12px;
}

.cc-toggle__text {
  display: grid;
  gap: 4px;
}

.cc-toggle__text small {
  line-height: 1.35;
  color: rgba(243, 247, 255, 0.85);
}

.cc-toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.cc-toggle__switch {
  width: 54px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  position: relative;
  flex-shrink: 0;
}

.cc-toggle__switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0d1118;
  transition: transform 0.2s ease;
}

.cc-toggle input:checked + .cc-toggle__switch {
  background: #a9ddff;
}

.cc-toggle input:checked + .cc-toggle__switch::after {
  transform: translateX(24px);
}

.cc-modal__actions {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

@media (min-width: 860px) {
  .cc-banner {
    left: 24px;
    right: 24px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .cc-banner__actions {
    justify-content: flex-end;
  }
}

@media (max-width: 640px) {
  .cc-modal {
    padding: 14px;
  }

  .cc-modal__header h2 {
    font-size: 21px;
  }

  .cc-btn {
    width: 100%;
  }

  .cc-modal__actions {
    justify-content: stretch;
  }
}
