/* ============================================================
   LEGAL PAGES, COOKIE BANNER, PROP 65 CALLOUT
   char! Store | assets/css/legal.css
   ============================================================ */

/* --- Legal page typography --- */
.legal-page .inner { max-width: 820px; }
.legal-page .legal-meta {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.55;
  margin: 4px 0 32px;
}
.legal-page h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(18px, 2.2vw, 24px);
  letter-spacing: -0.01em;
  margin: 40px 0 12px;
}
.legal-page p.lead {
  font-size: 16px;
  line-height: 1.7;
  max-width: 74ch;
  margin-top: 14px;
}
.legal-page a { text-decoration: underline; }

/* --- Prop 65 detail-page callout --- */
.prop65-callout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-left: 4px solid #d9a406;
  background: #fffaf0;
  padding: 18px 20px;
  margin: 8px 0 32px;
}
.prop65-callout p { margin: 0; font-size: 15px; line-height: 1.6; }
.prop65-tri { font-size: 22px; line-height: 1; color: #b8860b; }

/* --- Prop 65 inline warning (footer + product pages) --- */
.prop65-warning {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.5px;
  line-height: 1.5;
  opacity: 0.75;
}
.prop65-warning .prop65-tri { font-size: 16px; }
.prop65-warning a { text-decoration: underline; }

/* Prop 65 notice lives in the right-hand .pdp column, under the specs.
   No border-top — the last spec row already provides the divider line. */
.pdp-prop65 { margin-top: 22px; }

/* --- Cookie consent banner --- */
.cookie-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 9000;
  background: #111;
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.35);
}
.cookie-consent[hidden] { display: none; }
.cc-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.cc-text { margin: 0; font-size: 13.5px; line-height: 1.5; flex: 1 1 320px; }
.cc-text a { color: #fff; text-decoration: underline; }
.cc-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.cc-btn {
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 9px 18px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.4);
  background: transparent;
  color: #fff;
  transition: background .18s, color .18s, border-color .18s;
}
.cc-accept { background: #fff; color: #111; border-color: #fff; }
/* Desktop-only negative (color-invert) hover */
@media (hover: hover) and (pointer: fine) {
  .cc-accept:hover  { background: transparent; color: #fff; border-color: #fff; }
  .cc-decline:hover { background: #fff; color: #111; border-color: #fff; }
}

/* --- Footer legal column tweaks --- */
.foot-legal-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 14px;
  font-size: 11.5px;
  line-height: 1.5;
  opacity: 0.6;
}
.foot-legal-note a { text-decoration: underline; }

/* Compact banner on phones so it doesn't dominate the first screen */
@media (max-width: 560px) {
  .cookie-consent { left: 10px; right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px)); border-radius: 8px; }
  .cc-inner { gap: 8px 12px; padding: 11px 13px; }
  .cc-text { font-size: 11.5px; line-height: 1.4; flex-basis: 100%; }
  .cc-actions { justify-content: flex-end; gap: 8px; }
  .cc-btn { padding: 7px 15px; font-size: 12px; }
}
