:root {
  --cc-accent: #0b5ed7;           
  --cc-accent-2: #0a58ca;
  --cc-text: #0f172a;             
  --cc-muted: #475569;           
  --cc-border: rgba(15, 23, 42, 0.10);
  --cc-surface: rgba(255, 255, 255, 0.88);
  --cc-surface-2: rgba(255, 255, 255, 0.72);
  --cc-shadow: 0 18px 60px rgba(2, 8, 23, 0.18);
  --cc-radius: 16px;
  --cc-radius-sm: 12px;
}

.cookie-consent-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 10000;

  max-width: 1120px;
  margin: 0 auto;

  background: var(--cc-surface);
  color: var(--cc-text);

  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);
  box-shadow: var(--cc-shadow);

  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;

  padding: 18px 18px;

  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  transform: translateY(0);
  opacity: 1;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.cookie-consent-banner.hidden {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.cookie-consent-content {
  flex: 1;
  min-width: 260px;
  max-width: 820px;
}

.cookie-consent-title {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 8px 0;
  letter-spacing: -0.2px;
  color: var(--cc-text);
}

.cookie-consent-text {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  color: var(--cc-muted);
}

.cookie-consent-text a {
  color: var(--cc-accent);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(11, 94, 215, 0.35);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.cookie-consent-text a:hover {
  color: var(--cc-accent-2);
  border-bottom-color: rgba(11, 94, 215, 0.8);
}

.cookie-consent-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.cookie-consent-btn {
  appearance: none;
  -webkit-appearance: none;

  padding: 11px 16px;
  border-radius: 999px;

  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.1px;

  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;

  font-family: inherit;
  white-space: nowrap;

  outline: none;
}

.cookie-consent-btn:active {
  transform: translateY(1px);
}

.cookie-consent-btn-accept {
  background: linear-gradient(180deg, var(--cc-accent) 0%, var(--cc-accent-2) 100%);
  color: #ffffff;
  border: 1px solid rgba(11, 94, 215, 0.35);
  box-shadow: 0 10px 26px rgba(11, 94, 215, 0.25);
}

.cookie-consent-btn-accept:hover {
  box-shadow: 0 14px 34px rgba(11, 94, 215, 0.32);
  transform: translateY(-1px);
}

.cookie-consent-btn-reject {
  background: rgba(15, 23, 42, 0.04);
  color: var(--cc-text);
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.cookie-consent-btn-reject:hover {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.18);
  transform: translateY(-1px);
}

.cookie-consent-btn-settings {
  background: transparent;
  color: var(--cc-muted);
  border: 1px solid rgba(15, 23, 42, 0.10);
}

.cookie-consent-btn-settings:hover {
  color: var(--cc-text);
  border-color: rgba(15, 23, 42, 0.18);
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}


.cookie-consent-settings {
  margin-top: 14px;
  padding: 14px;
  background: var(--cc-surface-2);
  border-radius: var(--cc-radius-sm);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.cookie-consent-settings.hidden {
  display: none;
}

.cookie-consent-setting-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.cookie-consent-setting-item:last-child {
  margin-bottom: 0;
}

.cookie-consent-checkbox {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--cc-accent);
}

.cookie-consent-setting-label {
  flex: 1;
  cursor: pointer;
}

.cookie-consent-setting-title {
  font-weight: 800;
  font-size: 14px;
  margin: 0 0 4px 0;
  color: var(--cc-text);
}

.cookie-consent-setting-desc {
  font-size: 13px;
  margin: 0;
  color: rgba(71, 85, 105, 0.95);
  line-height: 1.45;
}

.cookie-consent-btn-save {
  background: linear-gradient(180deg, var(--cc-accent) 0%, var(--cc-accent-2) 100%);
  color: #ffffff;
  border: 1px solid rgba(11, 94, 215, 0.35);
  margin-top: 12px;
  border-radius: 999px;
  padding: 11px 16px;
  box-shadow: 0 10px 26px rgba(11, 94, 215, 0.22);
}

.cookie-consent-btn-save:hover {
  box-shadow: 0 14px 34px rgba(11, 94, 215, 0.30);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .cookie-consent-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;

    padding: 16px;
    flex-direction: column;
    align-items: stretch;

    border-radius: 18px;
  }

  .cookie-consent-content {
    min-width: 100%;
    max-width: 100%;
  }

  .cookie-consent-buttons {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
  }

  .cookie-consent-btn {
    width: 100%;
    text-align: center;
    padding: 12px 16px;
  }

  .cookie-consent-title {
    font-size: 16px;
  }

  .cookie-consent-text {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .cookie-consent-banner {
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 14px;
  }
}

.privacy-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
}

.privacy-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.privacy-modal {
  background: #ffffff;
  border-radius: 12px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.95);
  transition: transform 0.3s ease;
  position: relative;
}

.privacy-modal-overlay.active .privacy-modal {
  transform: scale(1);
}

.privacy-modal-header {
  position: sticky;
  top: 0;
  background: #ffffff;
  padding: 24px 32px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  border-radius: 12px 12px 0 0;
}

.privacy-modal-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  color: #1a1a1a;
}

.privacy-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.privacy-modal-close:hover {
  background: #f5f5f5;
  color: #1a1a1a;
}

.privacy-modal-content {
  padding: 32px;
  color: #333;
  line-height: 1.8;
  font-size: 15px;
}

.privacy-modal-content h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 16px 0;
  color: #1a1a1a;
  padding-top: 8px;
  border-top: 2px solid #e0e0e0;
}

.privacy-modal-content h2:first-of-type {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

.privacy-modal-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 12px 0;
  color: #2d2d2d;
}

.privacy-modal-content p {
  margin: 0 0 16px 0;
}

.privacy-modal-content ul,
.privacy-modal-content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.privacy-modal-content li {
  margin: 8px 0;
}

.privacy-modal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

.privacy-modal-content table th,
.privacy-modal-content table td {
  padding: 12px;
  text-align: left;
  border: 1px solid #e0e0e0;
}

.privacy-modal-content table th {
  background: #f5f5f5;
  font-weight: 600;
  color: #1a1a1a;
}

.privacy-modal-content a {
  color: #2196F3;
  text-decoration: underline;
}

.privacy-modal-content a:hover {
  color: #1976D2;
}

.privacy-modal-tabs {
  display: flex;
  gap: 8px;
  padding: 0 32px;
  border-bottom: 1px solid #e0e0e0;
  background: #f9f9f9;
  border-radius: 12px 12px 0 0;
}

.privacy-modal-tab {
  padding: 16px 24px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: #666;
  transition: all 0.2s ease;
  margin-bottom: -1px;
}

.privacy-modal-tab:hover {
  color: #1a1a1a;
  background: rgba(0, 0, 0, 0.02);
}

.privacy-modal-tab.active {
  color: #2196F3;
  border-bottom-color: #2196F3;
  background: #ffffff;
}

.privacy-modal-tab-content {
  display: none;
}

.privacy-modal-tab-content.active {
  display: block;
}

@media (max-width: 768px) {
  .privacy-modal-overlay {
    padding: 10px;
  }

  .privacy-modal {
    max-height: 95vh;
    border-radius: 8px;
  }

  .privacy-modal-header {
    padding: 20px;
  }

  .privacy-modal-title {
    font-size: 20px;
  }

  .privacy-modal-content {
    padding: 24px 20px;
    font-size: 14px;
  }

  .privacy-modal-tabs {
    padding: 0 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .privacy-modal-tab {
    padding: 12px 16px;
    font-size: 14px;
    white-space: nowrap;
  }

  .privacy-modal-content table {
    font-size: 12px;
    display: block;
    overflow-x: auto;
  }

  .privacy-modal-content table th,
  .privacy-modal-content table td {
    padding: 8px;
  }
}
