/* Apenas os documentos legais abertos a partir do formulário Orçamento. */
.legal-popup {
  position:fixed;
  inset:0;
  width:min(660px,calc(100% - 32px));
  max-width:660px;
  height:min(730px,88dvh);
  max-height:88dvh;
  margin:auto;
  padding:0;
  overflow:hidden;
  display:none;
  flex-direction:column;
  background:linear-gradient(158deg,#222b36,#121921 62%,#0d131a);
  color:#eef3f8;
  border:1px solid #566373;
  border-radius:19px;
  box-shadow:0 36px 100px rgba(0,0,0,.78),inset 0 1px 0 rgba(255,255,255,.10);
  color-scheme:dark;
}
.legal-popup[open] { display:flex; }
.legal-popup::backdrop { background:rgba(3,6,10,.62);backdrop-filter:blur(3px); }
.legal-popup-head { flex:0 0 auto;display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:24px 27px 18px;border-bottom:1px solid rgba(219,231,242,.12); }
.legal-popup-head h2 { font-size:26px;line-height:1.15;letter-spacing:-.035em;margin:8px 0 0;font-weight:750; }
.legal-popup-content {flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:20px 27px 26px;scrollbar-color:#566373 transparent;scrollbar-width:thin;}
.legal-popup-content .legal-lead {font-size:14px;color:#c3cfda;line-height:1.7;margin:0 0 18px;}
.legal-popup-content section {padding:18px 0;border-top:1px solid rgba(225,235,245,.12);}
.legal-popup-content section h2 {font-size:17px;line-height:1.35;letter-spacing:-.01em;margin:0 0 9px;color:#f1f6fb;}
.legal-popup-content section p {font-size:13px;line-height:1.8;color:#bdc8d3;margin:0 0 11px;overflow-wrap:anywhere;}
.legal-popup-content section p:last-child { margin-bottom:0; }
.legal-popup-content a {color:#e8f2fa;text-underline-offset:3px;text-decoration:underline;text-decoration-color:rgba(235,244,250,.48);overflow-wrap:anywhere;}
.legal-popup-content a:hover {text-decoration-color:#fff;}
@media(max-width:590px){
 .legal-popup{width:calc(100% - 20px);height:min(710px,92dvh);max-height:92dvh;border-radius:15px;}
 .legal-popup-head{padding:19px 17px 15px;}
 .legal-popup-head h2{font-size:22px;}
 .legal-popup-content{padding:16px 18px 20px;}
 .legal-popup-content section{padding:15px 0;}
 .legal-popup-content section h2{font-size:16px;}
 .legal-popup-content section p{font-size:12.5px;}
}
