/* Cookie banner styles for the standalone home page (home.uk.html).
   Copied from the cookie section of styles.css so the home page does not need the full stylesheet. */
:root{--ease-out:cubic-bezier(0.16,1,0.3,1);--accent:#1f63e8;--accent-ink:#1a52c0;--text:#1d1d1f;--text-2:#5f5f64;--text-3:#6f6f74;--hairline:rgba(0,0,0,0.07);--hairline-2:rgba(0,0,0,0.045);--surface:#ffffff;--shadow-1:0 1px 2px rgba(17,17,19,0.04),0 6px 16px -10px rgba(17,17,19,0.10);--shadow-3:0 10px 30px -12px rgba(17,17,19,0.12),0 44px 90px -40px rgba(17,17,19,0.22);--r-xl:28px;--r-lg:22px}
.cc,.cc-modal{font-family:"Manrope","Inter",system-ui,sans-serif}
/* ============================================================
   Cookie consent — banner + preferences modal
   Sits above everything (nav is 40, boot 60, skip-link 100).
   ============================================================ */
.cc {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  width: min(1040px, calc(100vw - 32px));
  transform: translate(-50%, 24px);
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 40px);
  padding: clamp(18px, 1.9vw, 26px) clamp(20px, 2.2vw, 30px);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.42s var(--ease-out), transform 0.42s var(--ease-out),
    visibility 0.42s;
}
.cc.is-in { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.cc__body { flex: 1 1 auto; min-width: 0; }
.cc__title {
  margin: 0 0 6px;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.018em;
  color: var(--text);
}
.cc__text { margin: 0; font-size: 13.75px; line-height: 1.55; color: var(--text-2); }
.cc__link { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.cc__link:hover { color: var(--accent); }

.cc__actions {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.cc__btn {
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 100px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: transform 0.35s var(--ease-out), background 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.cc__btn:hover { transform: translateY(-2px); }
.cc__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cc__btn--primary { background: var(--accent); color: #fff; }
.cc__btn--primary:hover { background: var(--accent-ink); }
/* Refusing must be exactly as easy as agreeing — same size, same padding,
   one click, and a solid fill so neither button is visually louder. */
.cc__btn--ghost {
  background: rgba(17,17,19,0.07);
  color: var(--text);
}
.cc__btn--ghost:hover { background: rgba(17,17,19,0.12); }
.cc__btn--quiet {
  padding: 12px 10px;
  background: none;
  color: var(--text-3);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cc__btn--quiet:hover { color: var(--text); }

/* ---- preferences modal ---- */
.cc-modal {
  position: fixed;
  z-index: 210;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10,10,11,0.42);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.28s var(--ease-out);
}
.cc-modal.is-in { opacity: 1; }
.cc-modal__card {
  width: min(560px, 100%);
  max-height: min(86vh, 760px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-3);
  transform: translateY(14px) scale(0.985);
  transition: transform 0.34s var(--ease-out);
}
.cc-modal.is-in .cc-modal__card { transform: none; }
.cc-modal__title {
  margin: 0 0 10px;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}
.cc-modal__intro { margin: 0 0 22px; font-size: 14px; line-height: 1.6; color: var(--text-2); }
.cc-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline-2);
}
.cc-modal__actions .cc__btn { flex: 1 1 auto; }

.cc-row { padding: 16px 0; border-bottom: 1px solid var(--hairline-2); }
.cc-row:last-of-type { border-bottom: none; }
.cc-row__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 5px;
}
.cc-row__label {
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
}
.cc-row__always {
  flex: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--accent-ink);
}
.cc-row__text { margin: 0; max-width: 62ch; font-size: 13.5px; line-height: 1.55; color: var(--text-2); }

/* Switch */
.cc-switch { flex: none; display: inline-flex; cursor: pointer; }
.cc-switch input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  margin: 0;
}
.cc-switch__track {
  position: relative;
  display: block;
  width: 46px; height: 27px;
  border-radius: 100px;
  background: rgba(17,17,19,0.14);
  transition: background 0.3s var(--ease-out);
}
.cc-switch__track::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 21px; height: 21px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.24);
  transition: transform 0.3s var(--ease-out);
}
.cc-switch input:checked + .cc-switch__track { background: var(--accent); }
.cc-switch input:checked + .cc-switch__track::after { transform: translateX(19px); }
.cc-switch input:focus-visible + .cc-switch__track { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Footer "cookie settings" trigger — a button that reads as a footer link */
.footer__legal-btn {
  font: inherit;
  font-size: 14.5px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: rgba(255,255,255,0.72);
  transition: color 0.3s var(--ease-out);
}
.footer__legal-btn:hover { color: #fff; }

@media (max-width: 900px) {
  .cc { flex-direction: column; align-items: stretch; gap: 16px; }
  .cc__actions { width: 100%; }
  .cc__actions .cc__btn--ghost,
  .cc__actions .cc__btn--primary { flex: 1 1 0; }
  .cc__btn--quiet { flex-basis: 100%; }
}
@media (max-width: 560px) {
  .cc { width: calc(100vw - 20px); padding: 18px 16px; border-radius: 18px; }
  .cc__actions { flex-direction: column; align-items: stretch; }
  .cc-modal__actions { flex-direction: column; }
  .cc-modal__actions .cc__btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .cc, .cc-modal, .cc-modal__card, .cc__btn,
  .cc-switch__track, .cc-switch__track::after { transition: none; }
  .cc { transform: translate(-50%, 0); }
}

/* Inline "cookie settings" trigger inside legal prose — reads as a link */
.legal__inline-btn {
  font: inherit;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal__inline-btn:hover { color: var(--accent); }

/* ============================================================
