.mw-legal .intro {
  color: var(--lc-muted);
  margin-bottom: 2rem;
}

.mw-legal .cookie-category {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.mw-legal .category-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.mw-legal .category-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--lc-on-surface);
}

.mw-legal .category-description {
  color: var(--lc-muted);
  font-size: 0.9rem;
  margin-top: 0.35rem;
  line-height: 1.5;
}

.mw-legal .toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  flex-shrink: 0;
}

.mw-legal .toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.mw-legal .toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: 0.3s;
  border-radius: 26px;
}

.mw-legal .toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.mw-legal input:checked + .toggle-slider {
  background-color: var(--lc-primary);
}

.mw-legal input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

.mw-legal input:disabled + .toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.mw-legal .cookie-list {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mw-legal .cookie-list-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--lc-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mw-legal .cookie-item {
  font-size: 0.85rem;
  color: var(--lc-muted);
  padding: 0.25rem 0;
}

.mw-legal .save-button {
  background: var(--lc-primary);
  color: var(--lc-on-primary, #402d00);
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
  transition: transform 0.2s ease;
}

.mw-legal .save-button:hover {
  transform: translateY(-1px);
}

.mw-legal .message {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  display: none;
}

.mw-legal .message.success {
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.5);
  color: #22c55e;
}

.mw-legal .message.error {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #ef4444;
}
