/* ============================================================
   WAGate.app — GDPR cookie-consent banner
   Uses the shared design tokens from styles.css so it looks
   consistent on the landing, auth, app and legal surfaces.
   Logical properties keep it correct in RTL (he/ar).
   ============================================================ */

.cc {
  position: fixed;
  inset-inline: 16px;
  bottom: 16px;
  z-index: 9999;
  max-width: 560px;
  margin-inline: auto;
  background: var(--surface, #fff);
  color: var(--text, #17191d);
  border: 1px solid var(--border-strong, #e0d7c6);
  border-radius: var(--r-lg, 17px);
  box-shadow: var(--sh-pop, 0 16px 50px -16px rgba(40, 30, 18, 0.28));
  padding: 18px 18px 16px;
  font-family: 'Lexend', 'Rubik', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.cc.show { opacity: 1; transform: none; }

.cc-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.cc-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted, #585d64);
  margin: 0 0 10px;
}
.cc-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-text, #0c8f55);
  text-decoration: underline;
  margin: 0 0 14px;
}
.cc-link:hover { text-decoration: none; }

.cc-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cc-btn {
  flex: 1 1 auto;
  min-width: 130px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 18px;
  border-radius: var(--r-full, 999px);
  border: 1px solid transparent;
  line-height: 1;
  transition: background 0.15s, border-color 0.15s, transform 0.12s;
}
.cc-btn:active { transform: translateY(1px); }
.cc-accept {
  background: var(--accent, #12b76a);
  color: var(--text-on-accent, #fff);
}
.cc-accept:hover { background: var(--accent-hover, #0fa861); }
.cc-reject {
  background: var(--surface, #fff);
  color: var(--text, #17191d);
  border-color: var(--border-strong, #e0d7c6);
}
.cc-reject:hover { background: var(--surface-2, #f6f1e7); }

.cc-btn:focus-visible {
  outline: 2px solid var(--accent, #12b76a);
  outline-offset: 2px;
}

@media (max-width: 520px) {
  .cc { inset-inline: 10px; bottom: 10px; padding: 16px 15px 14px; }
  .cc-btn { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cc { transition: opacity 0.2s ease; transform: none; }
  .cc.show { transform: none; }
}
