/* Nailit: cookie banner and footer privacy links (shared by every page; see js/consent.js).
   Uses the page's colour tokens where it has them, with fallbacks. */

.consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: grid;
  gap: 14px;
  padding: 18px max(20px, env(safe-area-inset-left), env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom));
  background: var(--bg, #fff);
  color: var(--ink, #1f2328);
  border-top: 1px solid var(--line, #e4ded5);
  box-shadow: 0 -4px 20px rgba(31, 35, 40, 0.1);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.consent[hidden] { display: none; }
.consent__text { margin: 0; color: inherit; }
.consent__text a { color: var(--accent, #9e3a26); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* Accept and Reject are the same size, weight and border so neither is pushed;
   Reject is the light one. */
.consent__btn {
  min-height: 48px;
  padding: 0 20px;
  border: 1.5px solid var(--ink, #1f2328);
  border-radius: 6px;
  background: var(--ink, #1f2328);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.consent__btn:hover { background: #000; border-color: #000; }
.consent__btn--light { background: var(--bg, #fff); color: var(--ink, #1f2328); }
.consent__btn--light:hover { background: var(--bg-soft, #f7f4ef); border-color: var(--ink, #1f2328); }

@media (min-width: 640px) {
  .consent {
    left: 16px;
    right: auto;
    bottom: 16px;
    max-width: 520px;
    padding: 20px 22px;
    border: 1px solid var(--line, #e4ded5);
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(31, 35, 40, 0.16);
  }
  .consent__actions { grid-template-columns: repeat(2, minmax(130px, max-content)); }
}

/* Footer: copyright, "Privacy & cookies" and "Cookie settings" in one row */
.legal-links { display: flex; flex-wrap: wrap; align-items: center; column-gap: 20px; margin: 0; }
.legal-links a,
.link-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.link-button { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.link-button[hidden] { display: none; }

@media print {
  .consent, .link-button { display: none !important; }
}
