/* Applied only to links marked on an identified foreign HTML page. No bar positioning. */
footer a.wml-legal-link { white-space:normal; overflow-wrap:anywhere; max-width:100%; }
.waku-multilingual-draft.wml-legal-page .comp_list3 .left,
.waku-multilingual-draft.wml-legal-page .comp_list3 .right { overflow-wrap:anywhere; min-width:0; }
/* Observed theme cover is fixed at 220px despite a 178px title plus 75px padding. */
.wml-legal-document #cover2 { height:auto; min-height:220px; padding-bottom:40px; }
.wml-legal-document #cover2 h1.title { overflow-wrap:anywhere; }
.waku-multilingual-draft.wml-legal-page .table-scroll { max-width:100%; overflow-x:auto; }
/* PDF-derived legal text only; preserve all wording and ordered clauses. */
.wml-legal-document .wml-legal-page:has(> article),
.wml-legal-document .wml-legal-page:has(> .wml-document-title) { width:92%; max-width:1100px; margin:0 auto; overflow-wrap:anywhere; }
.wml-legal-document .wml-document-title { font-size:1.4em; font-weight:700; line-height:1.5; margin:1em 0; }
.wml-legal-document .wml-legal-page ol { list-style:decimal outside; padding-left:1.8em; }
.wml-legal-document .wml-legal-page ol > li { display:list-item; margin:.5em 0; }
.wml-legal-document .wml-legal-page h2,
.wml-legal-document .wml-legal-page h3 { margin-top:1.4em; margin-bottom:.5em; }
.wml-legal-document .wml-legal-page table { display:block; max-width:100%; overflow-x:auto; margin:1em 0; border-collapse:collapse; }
.wml-legal-document .wml-legal-page th,
.wml-legal-document .wml-legal-page td { min-width:6em; padding:.5em; border:1px solid #ddd; vertical-align:top; }

/* Legal document headers must not inherit the theme's site-header positioning. */
body.wml-legal-document .wml-legal-page article > header{position:static!important;display:block!important;width:auto!important;height:auto!important;padding:0!important;margin:0!important;z-index:auto!important;transform:none!important;background:none!important}
body.wml-legal-document .wml-legal-page article > header::before,
body.wml-legal-document .wml-legal-page article > header::after{display:none!important}
body.wml-legal-document #cover2{padding:75px 0 80px!important;min-height:240px}