/* ===================================================================
   Compliance module styles: day-of-week, legal links, cookie banner
   =================================================================== */

/* Day-of-week line under footer brand logo */
footer .footer-brand .fb-dayline {
  margin-top: 14px;
  font-family: var(--f-acc, 'Instrument Serif'), serif;
  font-style: italic;
  font-size: 1.02rem;
  color: var(--gold, #D2AB55);
  opacity: 0.85;
}

/* Legal row (privacy, cookie prefs, CASL) inside footer-bottom */
footer .footer-bottom { flex-wrap: wrap; }
footer .footer-bottom .fb-legal {
  flex-basis: 100%;
  margin-top: 14px;
  padding-top: 14px;
  box-shadow: inset 0 1px 0 var(--b-subtle, rgba(255,255,255,0.05));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--t3, #5C6370);
  line-height: 1.6;
}
footer .footer-bottom .fb-legal a,
footer .footer-bottom .fb-legal .fb-cookie-btn {
  color: var(--t2, #9BA1AE);
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease;
}
footer .footer-bottom .fb-legal a:hover,
footer .footer-bottom .fb-legal .fb-cookie-btn:hover { color: var(--gold, #D2AB55); }
footer .footer-bottom .fb-legal .fb-sep { color: var(--t3, #5C6370); opacity: 0.6; }
footer .footer-bottom .fb-legal .fb-casl { flex: 1 1 260px; min-width: 220px; font-size: 11px; }

/* ------------ Cookie banner ------------ */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: min(880px, calc(100vw - 32px));
  z-index: 9998;
  background: var(--bg-overlay, #14121B);
  box-shadow:
    0 0 0 1px var(--b-default, rgba(255,255,255,0.08)),
    0 20px 60px rgba(0,0,0,0.45);
  border-radius: 18px;
  animation: cb-in 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes cb-in {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.cookie-banner .cb-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 22px 26px;
  align-items: center;
}
.cookie-banner .cb-copy h4 {
  font-family: var(--f-head, 'Plus Jakarta Sans'), sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--t1, #F0F1F3);
  margin: 0 0 4px;
}
.cookie-banner .cb-copy p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--t2, #9BA1AE);
}
.cookie-banner .cb-copy a { color: var(--gold, #D2AB55); }
.cookie-banner .cb-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.cb-btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.cb-btn-ghost {
  background: transparent;
  color: var(--t2, #9BA1AE);
  box-shadow: inset 0 0 0 1px var(--b-default, rgba(255,255,255,0.08));
}
.cb-btn-ghost:hover {
  color: var(--t1, #F0F1F3);
  box-shadow: inset 0 0 0 1px var(--b-accent, rgba(138,92,246,0.2));
}
.cb-btn-primary {
  background: var(--gold, #D2AB55);
  color: #0a0a0a;
}
.cb-btn-primary:hover {
  background: var(--gold-bright, #E8C868);
  transform: translateY(-1px);
}

@media (max-width: 767px) {
  .cookie-banner .cb-inner {
    grid-template-columns: 1fr;
    padding: 18px 20px;
    gap: 16px;
  }
  .cookie-banner .cb-actions { justify-content: flex-end; }
}

/* ------------ Preferences modal ------------ */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: cm-fade 0.22s ease;
}
@keyframes cm-fade { from { opacity: 0; } to { opacity: 1; } }
.cookie-modal .cm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 5, 0.72);
  backdrop-filter: blur(4px);
}
.cookie-modal .cm-panel {
  position: relative;
  width: min(520px, 100%);
  background: var(--bg-overlay, #14121B);
  border-radius: 20px;
  box-shadow:
    0 0 0 1px var(--b-default, rgba(255,255,255,0.08)),
    0 30px 80px rgba(0,0,0,0.5);
  overflow: hidden;
}
.cookie-modal .cm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  box-shadow: inset 0 -1px 0 var(--b-subtle, rgba(255,255,255,0.05));
}
.cookie-modal .cm-head h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--t1, #F0F1F3);
  margin: 0;
}
.cookie-modal .cm-close {
  font-size: 1.6rem;
  line-height: 1;
  color: var(--t2, #9BA1AE);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0 4px;
}
.cookie-modal .cm-close:hover { color: var(--t1, #F0F1F3); }
.cookie-modal .cm-body { padding: 10px 26px 6px; }
.cookie-modal .cm-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  box-shadow: inset 0 -1px 0 var(--b-subtle, rgba(255,255,255,0.05));
}
.cookie-modal .cm-row:last-child { box-shadow: none; }
.cookie-modal .cm-row h4 {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--t1, #F0F1F3);
  margin: 0 0 3px;
}
.cookie-modal .cm-row p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--t2, #9BA1AE);
}
.cookie-modal .cm-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 26px 22px;
  box-shadow: inset 0 1px 0 var(--b-subtle, rgba(255,255,255,0.05));
}

.cm-switch {
  position: relative;
  width: 42px;
  height: 24px;
  display: inline-block;
  flex-shrink: 0;
}
.cm-switch input { opacity: 0; width: 0; height: 0; }
.cm-switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  transition: background 0.2s ease;
  cursor: pointer;
}
.cm-switch span::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #F0F1F3;
  transition: transform 0.22s ease;
}
.cm-switch input:checked + span { background: var(--gold, #D2AB55); }
.cm-switch input:checked + span::after { transform: translateX(18px); }
.cm-switch input:disabled + span { opacity: 0.5; cursor: not-allowed; }
.cm-switch input:disabled + span::after { background: #9BA1AE; }
