/* ============================================================
   Legal pages styles
   ============================================================ */

.legal-page {
  padding: 120px 0 80px;
  min-height: 70vh;
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
  color: #d4d4d4;
  line-height: 1.8;
}

.legal-content h1 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.2;
}

.legal-org {
  font-size: 14px;
  color: #737373;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.legal-content h2 {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-top: 40px;
  margin-bottom: 16px;
}

.legal-content p {
  margin-bottom: 12px;
  font-size: 15px;
}

.legal-content ul {
  margin: 8px 0 16px 0;
  padding-left: 24px;
}

.legal-content ul li {
  font-size: 15px;
  margin-bottom: 6px;
}

.legal-content a {
  color: #3b82f6;
  text-decoration: none;
  transition: color 0.2s;
}

.legal-content a:hover {
  color: #60a5fa;
  text-decoration: underline;
}

.legal-cookie-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0 24px;
}

.legal-cookie-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
}

.legal-cookie-type {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.legal-cookie-desc {
  font-size: 14px;
  color: #a3a3a3;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .legal-page {
    padding: 100px 0 60px;
  }
  .legal-cookie-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* ============================================================
   Cookie Banner
   ============================================================ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #18181b;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 24px;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.4);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1;
  min-width: 280px;
  font-size: 14px;
  color: #a3a3a3;
  line-height: 1.6;
}

.cookie-banner-text a {
  color: #3b82f6;
  text-decoration: none;
}

.cookie-banner-text a:hover {
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.cookie-btn-accept {
  padding: 9px 20px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
  font-family: inherit;
}

.cookie-btn-accept:hover { opacity: 0.85; }

.cookie-btn-reject {
  padding: 9px 20px;
  background: transparent;
  color: #a3a3a3;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.cookie-btn-reject:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}

.cookie-btn-customize {
  padding: 9px 20px;
  background: transparent;
  color: #a3a3a3;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.cookie-btn-customize:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}

/* ============================================================
   Cookie Preferences Modal
   ============================================================ */

.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.cookie-modal-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

.cookie-modal {
  background: #18181b;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  transform: scale(0.95);
  transition: transform 0.25s;
}

.cookie-modal-overlay.visible .cookie-modal {
  transform: scale(1);
}

.cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.cookie-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.cookie-modal-close {
  background: none;
  border: none;
  color: #737373;
  cursor: pointer;
  padding: 4px;
  font-size: 20px;
  line-height: 1;
  transition: color 0.2s;
}

.cookie-modal-close:hover { color: #fff; }

.cookie-modal-desc {
  font-size: 14px;
  color: #a3a3a3;
  line-height: 1.6;
  margin-bottom: 24px;
}

.cookie-category {
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.cookie-category-name {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.cookie-category-desc {
  font-size: 13px;
  color: #737373;
  line-height: 1.5;
}

/* Toggle switch */
.cookie-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.2s;
}

.cookie-toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
  transform: translateX(20px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-always-active {
  font-size: 12px;
  color: #22c55e;
  font-weight: 500;
}

.cookie-modal-footer {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.cookie-modal-footer .cookie-btn-accept { flex: 1; text-align: center; }
.cookie-modal-footer .cookie-btn-reject { flex: 1; text-align: center; }

.cookie-btn-save {
  flex: 1;
  padding: 10px 20px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  text-align: center;
}

.cookie-btn-save:hover {
  background: rgba(255,255,255,0.1);
}

/* ============================================================
   Form legal checkbox
   ============================================================ */

.form-legal-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
}

.form-legal-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: #3b82f6;
  flex-shrink: 0;
  cursor: pointer;
}

.form-legal-check label {
  font-size: 13px;
  color: #a3a3a3;
  line-height: 1.5;
  cursor: pointer;
}

.form-legal-check label a {
  color: #3b82f6;
  text-decoration: none;
}

.form-legal-check label a:hover {
  text-decoration: underline;
}
