/* Zeno Life Plan — consent / privacy-notice styling (Website 2.2).
   Warm off-white surface, Zeno navy text, restrained gold accents, existing type.
   Desktop: a refined panel near the bottom, not covering the page.
   Mobile: a full-width bottom panel with comfortable margins; nothing overflows at 320px. */

.zc,
.zc *,
.zc *::before,
.zc *::after { box-sizing: border-box; }

.zc {
  --zc-paper: #f6f3ee;            /* warm off-white */
  --zc-ink:   #002255;            /* Zeno navy — headings + buttons */
  --zc-body:  #33405a;            /* body text, AA on the paper (~8:1) */
  --zc-gold:  #b8964f;            /* restrained accent (non-text / rule) */
  --zc-gold-ink: #8a6d2f;         /* accessible deep gold for small text */
  --zc-gold-soft: #f4ead7;        /* accent fill */
  --zc-line:  #e2d9c6;            /* warm hairline */
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
}

.zc[hidden],
.zc [hidden] { display: none !important; }

/* ---- Notice banner (non-modal: the page stays usable, no cookie wall) ---- */
.zc-banner {
  position: fixed;
  z-index: 2147483000;
  left: 50%;
  bottom: clamp(12px, 2.4vw, 28px);
  transform: translateX(-50%);
  width: min(720px, calc(100vw - 32px));
  background: var(--zc-paper);
  color: var(--zc-body);
  border: 1px solid var(--zc-line);
  border-top: 3px solid var(--zc-gold);
  border-radius: var(--r-lg, 20px);
  box-shadow: 0 30px 60px -24px rgba(0, 34, 85, .34), 0 2px 8px rgba(0, 34, 85, .10);
  padding: clamp(18px, 2.4vw, 26px) clamp(20px, 2.6vw, 30px);
}

@media (prefers-reduced-motion: no-preference) {
  .zc-banner { animation: zc-rise .32s ease both; }
  @keyframes zc-rise { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }
}

.zc-banner-in {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
}

.zc-banner-copy { min-width: 0; }

.zc-title {
  font-family: var(--font-display, Georgia, serif);
  color: var(--zc-ink);
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  line-height: 1.15;
  margin: 0 0 6px;
  font-weight: 600;
}

.zc-text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--zc-body);
}

.zc-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Buttons — both clearly readable; equal, non-deceptive prominence. */
.zc-btn {
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  padding: 13px 22px;
  border-radius: var(--r-pill, 999px);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
@media (prefers-reduced-motion: reduce) { .zc-btn { transition: none; } }

.zc-btn-primary { background: var(--zc-ink); color: #fff; border-color: var(--zc-ink); }
.zc-btn-primary:hover { background: #063; background: #002a6b; border-color: #002a6b; }

.zc-btn-ghost { background: transparent; color: var(--zc-ink); border-color: var(--zc-ink); }
.zc-btn-ghost:hover { background: rgba(0, 34, 85, .06); }

.zc-btn:focus-visible,
.zc-close:focus-visible,
.zc a:focus-visible {
  outline: 3px solid var(--zc-gold);
  outline-offset: 2px;
}

/* ---- Details panel (modal dialog) --------------------------------------- */
.zc-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  background: rgba(6, 25, 54, .55);
}
@media (prefers-reduced-motion: no-preference) {
  .zc-overlay { animation: zc-fade .2s ease both; }
  @keyframes zc-fade { from { opacity: 0; } to { opacity: 1; } }
}

.zc-panel {
  position: fixed;
  z-index: 2147483002;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(540px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--zc-paper);
  color: var(--zc-body);
  border: 1px solid var(--zc-line);
  border-radius: var(--r-lg, 20px);
  box-shadow: 0 40px 80px -28px rgba(0, 34, 85, .45);
  padding: clamp(22px, 3vw, 32px);
}
@media (prefers-reduced-motion: no-preference) {
  .zc-panel { animation: zc-pop .22s ease both; }
  @keyframes zc-pop { from { opacity: 0; transform: translate(-50%, -48%); } to { opacity: 1; transform: translate(-50%, -50%); } }
}

.zc-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}

.zc-panel-title {
  font-family: var(--font-display, Georgia, serif);
  color: var(--zc-ink);
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  line-height: 1.12;
  margin: 0;
  font-weight: 600;
}

.zc-close {
  flex-shrink: 0;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1.5px solid var(--zc-line);
  border-radius: var(--r-pill, 999px);
  color: var(--zc-ink);
  cursor: pointer;
  font-size: 20px; line-height: 1;
}
.zc-close:hover { background: rgba(0, 34, 85, .06); }

.zc-panel-desc {
  margin: 0 0 20px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--zc-body);
}

.zc-cat {
  border: 1px solid var(--zc-line);
  border-radius: var(--r-md, 14px);
  background: rgba(255, 255, 255, .55);
  padding: 18px 20px;
}

.zc-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.zc-cat-name {
  font-size: 1.0625rem;
  color: var(--zc-ink);
  margin: 0;
  font-weight: 600;
}

.zc-cat-state {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--zc-gold-ink);
  background: var(--zc-gold-soft);
  border: 1px solid #e7d6ad;
  padding: 5px 11px;
  border-radius: var(--r-pill, 999px);
  white-space: nowrap;
}

.zc-tech { list-style: none; margin: 0; padding: 0; }
.zc-tech-item { padding: 12px 0; border-top: 1px solid var(--zc-line); }
.zc-tech-item:first-child { border-top: 0; padding-top: 0; }
.zc-tech-name { margin: 0 0 2px; font-weight: 600; color: var(--zc-ink); font-size: 0.9375rem; }
.zc-tech-prov { margin: 0 0 2px; font-size: 0.8125rem; color: var(--zc-body); }
.zc-tech-purpose { margin: 0; font-size: 0.875rem; line-height: 1.5; color: var(--zc-body); }

.zc-panel-foot {
  margin: 18px 0 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--zc-body);
}
.zc-panel-foot a { color: var(--zc-ink); text-decoration: underline; text-underline-offset: 2px; }
.zc-panel-foot a:hover { color: var(--zc-gold-ink); }

.zc-panel-actions {
  margin-top: 22px;
  display: flex;
  justify-content: flex-end;
}

/* ---- Cookies-policy audit table -----------------------------------------
   Let the prose grid column shrink (min-width:0) so the wide 6-column table
   scrolls inside its own wrapper instead of forcing page-level overflow. */
.legal-layout .prose { min-width: 0; }
.prose .table-wrap { max-width: 100%; }
.prose .table-wrap table { margin: 0; min-width: 540px; }

/* ---- Footer "Cookie details" trigger (sits in the navy footer-bottom) --- */
.footer-cookie-link { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-cookie-link:hover,
.footer-cookie-link:focus-visible { color: #fff; }
.footer-cookie-link:focus-visible { outline: 3px solid var(--brand-gold, #b8964f); outline-offset: 2px; }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 640px) {
  .zc-banner {
    left: 12px; right: 12px; bottom: 12px;
    transform: none;
    width: auto;
    padding: 18px 18px 20px;
  }
  @media (prefers-reduced-motion: no-preference) {
    .zc-banner { animation: zc-rise-m .3s ease both; }
    @keyframes zc-rise-m { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
  }
  .zc-banner-in { flex-direction: column; align-items: stretch; gap: 16px; }
  .zc-actions { flex-direction: column-reverse; align-items: stretch; gap: 10px; }
  .zc-btn { width: 100%; text-align: center; padding: 14px 18px; }
  .zc-panel { padding: 22px 18px; }
  .zc-cat-head { flex-wrap: wrap; }
}

/* Very narrow phones (≤360/320): keep everything inside the viewport. */
@media (max-width: 360px) {
  .zc-title { font-size: 1.2rem; }
  .zc-text, .zc-btn { font-size: 0.9rem; }
  .zc-panel-title { font-size: 1.3rem; }
}
