/* Cookie consent banner, preferences dialog, footer policy links, and Privacy Policy page. */

.cc-banner[hidden],
.cc-modal[hidden] { display: none !important; }

/* ---------- Banner ---------- */
.cc-banner {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 10000;
  width: min(400px, calc(100vw - 32px));
  margin: 0;
  background: #0b1c36;
  color: #fff;
  border: 1px solid rgba(76, 201, 240, .4);
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .4);
  font-family: Inter, sans-serif;
  animation: ccRise .35s ease both;
}
@keyframes ccRise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.cc-banner-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 16px 18px;
}
.cc-text { flex: 1 1 auto; min-width: 0; }
.cc-title {
  margin: 0 0 4px;
  font: 800 16px/1.25 Montserrat, Inter, sans-serif;
  letter-spacing: -.2px;
  color: #fff;
}
.cc-text p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .84);
}
.cc-text a {
  color: #4cc9f0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cc-text .cc-note {
  margin-top: 8px;
  padding: 6px 10px;
  background: rgba(76, 201, 240, .12);
  border: 1px solid rgba(76, 201, 240, .35);
  border-radius: 8px;
  font-size: 12px;
  color: #fff;
}
.cc-text .cc-note[hidden] { display: none; }
.cc-banner:focus { outline: none; }
.cc-actions {
  display: flex;
  gap: 8px;
}
.cc-actions .cc-btn { flex: 1 1 0; }
.cc-actions [hidden] { display: none; }

/* ---------- Buttons (Accept and Reject carry equal visual weight) ---------- */
.cc-btn {
  min-height: 38px;
  padding: 0 14px;
  border: 2px solid transparent;
  border-radius: 9px;
  font: 700 13px/1 Inter, sans-serif;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.cc-btn-primary   { background: #4cc9f0; color: #0b1c36; border-color: #4cc9f0; }
.cc-btn-primary:hover { background: #7ad8f5; border-color: #7ad8f5; }
.cc-btn-secondary { background: #fff; color: #0b1c36; border-color: #fff; }
.cc-btn-secondary:hover { background: #e8f6fb; border-color: #e8f6fb; }
.cc-btn-ghost     { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.cc-btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

.cc-banner .cc-btn:focus-visible { outline: 3px solid #4cc9f0; outline-offset: 2px; }

/* ---------- Preferences dialog ---------- */
.cc-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-family: Inter, sans-serif;
}
.cc-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 15, 30, .68);
}
.cc-modal-panel {
  position: relative;
  width: min(640px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 28px;
  background: #fff;
  color: #0b1c36;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.cc-modal-panel:focus { outline: none; }
.cc-modal-title {
  margin: 0 0 10px;
  font: 800 24px/1.25 Montserrat, Inter, sans-serif;
  letter-spacing: -.5px;
}
.cc-modal-intro { margin: 0 0 14px; font-size: 14px; line-height: 1.65; color: #526b7a; }
.cc-modal-intro a { color: #1f6e91; text-decoration: underline; text-underline-offset: 3px; }
.cc-gpc-note {
  margin: 0 0 14px;
  padding: 10px 14px;
  background: #edf6fb;
  border: 1px solid #d4eaf3;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: #15364f;
}
.cc-pref {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid #d9e8ef;
}
.cc-pref h3 { margin: 0 0 4px; font: 700 16px/1.4 Inter, sans-serif; color: #0b1c36; }
.cc-pref p  { margin: 0; font-size: 14px; line-height: 1.55; color: #526b7a; }
.cc-always {
  flex: 0 0 auto;
  padding-top: 2px;
  font: 700 12px/1.4 Inter, sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #1f6e91;
  white-space: nowrap;
}

/* Switch */
.cc-switch { position: relative; flex: 0 0 auto; width: 52px; height: 30px; cursor: pointer; }
.cc-switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}
.cc-switch-track {
  position: absolute;
  inset: 0;
  background: #b9cbd5;
  border-radius: 999px;
  transition: background .2s ease;
}
.cc-switch-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
  transition: transform .2s ease;
}
.cc-switch input:checked + .cc-switch-track { background: #1f6e91; }
.cc-switch input:checked + .cc-switch-track::after { transform: translateX(22px); }
.cc-switch input:focus-visible + .cc-switch-track { outline: 3px solid #0b1c36; outline-offset: 2px; }
.cc-switch input:disabled { cursor: not-allowed; }
.cc-switch input:disabled + .cc-switch-track { opacity: .55; }

.cc-modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cc-modal .cc-btn-primary { background: #0b1c36; color: #fff; border-color: #0b1c36; }
.cc-modal .cc-btn-primary:hover { background: #15355e; border-color: #15355e; }
.cc-modal .cc-btn-secondary { background: #fff; color: #0b1c36; border-color: #0b1c36; }
.cc-modal .cc-btn-secondary:hover { background: #edf6fb; }
.cc-modal .cc-btn:focus-visible,
.cc-modal a:focus-visible { outline: 3px solid #1f6e91; outline-offset: 2px; }

/* ---------- Footer policy links ---------- */
.footer-legal a,
.footer-legal .cc-open-prefs {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-legal .cc-open-prefs {
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}
.footer-legal a:hover,
.footer-legal .cc-open-prefs:hover { color: #4cc9f0; }

/* ---------- Privacy Policy page ---------- */
.policy-main { background: #fff; padding: 56px 0 80px; color: #0b1c36; }
.policy-container { max-width: 820px; }
.policy-main h1 {
  margin: 0 0 8px;
  font: 800 clamp(32px, 4vw, 44px)/1.15 Montserrat, Inter, sans-serif;
  letter-spacing: -1px;
}
.policy-updated { margin: 0 0 28px; font-size: 14px; color: #526b7a; }
.policy-lead { font-size: 18px; line-height: 1.7; color: #15364f; }
.policy-main h2 {
  margin: 40px 0 12px;
  padding-top: 8px;
  font: 800 24px/1.3 Montserrat, Inter, sans-serif;
  letter-spacing: -.5px;
  scroll-margin-top: 100px;
}
.policy-main h3 { margin: 22px 0 8px; font: 700 17px/1.4 Inter, sans-serif; }
.policy-main p,
.policy-main li { font-size: 16px; line-height: 1.75; color: #334b5c; }
.policy-main p { margin: 0 0 14px; }
.policy-main ul { margin: 0 0 16px; padding-left: 22px; list-style: disc; }
.policy-main li { margin-bottom: 8px; }
.policy-main a { color: #1f6e91; text-decoration: underline; text-underline-offset: 3px; }
.policy-main a:hover { color: #0b1c36; }
.policy-main .cc-open-prefs {
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  color: #1f6e91;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.policy-main .cc-open-prefs:hover { color: #0b1c36; }
.policy-toc {
  margin: 0 0 8px;
  padding: 18px 22px;
  background: #edf6fb;
  border: 1px solid #d4eaf3;
  border-radius: 14px;
}
.policy-toc strong { display: block; margin-bottom: 8px; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: #15364f; }
.policy-toc ol { margin: 0; padding-left: 20px; }
.policy-toc li { margin-bottom: 4px; font-size: 15px; }
.policy-table-wrap { margin: 0 0 18px; overflow-x: auto; border: 1px solid #d9e8ef; border-radius: 14px; }
.policy-table { width: 100%; min-width: 620px; border-collapse: collapse; }
.policy-table th,
.policy-table td { padding: 14px 16px; text-align: left; vertical-align: top; font-size: 15px; line-height: 1.6; border-bottom: 1px solid #e2edf2; }
.policy-table th { background: #f5fafd; font-weight: 700; color: #0b1c36; }
.policy-table tr:last-child td { border-bottom: 0; }
.policy-note {
  margin: 0 0 16px;
  padding: 14px 18px;
  background: #f5fafd;
  border-left: 4px solid #1f6e91;
  border-radius: 0 10px 10px 0;
}
.policy-contact { font-style: normal; line-height: 1.8; color: #334b5c; }
.policy-company { margin: 0 0 6px; font-size: 18px; letter-spacing: .5px; color: #15364f; }
.policy-pending {
  margin: 0 0 16px;
  padding: 12px 16px;
  background: #fff8e1;
  border: 1px dashed #d9a400;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: #6b5200;
}
.policy-main .policy-pending strong { color: #6b5200; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .cc-banner { left: 8px; right: 8px; bottom: 8px; width: auto; max-height: calc(100vh - 16px); overflow: auto; }
  .cc-banner-inner { padding: 14px; gap: 10px; }
  .cc-actions { flex-wrap: wrap; }
  .cc-actions .cc-btn { flex: 1 1 0; padding: 0 10px; }
  .cc-modal-panel { padding: 22px 18px; }
  .cc-modal-actions { flex-direction: column; }
  .cc-modal-actions .cc-btn { width: 100%; }
  .footer-legal a,
  .footer-legal .cc-open-prefs { display: inline-block; padding: 10px 0; }
  .policy-main { padding: 36px 0 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .cc-banner { animation: none; }
  .cc-switch-track,
  .cc-switch-track::after,
  .cc-btn { transition: none; }
}
