/* ===== GDPR Consent Banner ===== */

.gdpr-banner {
   position: fixed;
   bottom: 0;
   left: 0;
   right: 0;
   z-index: 99999;
   padding: 1.5rem 2rem;
   background: #1a1d23;
   border-top: 1px solid #2a2d35;
   box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
   transform: translateY(100%);
   transition: transform 0.35s ease;
}

.gdpr-banner.gdpr-visible {
   transform: translateY(0);
}

body.light-mode .gdpr-banner {
   background: #fff;
   border-top: 1px solid #e2e8f0;
   box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
}

.gdpr-inner {
   max-width: 1100px;
   margin: 0 auto;
   display: flex;
   align-items: flex-start;
   gap: 2rem;
   flex-wrap: wrap;
}

/* Text block */
.gdpr-text {
   flex: 1 1 280px;
   min-width: 220px;
}

.gdpr-text h3 {
   font-size: 1rem;
   font-weight: 700;
   margin: 0 0 0.35rem;
   color: #f0f0f0;
}

body.light-mode .gdpr-text h3 {
   color: #1a1a2e;
}

.gdpr-text p {
   font-size: 0.85rem;
   line-height: 1.55;
   margin: 0;
   color: #a0a8b8;
}

body.light-mode .gdpr-text p {
   color: #64748b;
}

/* Toggle groups */
.gdpr-toggles {
   display: flex;
   gap: 1.25rem;
   flex-wrap: wrap;
   align-items: center;
}

.gdpr-toggle-group {
   display: flex;
   align-items: center;
   gap: 0.5rem;
}

.gdpr-toggle-group label {
   display: flex;
   align-items: center;
   gap: 0.5rem;
   cursor: pointer;
   user-select: none;
}

/* Custom toggle switch */
.gdpr-switch {
   position: relative;
   width: 40px;
   height: 22px;
   appearance: none;
   -webkit-appearance: none;
   background: #444;
   border-radius: 11px;
   cursor: pointer;
   transition: background 0.25s;
   outline: none;
   border: none;
   flex-shrink: 0;
}

.gdpr-switch:checked {
   background: #2563eb;
}

.gdpr-switch::before {
   content: '';
   position: absolute;
   width: 16px;
   height: 16px;
   border-radius: 50%;
   background: #fff;
   top: 3px;
   left: 3px;
   transition: transform 0.25s;
}

.gdpr-switch:checked::before {
   transform: translateX(18px);
}

.gdpr-switch:disabled {
   opacity: 0.6;
   cursor: default;
}

body.light-mode .gdpr-switch {
   background: #cbd5e1;
}

body.light-mode .gdpr-switch:checked {
   background: #2563eb;
}

.gdpr-toggle-label {
   font-size: 0.82rem;
   font-weight: 600;
   color: #d0d4dc;
}

body.light-mode .gdpr-toggle-label {
   color: #334155;
}

/* Action buttons */
.gdpr-actions {
   display: flex;
   gap: 0.5rem;
   align-items: center;
   flex-wrap: wrap;
}

.gdpr-btn {
   padding: 0.55rem 1.25rem;
   border: none;
   border-radius: 6px;
   font-size: 0.82rem;
   font-weight: 600;
   cursor: pointer;
   transition: opacity 0.2s, background 0.2s;
   white-space: nowrap;
   font-family: inherit;
}

.gdpr-btn:hover {
   opacity: 0.88;
}

.gdpr-btn-accept {
   background: #2563eb;
   color: #fff;
}

.gdpr-btn-save {
   background: #3b82f6;
   color: #fff;
}

.gdpr-btn-reject {
   background: transparent;
   border: 1px solid #555;
   color: #b0b8c8;
}

body.light-mode .gdpr-btn-reject {
   border-color: #d0d4dc;
   color: #475569;
}

/* Footer links */
.gdpr-links {
   width: 100%;
   display: flex;
   gap: 1.25rem;
   margin-top: 0.5rem;
}

.gdpr-links a {
   font-size: 0.75rem;
   color: #6b7280;
   text-decoration: underline;
   text-underline-offset: 2px;
}

body.light-mode .gdpr-links a {
   color: #64748b;
}

.gdpr-links a:hover {
   color: #3b82f6;
}

/* Floating settings button */
.gdpr-settings-btn {
   position: fixed;
   bottom: 20px;
   left: 20px;
   width: 44px;
   height: 44px;
   border-radius: 50%;
   background: #2563eb;
   color: #fff;
   border: none;
   box-shadow: 0 3px 12px rgba(37, 99, 235, 0.35);
   cursor: pointer;
   z-index: 9999;
   display: none;
   align-items: center;
   justify-content: center;
   font-size: 1.1rem;
   transition: transform 0.2s, box-shadow 0.2s;
}

.gdpr-settings-btn:hover {
   transform: scale(1.08);
   box-shadow: 0 4px 16px rgba(37, 99, 235, 0.5);
}

.gdpr-settings-btn.gdpr-visible {
   display: flex;
}

/* ===== Responsive ===== */

@media (max-width: 768px) {
   .gdpr-banner {
      padding: 1.25rem 1rem;
   }

   .gdpr-inner {
      flex-direction: column;
      gap: 1rem;
   }

   .gdpr-toggles {
      gap: 0.75rem;
   }

   .gdpr-actions {
      width: 100%;
   }

   .gdpr-btn {
      flex: 1;
      text-align: center;
   }
}
