/* MyLegalDocs AI v6 — hard layout repair for desktop, Safari and responsive widths */
html,body{width:100%;max-width:100%;overflow-x:hidden}
body .wrap{width:min(100%,1380px);max-width:1380px;margin:0 auto;padding-left:clamp(16px,2.6vw,36px);padding-right:clamp(16px,2.6vw,36px);overflow:clip}
main.us-home-v4{display:block!important;width:100%!important;max-width:none!important;min-width:0!important}
main.us-home-v4>*{width:100%!important;max-width:none!important;min-width:0!important;grid-column:1/-1!important}

/* The broken production view collapsed this section into the left column. */
.us-home-v4 .us-capabilities-v4,
.us-home-v4 .capabilities-section-v552{display:block!important;position:relative!important;width:100%!important;max-width:none!important;min-width:0!important;margin-left:0!important;margin-right:0!important;padding-left:0!important;padding-right:0!important;transform:none!important;overflow:visible!important;contain:none!important;content-visibility:visible!important}
.us-home-v4 .capabilities-shell-v552{display:block!important;width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;padding:clamp(30px,4.2vw,58px)!important;overflow:hidden!important;transform:none!important}
.us-home-v4 .capabilities-intro-v552{display:grid!important;width:100%!important;max-width:none!important;min-width:0!important;grid-template-columns:minmax(250px,.72fr) minmax(0,1.28fr)!important;gap:18px clamp(30px,4vw,64px)!important;align-items:end!important;margin:0 0 34px!important}
.us-home-v4 .capabilities-intro-v552>*{min-width:0!important;max-width:100%!important}
.us-home-v4 .capabilities-intro-v552 h2{font-size:clamp(2.25rem,4vw,3.75rem)!important;overflow-wrap:normal!important;word-break:normal!important;color:#fff!important;text-shadow:0 2px 24px rgba(0,0,0,.28)!important}
.us-home-v4 .capabilities-intro-v552 p{grid-column:2!important;max-width:720px!important;color:#c4d1e4!important;text-shadow:0 1px 12px rgba(0,0,0,.2)!important}
.us-home-v4 .capabilities-intro-v552 .section-kicker{color:#77e2ca!important}
.us-home-v4 .us-scope-grid-v4,
.us-home-v4 .capabilities-grid-v552{display:grid!important;width:100%!important;max-width:none!important;min-width:0!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-auto-flow:row!important;gap:16px!important;margin:0!important;align-items:stretch!important}
.us-home-v4 .us-scope-grid-v4>a,
.us-home-v4 .capabilities-grid-v552>a{display:grid!important;width:auto!important;max-width:none!important;min-width:0!important;min-height:190px!important;grid-template-columns:58px minmax(0,1fr) 32px!important;gap:16px!important;align-items:center!important;padding:24px 22px!important;transform:none;color:#fff!important}
.us-home-v4 .capability-copy-v552,
.us-home-v4 .capability-copy-v552 strong,
.us-home-v4 .capability-copy-v552>span{min-width:0!important;max-width:100%!important;overflow-wrap:break-word!important;word-break:normal!important;white-space:normal!important}
.us-home-v4 .capability-copy-v552 strong{font-size:1.06rem!important;line-height:1.28!important;color:#fff!important}
.us-home-v4 .capability-copy-v552>span{font-size:.76rem!important;line-height:1.58!important;color:#bdcbe0!important}

/* Other full-width modules must never inherit a two-column page track. */
.us-home-v4 .process-flow-v551,
.us-home-v4 .us-engine-v4,
.us-home-v4 .pricing-section-v552,
.us-home-v4 .us-mission-v4,
.us-home-v4 .metrics-strip-v51{width:100%!important;max-width:none!important;min-width:0!important;grid-column:1/-1!important;margin-left:0!important;margin-right:0!important}
.us-home-v4 .process-diagram-v551,
.us-home-v4 .pricing-grid-v552,
.us-home-v4 .engine-levels-v4{min-width:0!important}

/* Footer must remain legible on the dark production background. */
.site-footer-v553 .logo-cloud-copy-v56 b,
.site-footer-v553 .logo-cloud-copy-v56 b span,
.site-footer-v553 .logo-cloud-copy-v56 b em{color:#f5f8ff!important;-webkit-text-fill-color:currentColor!important;text-shadow:none!important}
.site-footer-v553 .logo-cloud-copy-v56 b span{color:#718cff!important}
.site-footer-v553 .logo-cloud-copy-v56 b em{color:#b7c4ff!important}
.site-footer-v553 .logo-cloud-copy-v56 small{color:#9fb1ca!important}
.site-footer-v553 .footer-brand-v553>p{color:#b7c5d9!important}
.site-footer-v553 .footer-group-v553 strong{color:#fff!important}
.site-footer-v553 .footer-group-v553 a{color:#d1dbea!important}

/* CSS fallback for inherited Polish footer links; the US language guard also removes them from the DOM. */
.site-footer-v553 a[href*="jak-dziala"],
.site-footer-v553 a[href*="probki"],
.site-footer-v553 a[href*="apelacja"],
.site-footer-v553 a[href*="skarga-na-referendarza"],
.site-footer-v553 a[href*="analiza-umowy"],
.site-footer-v553 a[href*="pisma-prawne"]{display:none!important}

@media(max-width:1180px){
 body .wrap{width:100%;max-width:100%}
 .us-home-v4 .us-scope-grid-v4,.us-home-v4 .capabilities-grid-v552{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .us-home-v4 .capabilities-intro-v552{grid-template-columns:1fr!important;gap:12px!important}
 .us-home-v4 .capabilities-intro-v552 p{grid-column:1!important;max-width:800px!important}
}
@media(max-width:720px){
 body .wrap{padding-left:14px;padding-right:14px}
 .us-home-v4 .capabilities-shell-v552{padding:27px 18px!important;border-radius:25px!important}
 .us-home-v4 .us-scope-grid-v4,.us-home-v4 .capabilities-grid-v552{grid-template-columns:1fr!important}
 .us-home-v4 .us-scope-grid-v4>a,.us-home-v4 .capabilities-grid-v552>a{min-height:0!important;grid-template-columns:52px minmax(0,1fr) 28px!important;padding:19px 16px!important}
 .us-home-v4 .capabilities-intro-v552 h2{font-size:2.25rem!important}
 .us-home-v4 .us-engine-v4{grid-template-columns:1fr!important;padding:34px 20px!important;gap:25px!important}
 .us-home-v4 .engine-levels-v4{grid-template-columns:1fr!important}
 .us-home-v4 .us-mission-v4{grid-template-columns:1fr!important;padding:31px 22px!important}
}
@supports(-webkit-touch-callout:none){
 .us-home-v4 .capabilities-section-v552,.us-home-v4 .capabilities-shell-v552,.us-home-v4 .capabilities-grid-v552{transform:translateZ(0);-webkit-transform:translateZ(0)}
 .us-home-v4 .capabilities-shell-v552:before{-webkit-mask-image:linear-gradient(135deg,#000,transparent 78%)}
}
