/* ==========================================================================
   AI DLA KAŻDEGO - BANER ZGÓD COOKIES (Privacy-First, RODO / Prawo telekom.)
   Styl: Biel + Grafit + Antracyt + Emerald (spójny z RadarDomen Mission Control)
   ========================================================================== */

.aidk-cc {
  position: fixed;
  left: 18px;
  bottom: 18px;
  width: min(420px, calc(100vw - 24px));
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 24px 60px -12px rgba(15, 23, 42, 0.28), 0 4px 14px -4px rgba(15, 23, 42, 0.08);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: #0f172a;
  z-index: 9999;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.aidk-cc.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.aidk-cc-inner {
  padding: 16px 16px 14px;
}

.aidk-cc-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.aidk-cc-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #090d16 0%, #1e293b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.aidk-cc-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.aidk-cc-title small {
  display: block;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.66rem;
  font-weight: 400;
  color: #10b981;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2px;
}

.aidk-cc-text {
  font-size: 0.78rem;
  line-height: 1.55;
  color: #475569;
  margin: 0 0 12px;
}

.aidk-cc-text a {
  color: #0f172a;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.aidk-cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.aidk-cc-btn {
  flex: 1 1 auto;
  border-radius: 9999px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #0f172a;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.aidk-cc-btn:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  transform: translateY(-1px);
}

.aidk-cc-btn.primary {
  background: linear-gradient(135deg, #090d16 0%, #1e293b 100%);
  color: #ffffff;
  border-color: #0f172a;
}

.aidk-cc-btn.primary:hover {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.aidk-cc-btn.link {
  flex: 0 0 auto;
  border-color: transparent;
  background: transparent;
  color: #64748b;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 8px 8px;
}

.aidk-cc-btn.link:hover {
  color: #0f172a;
  background: transparent;
  transform: none;
}

/* Panel szczegółowych ustawień */
.aidk-cc-prefs {
  display: none;
  border-top: 1px dashed #e2e8f0;
  margin: 2px 0 12px;
  padding-top: 10px;
}

.aidk-cc.show-prefs .aidk-cc-prefs {
  display: block;
}

.aidk-cc-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  margin-bottom: 6px;
}

.aidk-cc-row strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
}

.aidk-cc-row span {
  display: block;
  font-size: 0.7rem;
  color: #64748b;
  line-height: 1.45;
  margin-top: 2px;
}

.aidk-cc-switch {
  position: relative;
  flex-shrink: 0;
  width: 38px;
  height: 22px;
  margin-top: 2px;
}

.aidk-cc-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.aidk-cc-slider {
  position: absolute;
  inset: 0;
  background: #cbd5e1;
  border-radius: 9999px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.aidk-cc-slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
  transition: transform 0.2s ease;
}

.aidk-cc-switch input:checked + .aidk-cc-slider {
  background: #10b981;
}

.aidk-cc-switch input:checked + .aidk-cc-slider::before {
  transform: translateX(16px);
}

.aidk-cc-switch input:disabled + .aidk-cc-slider {
  cursor: not-allowed;
  opacity: 0.65;
}

.aidk-cc-switch input:focus-visible + .aidk-cc-slider {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.aidk-cc-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.64rem;
  color: #94a3b8;
  letter-spacing: 0.03em;
}

.aidk-cc-foot .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

@media (max-width: 520px) {
  .aidk-cc {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
  }

  .aidk-cc-inner {
    padding: 14px 12px 12px;
  }

  .aidk-cc-btn {
    flex: 1 1 calc(50% - 6px);
  }

  .aidk-cc-btn.link {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aidk-cc {
    transition: none;
  }
}

/* ==========================================================================
   STRONA POLITYKI COOKIES (cookies.php)
   ========================================================================== */
.legal-wrap {
  position: relative;
  z-index: 2;
  width: 94%;
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 0 60px;
}

.legal-hero {
  margin-bottom: 18px;
}

.legal-tag {
  display: inline-block;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: #065f46;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 4px 10px;
  border-radius: 9999px;
}

.legal-hero h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  letter-spacing: -0.02em;
  margin: 10px 0 8px;
}

.legal-hero p {
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.65;
  max-width: 720px;
}

.legal-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.legal-pills span {
  font-size: 0.74rem;
  font-weight: 700;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 5px 11px;
  color: #334155;
}

.legal-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 12px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

.legal-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.legal-card p,
.legal-card li {
  font-size: 0.86rem;
  line-height: 1.65;
  color: #475569;
}

.legal-card p + p {
  margin-top: 8px;
}

.legal-card ul {
  margin: 8px 0 8px 20px;
}

.legal-card a {
  color: #0f172a;
  font-weight: 700;
}

.legal-card code {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.8rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  padding: 1px 6px;
  color: #0f172a;
}

.legal-table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  min-width: 620px;
}

.legal-table th {
  text-align: left;
  background: #f8fafc;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
}

.legal-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
  color: #334155;
  line-height: 1.5;
}

.legal-table tr:last-child td {
  border-bottom: none;
}

.legal-table .cat {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 9999px;
  white-space: nowrap;
}

.cat-need { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.cat-func { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

.legal-updated {
  text-align: center;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 18px;
}

@media (max-width: 640px) {
  .legal-wrap { padding: 18px 0 40px; }
  .legal-card { padding: 14px 14px; border-radius: 14px; }
}
