/* ===== Cookie Policy Section (Left-Bottom) ===== */
/* Fonts: project ke provided assets (root-relative paths) */
@font-face {
  font-family: "Arizona Flare";
  src: url("../fonts/arizona_flare_300_normal_headings_h1-h6.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Arizona Flare";
  src: url("../fonts/arizona_flare_300_italic_headings_h1-h6.woff2") format("woff2");
  font-weight: 300; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Helveesti";
  src: url("../fonts/helveesti_400_normal_body_ui.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Helveesti";
  src: url("../fonts/helveesti_700_normal_body_labels.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* Section-scoped tokens (NEW DYNAMIC palette only) */
.cookie-policy {
  --cp-bg: #F8F2E9;     /* light/neutral background */
  --cp-ink: #170B01;    /* primary dark/text */
  --cp-accent: #AE1B74; /* action/accent */
  --cp-soft: #ECBDFB;   /* subtle border/focus */
  --cp-warn: #FDF18B;   /* optional */
  --cp-radius: 14px;
  --cp-pad: 20px;
  --cp-gap: 12px;

  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 991;
  pointer-events: none; /* page clicks pass-through outside card */
}

/* Card */
.cookie-policy__card {
  pointer-events: auto;
  max-width: min(380px, 92vw);
  background: #BDCFFB;
  color: var(--cp-ink);
  border: 1px solid #BDCFFB;
  border-radius: 3px;
  padding: var(--cp-pad);
  box-sizing: border-box;
  transform: translateY(8px);
  opacity: 0;
  animation: cookie-policy-in 240ms ease-out forwards;
  z-index: 9999;
}
@keyframes cookie-policy-in { to { transform: translateY(0); opacity: 1; } }

/* Exit */
.cookie-policy--hide .cookie-policy__card {
  transform: translateY(8px);
  opacity: 0;
  transition: transform 200ms ease, opacity 200ms ease;
}

/* Title */
.cookie-policy__title {
  margin: 0 0 10px 0;
  font-family: "Arizona Flare", serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

/* Body */
.cookie-policy__text {
  margin: 0 0 10px 0;
  font-family: "Helveesti", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: 0.01em;
}
.cookie-policy__link { color: #1C1BAE; text-underline-offset: 2px; }
.cookie-policy__link:focus-visible { outline: 2px solid #1C1BAE; outline-offset: 2px; }

/* Actions */
.cookie-policy__actions { display: flex; align-items: center; gap: 8px; }
.cookie-policy__btn-accept {
  font-family: "Helveesti", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  font-weight: 400; font-size: 14px; line-height: 1;
  padding: 10px 16px; border-radius: 999px;
  background: #170B01; color: #F8F2E9;
  border: 1px solid #F8F2E9; cursor: pointer;
}
.cookie-policy__btn-accept:hover { background: #1C1BAE; color: #F8F2E9; transition: background-color 0.2s ease-in-out, transform 0.2s ease-out;}
.cookie-policy__btn-accept:focus-visible { outline: 2px solid var(--cp-soft); outline-offset: 2px; }

/* Small screens */
@media (max-width: 420px) {
  .cookie-policy { left: 12px; bottom: 12px; }
  .cookie-policy__card { padding: 14px; }
}
