/* Cookie consent — matches LMXAI dark/light tokens */

.lmx-consent {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  pointer-events: auto;
}

.lmx-consent__panel {
  width: min(640px, 100%);
  max-height: min(90vh, 720px);
  overflow: auto;
  background: var(--bg-soft, #0d0f14);
  color: var(--text, #e8eaef);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: 16px;
  padding: 22px 22px 18px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  margin-bottom: 8px;
}

.lmx-consent__panel h2 {
  margin: 0 0 10px;
  font-family: var(--font-display, inherit);
  font-size: 1.25rem;
  font-weight: 600;
}

.lmx-consent__intro {
  margin: 0 0 18px;
  color: var(--text-dim, #a0a6b4);
  font-size: 0.92rem;
  line-height: 1.5;
}

.lmx-consent__intro a {
  color: var(--accent, #34d399);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lmx-consent__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.08));
}

.lmx-consent__row-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.lmx-consent__row-text strong {
  font-size: 0.95rem;
  font-weight: 600;
}

.lmx-consent__row-text span {
  font-size: 0.82rem;
  color: var(--text-faint, #7a8190);
  line-height: 1.4;
}

.lmx-consent__switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 26px;
  flex-shrink: 0;
}

.lmx-consent__switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.lmx-consent__slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  transition: background 0.2s;
}

.lmx-consent__slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}

.lmx-consent__switch input:checked + .lmx-consent__slider {
  background: var(--accent, #34d399);
}

.lmx-consent__switch input:checked + .lmx-consent__slider::before {
  transform: translateX(18px);
}

.lmx-consent__switch input:disabled + .lmx-consent__slider {
  opacity: 0.55;
  cursor: not-allowed;
}

.lmx-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  justify-content: flex-end;
}

.lmx-consent__btn {
  appearance: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
}

.lmx-consent__btn--primary {
  background: var(--accent, #34d399);
  color: var(--bg, #08090c);
}

.lmx-consent__btn--primary:hover {
  filter: brightness(1.05);
}

.lmx-consent__btn--ghost {
  background: transparent;
  color: var(--text, #e8eaef);
  border-color: var(--border, rgba(255, 255, 255, 0.15));
}

.lmx-consent__btn--ghost:hover {
  border-color: var(--accent, #34d399);
  color: var(--accent, #34d399);
}

.lmx-cookie-settings {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9990;
  appearance: none;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.15));
  background: var(--bg-soft, #0d0f14);
  color: var(--text-dim, #a0a6b4);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.78rem;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.lmx-cookie-settings:hover {
  color: var(--accent, #34d399);
  border-color: rgba(52, 211, 153, 0.35);
}

@media (max-width: 560px) {
  .lmx-consent__actions {
    flex-direction: column-reverse;
  }
  .lmx-consent__btn {
    width: 100%;
  }
  .lmx-cookie-settings {
    left: 12px;
    bottom: 12px;
    font-size: 0.72rem;
  }
}

/* Privacy / legal prose */
.legal-page {
  padding: 120px 0 80px;
}
.legal-page h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 12px;
}
.legal-page .legal-meta {
  color: var(--text-faint);
  font-size: 0.9rem;
  margin-bottom: 32px;
}
.legal-page h2 {
  font-size: 1.15rem;
  margin: 28px 0 10px;
}
.legal-page p,
.legal-page li {
  color: var(--text-dim);
  line-height: 1.65;
  font-size: 0.98rem;
}
.legal-page ul {
  padding-left: 1.2rem;
  margin: 0 0 12px;
}
.legal-page a {
  color: var(--accent);
}
