/* ==========================================================
   LGPD / PRIVACIDADE / COOKIES
   ========================================================== */
:root{
  --privacy-bg:#ffffff;
  --privacy-panel:#ffffff;
  --privacy-border:#e2e8f0;
  --privacy-text:#172033;
  --privacy-muted:#64748b;
  --privacy-gold:#d4af37;
  --privacy-gold-hover:#e4c557;
  --privacy-focus:#2563eb;
}

.cookie-banner[hidden],
.cookie-modal[hidden]{display:none !important;}

/* Banner padrão de consentimento: faixa larga no rodapé */
.cookie-banner{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:99998;
  width:100%;
  max-width:none;
  transform:none;
  background:#fff;
  color:var(--privacy-text);
  border:0;
  border-top:1px solid #e5e7eb;
  border-radius:0;
  box-shadow:0 -10px 32px rgba(15,23,42,.10);
  padding:16px max(24px,calc((100vw - 1220px)/2));

  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-areas:
    "head actions"
    "copy actions";
  column-gap:32px;
  row-gap:4px;
  align-items:center;
}
.cookie-banner__head{grid-area:head;display:flex;align-items:center;gap:10px;margin:0;}

.cookie-banner__icon{
  width:34px;height:34px;flex:0 0 34px;border-radius:9px;
  display:grid;place-items:center;
  background:#fbf7e8;color:#9b7b11;
  border:1px solid #eadca8;
}
.cookie-banner h3{margin:0;font-size:.98rem;line-height:1.25;color:#172033;font-weight:750;}
.cookie-banner p{grid-area:copy;margin:0;color:#64748b;font-size:.82rem;line-height:1.45;max-width:720px;}
.cookie-banner p a{color:#334155;font-weight:650;text-decoration:underline;text-underline-offset:2px;}
.cookie-banner__actions{grid-area:actions;display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:nowrap;margin:0;}
.cookie-btn{
  min-height:38px;padding:8px 12px;border-radius:8px;border:1px solid #cbd5e1;
  background:#fff;color:#334155;font:inherit;font-size:.76rem;font-weight:700;cursor:pointer;
  transition:background .2s,border-color .2s,color .2s,transform .2s,box-shadow .2s;
}
.cookie-btn:hover{transform:translateY(-1px);border-color:#94a3b8;background:#f8fafc;}
.cookie-btn--primary{background:var(--privacy-gold);border-color:var(--privacy-gold);color:#111827;box-shadow:0 5px 14px rgba(212,175,55,.18);}
.cookie-btn--primary:hover{background:var(--privacy-gold-hover);border-color:var(--privacy-gold-hover);}
.cookie-banner #cookieConfigure{
  border-color:#cbd5e1;
  background:#fff;
  color:#475569;
  padding-left:8px;
  padding-right:8px;
  text-decoration:none;
}
.cookie-banner #cookieConfigure:hover{background:#f8fafc;border-color:#94a3b8;color:#172033;}
.cookie-btn:focus-visible,
.cookie-modal button:focus-visible,
.cookie-modal input:focus-visible{outline:3px solid rgba(37,99,235,.20);outline-offset:2px;}

.cookie-modal{
  position:fixed;inset:0;z-index:99999;
  display:grid;place-items:center;
  padding:20px;
  background:rgba(15,23,42,.46);
  backdrop-filter:blur(3px);
}
.cookie-modal__panel{
  width:min(620px,100%);
  max-height:min(720px,calc(100vh - 40px));
  overflow:auto;
  background:#fff;
  color:#172033;
  border:1px solid #e2e8f0;
  border-radius:18px;
  box-shadow:0 28px 90px rgba(15,23,42,.24);
}
.cookie-modal__header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:22px 22px 14px;}
.cookie-modal__header h2{margin:0 0 5px;font-size:1.22rem;color:#172033;}
.cookie-modal__header p{margin:0;color:#64748b;font-size:.85rem;line-height:1.5;}
.cookie-modal__close{
  width:38px;height:38px;flex:0 0 38px;border:1px solid #e2e8f0;border-radius:9px;
  background:#fff;color:#475569;cursor:pointer;font-size:1rem;
}
.cookie-modal__close:hover{background:#f8fafc;color:#172033;}
.cookie-modal__body{padding:6px 22px 20px;}
.cookie-category{
  padding:16px 0;
  border-top:1px solid #eef2f6;
  display:grid;grid-template-columns:1fr auto;gap:18px;align-items:start;
}
.cookie-category h3{margin:0 0 5px;color:#172033;font-size:.95rem;}
.cookie-category p{margin:0;color:#64748b;font-size:.81rem;line-height:1.55;}
.cookie-category__status{font-size:.74rem;font-weight:700;color:#3f7a51;white-space:nowrap;padding-top:2px;}
.cookie-switch{position:relative;width:48px;height:27px;display:inline-block;}
.cookie-switch input{position:absolute;opacity:0;width:1px;height:1px;}
.cookie-switch span{position:absolute;inset:0;background:#cbd5e1;border-radius:999px;cursor:pointer;transition:.2s;}
.cookie-switch span::after{content:"";position:absolute;width:21px;height:21px;left:3px;top:3px;background:#fff;border-radius:50%;box-shadow:0 1px 3px rgba(15,23,42,.18);transition:.2s;}
.cookie-switch input:checked + span{background:var(--privacy-gold);}
.cookie-switch input:checked + span::after{transform:translateX(21px);}
.cookie-switch input:focus-visible + span{outline:3px solid rgba(37,99,235,.20);outline-offset:2px;}
.cookie-modal__footer{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;padding:16px 22px 22px;border-top:1px solid #eef2f6;}
.cookie-modal__privacy-link{margin-right:auto;align-self:center;color:#475569;font-size:.8rem;text-decoration:underline;text-underline-offset:2px;}

/* Aviso junto ao formulário de contato */
.form-privacy-note{margin:12px 0 0;color:#64748b;font-size:.75rem;line-height:1.55;}
.form-privacy-note a{color:inherit;text-decoration:underline;text-underline-offset:2px;font-weight:600;}

/* Páginas legais */
.legal-page{background:#f6f8fb;padding:150px 0 80px;min-height:70vh;}
.legal-shell{max-width:930px;margin:0 auto;background:#fff;border:1px solid #e7ebf1;border-radius:18px;padding:48px;box-shadow:0 12px 40px rgba(15,23,42,.06);}
.legal-eyebrow{display:inline-flex;align-items:center;gap:8px;margin-bottom:12px;color:#9a7b12;font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;}
.legal-page h1{margin:0 0 12px;color:#0f172a;font-size:clamp(2rem,4vw,3rem);line-height:1.08;}
.legal-intro{margin:0 0 30px;color:#64748b;font-size:1rem;line-height:1.7;}
.legal-updated{display:inline-block;margin-bottom:32px;padding:7px 11px;border-radius:7px;background:#f5f1df;color:#765e0d;font-size:.76rem;font-weight:600;}
.legal-section{padding:24px 0;border-top:1px solid #eef1f5;}
.legal-section h2{margin:0 0 12px;color:#172033;font-size:1.22rem;}
.legal-section h3{margin:18px 0 8px;color:#253044;font-size:1rem;}
.legal-section p,.legal-section li{color:#526071;font-size:.94rem;line-height:1.75;}
.legal-section p{margin:0 0 10px;}
.legal-section ul{margin:8px 0 0;padding-left:20px;}
.legal-section a{color:#0f5eb8;text-decoration:underline;text-underline-offset:2px;}
.legal-contact-card{margin-top:14px;padding:18px;border:1px solid #e5e9ef;border-radius:12px;background:#f8fafc;}
.legal-contact-card strong{display:block;color:#172033;margin-bottom:6px;}
.legal-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px;}
.legal-actions .legal-cookie-button{border:1px solid #cbd5e1;background:#fff;color:#172033;border-radius:8px;padding:10px 14px;font:inherit;font-size:.82rem;font-weight:700;cursor:pointer;}

.footer-cookie-link{
  border:0;background:none;padding:0;color:inherit;font:inherit;cursor:pointer;text-align:left;
}
.footer-cookie-link:hover{text-decoration:underline;}

@media (max-width:700px){
  .cookie-banner{
    left:0;right:0;bottom:0;width:100%;max-width:none;transform:none;
    padding:14px 16px calc(14px + env(safe-area-inset-bottom));
    grid-template-columns:1fr;
    grid-template-areas:"head" "copy" "actions";
    row-gap:8px;
  }
  .cookie-banner__actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:4px;}
  .cookie-banner__actions .cookie-btn--primary{grid-column:1/-1;grid-row:1;}
  .cookie-btn{width:100%;}
  .cookie-modal{padding:12px;align-items:end;}
  .cookie-modal__panel{max-height:88vh;border-radius:16px 16px 8px 8px;}
  .cookie-modal__header,.cookie-modal__body,.cookie-modal__footer{padding-left:16px;padding-right:16px;}
  .cookie-category{gap:12px;}
  .legal-page{padding:120px 14px 50px;}
  .legal-shell{padding:28px 20px;border-radius:14px;}
}
