/* Legko cookie preferences: edge-to-edge bottom strip, only a top divider. */
.legal-footer{
  max-width:1100px;
  margin:28px auto;
  padding:16px 24px;
  border-top:1px solid #e5eaf4;
  font:14px/1.6 system-ui;
  color:#65718a;
}
.legal-footer nav{display:flex;flex-wrap:wrap;align-items:center;gap:12px 22px}
.legal-footer a,.legal-footer button{color:#315daa}
.legal-footer button{font:inherit;border:0;background:none;padding:0;text-decoration:underline;cursor:pointer}

.cookie-panel{
  position:fixed;
  z-index:1000;
  inset:auto 0 0;
  box-sizing:border-box;
  width:100%;
  min-width:0;
  max-width:none;
  max-height:80vh;
  max-height:80dvh;
  margin:0;
  padding:16px clamp(16px,4vw,64px) calc(16px + env(safe-area-inset-bottom,0px));
  background:#fff;
  color:#172238;
  border:0;
  border-top:1px solid #dfe6f3;
  border-radius:0;
  box-shadow:none;
  font:14px/1.5 system-ui;
  overflow-y:auto;
  overscroll-behavior:contain;
}
.cookie-panel[hidden]{display:none}
.cookie-panel h2{font-size:17px;line-height:1.35;margin:0 0 5px}
.cookie-panel p{margin:7px 0;max-width:100ch}
.cookie-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:12px}
.cookie-actions button{
  min-height:44px;
  padding:9px 18px;
  border:1px solid #cad7ef;
  border-radius:9px;
  background:#f5f8ff;
  color:#214a92;
  font:inherit;
  cursor:pointer;
}
.cookie-actions button:focus-visible,.legal-footer button:focus-visible{outline:3px solid #2967ed;outline-offset:3px}
.cookie-panel input{width:18px;height:18px;vertical-align:middle}
.cookie-panel a{color:#2563eb}
@media(max-width:600px){
  .cookie-panel{padding:14px 16px calc(14px + env(safe-area-inset-bottom,0px))}
  .cookie-actions{gap:8px}
  .cookie-actions button{flex:1 1 135px}
  .legal-footer{padding:16px}
}

.consented-metrics{max-width:100%;overflow:auto;margin:16px 0}
.consented-metrics table{width:100%;border-collapse:collapse}
.consented-metrics th,.consented-metrics td{text-align:left;padding:12px;border-bottom:1px solid #e5eaf4;overflow-wrap:anywhere}

/* Temporary public development version marker. Remove before the final release. */
.site-version{position:fixed;bottom:8px;right:12px;z-index:950;color:#87909c;background:rgba(255,255,255,.82);border-radius:5px;padding:2px 6px;font:500 10px/1.45 ui-monospace,SFMono-Regular,Consolas,monospace;pointer-events:none;user-select:none}
@media(max-width:600px){.site-version{right:6px;bottom:5px;font-size:9px}}
