/* Privacy / Cookie Consent */

:root {
  --color-bg-dark: #0a0a0f;
  --color-bg-card: #13131f;
  --color-primary: #00f0ff;
  --color-secondary: #7000ff;
  --color-accent: #00ff94;
  --color-text-main: #ffffff;
  --color-text-muted: #a0a0b0;
  --color-border: rgba(255, 255, 255, 0.1);
  --gradient-main: linear-gradient(135deg, var(--color-bg-dark) 0%, #1a1a2e 100%);
  --gradient-glow: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'Fira Code', monospace;
  --font-scale: 1;
}

html {
  font-size: 16px;
  font-size: calc(16px * var(--font-scale));
}

[data-theme="light"] {
  --color-bg-dark: #eef2f7;
  --color-bg-card: #f8fafc;
  --color-text-main: #0b1220;
  --color-text-muted: #475569;
  --color-border: rgba(15, 23, 42, 0.12);
  --gradient-main: linear-gradient(135deg, var(--color-bg-dark) 0%, #e9eef7 100%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background: var(--gradient-main);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.ndgbr-privacy-page ul {
  list-style: disc;
}

#ndgbr-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  padding: 16px;
}

#ndgbr-privacy-fab {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 100000;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] #ndgbr-privacy-fab {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(248, 250, 252, 0.92);
  color: rgba(15, 23, 42, 0.90);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

#ndgbr-privacy-fab:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 240, 255, 0.28);
  color: var(--color-primary);
}

#ndgbr-privacy-fab:focus {
  outline: none;
}

#ndgbr-privacy-fab:focus-visible {
  outline: 2px solid rgba(0, 240, 255, 0.55);
  outline-offset: 3px;
}

@media (max-width: 720px) {
  #ndgbr-privacy-fab {
    left: 12px;
    bottom: 88px;
  }
}

.ndgbr-privacy-page {
  margin: 0;
  min-height: 100vh;
  background: var(--gradient-main);
  color: var(--color-text-main);
}

html[data-theme="light"] .ndgbr-privacy-page,
[data-theme="light"] .ndgbr-privacy-page {
  background: var(--gradient-main);
  color: var(--color-text-main);
}

.ndgbr-privacy-wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 34px 18px 140px;
}

.ndgbr-privacy-card {
  border: 1px solid var(--color-border);
  background: rgba(19, 19, 31, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

html[data-theme="light"] .ndgbr-privacy-card,
[data-theme="light"] .ndgbr-privacy-card {
  border-color: var(--color-border);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
}

.ndgbr-privacy-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.ndgbr-privacy-title {
  margin: 0;
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.ndgbr-privacy-lead {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.55;
}

html[data-theme="light"] .ndgbr-privacy-lead,
[data-theme="light"] .ndgbr-privacy-lead {
  color: var(--color-text-muted);
}

.ndgbr-privacy-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.ndgbr-privacy-section {
  margin-top: 16px;
}

.ndgbr-privacy-section h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 900;
}

.ndgbr-privacy-section p,
.ndgbr-privacy-section li {
  line-height: 1.65;
}

.ndgbr-privacy-section ul {
  margin: 0;
  padding-left: 18px;
}

.ndgbr-privacy-link {
  color: var(--color-primary);
  font-weight: 800;
  border-bottom: 1px solid rgba(0, 240, 255, 0.35);
}

.ndgbr-legal-consents {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ndgbr-legal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 10px;
}

#ndgbr-cookie-banner .ndgbr-cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

html[data-theme="light"] #ndgbr-cookie-banner .ndgbr-cookie-inner,
[data-theme="light"] #ndgbr-cookie-banner .ndgbr-cookie-inner {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(248, 250, 252, 0.97);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14);
}

#ndgbr-cookie-banner .ndgbr-cookie-text {
  flex: 1;
  min-width: 240px;
}

#ndgbr-cookie-banner .ndgbr-cookie-title {
  font-weight: 800;
  letter-spacing: 0.2px;
  margin: 0 0 4px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.95);
}

html[data-theme="light"] #ndgbr-cookie-banner .ndgbr-cookie-title,
[data-theme="light"] #ndgbr-cookie-banner .ndgbr-cookie-title {
  color: rgba(15, 23, 42, 0.95);
}

#ndgbr-cookie-banner .ndgbr-cookie-desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  line-height: 1.4;
}

html[data-theme="light"] #ndgbr-cookie-banner .ndgbr-cookie-desc,
[data-theme="light"] #ndgbr-cookie-banner .ndgbr-cookie-desc {
  color: rgba(15, 23, 42, 0.72);
}

#ndgbr-cookie-banner .ndgbr-cookie-link {
  color: rgba(0, 240, 255, 0.95);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 240, 255, 0.35);
}

#ndgbr-cookie-banner .ndgbr-cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ndgbr-cookie-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.92);
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.ndgbr-cookie-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}

html[data-theme="light"] .ndgbr-cookie-btn,
[data-theme="light"] .ndgbr-cookie-btn {
  border-color: rgba(15, 23, 42, 0.14);
  background: rgba(15, 23, 42, 0.03);
  color: rgba(15, 23, 42, 0.92);
}

.ndgbr-cookie-btn.primary {
  border-color: rgba(0, 240, 255, 0.30);
  background: rgba(0, 240, 255, 0.10);
  color: rgba(0, 240, 255, 0.95);
}

.ndgbr-cookie-btn.danger {
  border-color: rgba(255, 107, 107, 0.32);
  background: rgba(255, 107, 107, 0.08);
  color: rgba(255, 160, 160, 0.95);
}

/* Modal */

#ndgbr-cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.55);
}

#ndgbr-cookie-modal-overlay.open {
  display: flex;
}

#ndgbr-cookie-modal {
  width: min(720px, 100%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 15, 0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  animation: ndgbrModalIn 160ms ease-out;
}

html[data-theme="light"] #ndgbr-cookie-modal,
[data-theme="light"] #ndgbr-cookie-modal {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(248, 250, 252, 0.98);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.16);
}

@keyframes ndgbrModalIn {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

#ndgbr-cookie-modal .ndgbr-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] #ndgbr-cookie-modal .ndgbr-modal-header,
[data-theme="light"] #ndgbr-cookie-modal .ndgbr-modal-header {
  border-bottom-color: rgba(15, 23, 42, 0.10);
}

.ndgbr-modal-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.95);
}

html[data-theme="light"] .ndgbr-modal-title,
[data-theme="light"] .ndgbr-modal-title {
  color: rgba(15, 23, 42, 0.95);
}

.ndgbr-modal-subtitle {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

html[data-theme="light"] .ndgbr-modal-subtitle,
[data-theme="light"] .ndgbr-modal-subtitle {
  color: rgba(15, 23, 42, 0.70);
}

.ndgbr-modal-close {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 900;
  cursor: pointer;
}

html[data-theme="light"] .ndgbr-modal-close,
[data-theme="light"] .ndgbr-modal-close {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.03);
  color: rgba(15, 23, 42, 0.85);
}

#ndgbr-cookie-modal .ndgbr-modal-body {
  padding: 12px 18px 6px;
}

.ndgbr-cookie-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

html[data-theme="light"] .ndgbr-cookie-row,
[data-theme="light"] .ndgbr-cookie-row {
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

.ndgbr-cookie-row:last-child {
  border-bottom: none;
}

.ndgbr-cookie-row h4 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.92);
}

html[data-theme="light"] .ndgbr-cookie-row h4,
[data-theme="light"] .ndgbr-cookie-row h4 {
  color: rgba(15, 23, 42, 0.92);
}

.ndgbr-cookie-row p {
  margin: 6px 0 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.68);
}

html[data-theme="light"] .ndgbr-cookie-row p,
[data-theme="light"] .ndgbr-cookie-row p {
  color: rgba(15, 23, 42, 0.70);
}

/* Switch */

.ndgbr-switch {
  position: relative;
  width: 46px;
  height: 26px;
  flex: 0 0 auto;
}

.ndgbr-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.ndgbr-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.10);
  transition: 0.18s;
  border-radius: 999px;
}

.ndgbr-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.86);
  transition: 0.18s;
  border-radius: 999px;
}

.ndgbr-switch input:checked + .ndgbr-slider {
  background: rgba(0, 240, 255, 0.18);
  border-color: rgba(0, 240, 255, 0.28);
}

.ndgbr-switch input:checked + .ndgbr-slider:before {
  transform: translate(20px, -50%);
  background: rgba(0, 240, 255, 0.95);
}

.ndgbr-switch input:disabled + .ndgbr-slider {
  opacity: 0.55;
  cursor: not-allowed;
}

#ndgbr-cookie-modal .ndgbr-modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] #ndgbr-cookie-modal .ndgbr-modal-footer,
[data-theme="light"] #ndgbr-cookie-modal .ndgbr-modal-footer {
  border-top-color: rgba(15, 23, 42, 0.10);
}

/* Responsive */

@media (max-width: 720px) {
  #ndgbr-cookie-banner .ndgbr-cookie-inner {
    flex-direction: column;
    align-items: stretch;
  }

  #ndgbr-cookie-banner .ndgbr-cookie-actions {
    justify-content: flex-start;
  }

  #ndgbr-cookie-modal .ndgbr-modal-footer {
    flex-direction: column;
  }

  .ndgbr-cookie-btn {
    width: 100%;
    justify-content: center;
  }

  .ndgbr-privacy-wrap {
    padding: 22px 14px 140px;
  }

  .ndgbr-privacy-card {
    padding: 14px;
    border-radius: 14px;
  }

  .ndgbr-privacy-title {
    font-size: 1.45rem;
  }

  .ndgbr-privacy-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ndgbr-legal-actions {
    justify-content: stretch;
  }
}
