/* Cookie banner — ChatGPT-like clean card */

.zx-consent-banner {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 10000;
  width: min(560px, calc(100vw - 24px));
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  animation: zx-consent-in 0.28s ease-out;
}

.zx-consent-banner.is-leaving {
  animation: zx-consent-out 0.22s ease-in forwards;
}

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

.zx-consent-inner {
  background: #ffffff;
  color: #0d0d0d;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 28px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.02),
    0 12px 40px rgba(0, 0, 0, 0.14);
  padding: 20px 20px 16px;
}

[data-theme="dark"] .zx-consent-inner {
  background: #2f2f2f;
  color: #ececec;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 16px 48px rgba(0, 0, 0, 0.45);
}

.zx-consent-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.zx-consent-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #5d5d5d;
}

[data-theme="dark"] .zx-consent-text {
  color: #b4b4b4;
}

.zx-consent-text a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.zx-consent-cats {
  display: grid;
  gap: 8px;
  margin: 14px 0 4px;
}

.zx-consent-cat {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.04);
  cursor: pointer;
}

[data-theme="dark"] .zx-consent-cat {
  background: rgba(255, 255, 255, 0.06);
}

.zx-consent-cat input {
  margin-top: 2px;
  accent-color: #0d0d0d;
}

[data-theme="dark"] .zx-consent-cat input {
  accent-color: #fff;
}

.zx-consent-cat strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.zx-consent-cat em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: #6f6f6f;
  margin-top: 2px;
}

[data-theme="dark"] .zx-consent-cat em {
  color: #a3a3a3;
}

.zx-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  justify-content: flex-end;
}

.zx-btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 560;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, opacity 0.12s ease;
}

.zx-btn:active {
  transform: scale(0.98);
}

.zx-btn-primary {
  background: #0d0d0d;
  color: #fff;
}

.zx-btn-primary:hover {
  background: #2a2a2a;
}

[data-theme="dark"] .zx-btn-primary {
  background: #fff;
  color: #0d0d0d;
}

[data-theme="dark"] .zx-btn-primary:hover {
  background: #e8e8e8;
}

.zx-btn-secondary {
  background: transparent;
  color: inherit;
  border: 1px solid rgba(0, 0, 0, 0.14) !important;
}

.zx-btn-secondary:hover {
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .zx-btn-secondary {
  border-color: rgba(255, 255, 255, 0.16) !important;
}

[data-theme="dark"] .zx-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
}

.zx-btn-ghost {
  background: transparent;
  color: #6f6f6f;
}

.zx-btn-ghost:hover {
  color: inherit;
}

[data-theme="dark"] .zx-btn-ghost {
  color: #a3a3a3;
}

.zx-legal-footer {
  margin: 40px auto 18px;
  padding: 0 16px;
  max-width: 680px;
  text-align: center;
  font-size: 11.5px;
  line-height: 1.55;
  color: #8f8f8f;
}

[data-theme="dark"] .zx-legal-footer {
  color: #8b8b8b;
}

.zx-legal-line {
  margin: 0;
}

.zx-legal-line + .zx-legal-line {
  margin-top: 2px;
}

.zx-legal-line a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(140, 140, 140, 0.55);
}

.zx-legal-line a:hover {
  color: inherit;
  text-decoration-color: currentColor;
}

.zx-legal-links a + a {
  margin-left: 14px;
}

.zx-legal-page {
  box-sizing: border-box;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 72px;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  color: #121212;
  background: #f7f7f8;
  min-height: 100vh;
}

.zx-legal-page h1 { font-size: 28px; margin: 0 0 8px; letter-spacing: -0.02em; }
.zx-legal-page h2 { font-size: 18px; margin: 28px 0 10px; }
.zx-legal-page p, .zx-legal-page li { margin: 0 0 10px; }
.zx-legal-page ul { padding-left: 1.2em; margin: 0 0 12px; }
.zx-legal-page .meta { opacity: 0.7; font-size: 13px; margin-bottom: 24px; }
.zx-legal-page a { color: #0d0d0d; }
.zx-legal-page .zx-legal-footer { text-align: center; }
.zx-legal-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}
.zx-legal-top a.back { color: inherit; text-decoration: none; font-weight: 600; }

@keyframes zx-consent-in {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes zx-consent-out {
  from { opacity: 1; transform: translateX(-50%) translateY(0); }
  to { opacity: 0; transform: translateX(-50%) translateY(10px); }
}

@media (max-width: 640px) {
  .zx-consent-banner {
    bottom: 12px;
    width: calc(100vw - 16px);
  }
  .zx-consent-inner {
    border-radius: 22px;
    padding: 16px;
  }
  .zx-consent-actions {
    flex-direction: column-reverse;
  }
  .zx-btn {
    width: 100%;
  }
}
