/* ==========================================================================
   Kaissen Legal Center — print / save-as-PDF stylesheet
   Linked with media="print"; also used as the base for the generated PDFs.
   ========================================================================== */

@page {
    size: A4;
    margin: 18mm 16mm 20mm;
}

html,
body.legal-page {
    background: #fff !important;
    color: #000 !important;
    font-size: 10.5pt;
    line-height: 1.55;
}

/* Everything that is navigation, chrome or interaction disappears.
   #mobile-nav* are injected at runtime by js/menu.js. */
#header,
#mobile-nav,
#mobile-nav-toggle,
#mobile-body-overly,
#kcc-banner,
#kcc-modal,
footer,
.lg-skip,
.lg-breadcrumb,
.lg-toolbar,
.lg-toc,
.lg-share,
.lg-top,
.lg-docfoot,
.lg-note {
    display: none !important;
}

.lg-main {
    padding: 0 !important;
}

.lg-wrap {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.lg-layout {
    display: block !important;
}

.lg-article {
    max-width: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    background: #fff !important;
}

/* --- Print masthead ------------------------------------------------------
   .lg-printhead is hidden on screen and only rendered for print. */
.lg-printhead {
    display: block !important;
    border-bottom: 2pt solid #c24e00;
    padding-bottom: 8pt;
    margin-bottom: 16pt;
}

.lg-printhead__brand {
    font-size: 9pt;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #146973;
    margin: 0 0 4pt;
}

.lg-printhead__url {
    font-size: 8.5pt;
    color: #444;
    margin: 4pt 0 0;
    word-break: break-all;
}

.lg-dochead {
    border-bottom: 0 !important;
    margin-bottom: 10pt !important;
    padding: 0 !important;
}

.lg-dochead h1 {
    font-size: 20pt;
    max-width: none;
    margin: 0 0 6pt;
    color: #000 !important;
}

.lg-meta {
    margin-bottom: 0;
    font-size: 9pt;
    color: #444;
}

.lg-meta__badge {
    background: none !important;
    color: #444 !important;
    padding: 0 !important;
    font-weight: 400;
}

.lg-meta__badge svg {
    display: none;
}

/* --- Prose ---------------------------------------------------------------- */
.lg-article h2 {
    font-size: 13pt;
    color: #000 !important;
    margin: 16pt 0 6pt;
    padding-top: 0;
    break-after: avoid;
    page-break-after: avoid;
}

.lg-article h3 {
    font-size: 11pt;
    color: #146973 !important;
    margin: 12pt 0 4pt;
    break-after: avoid;
    page-break-after: avoid;
}

.lg-article p,
.lg-article li {
    orphans: 3;
    widows: 3;
}

.lg-article ul,
.lg-article ol {
    break-inside: avoid-page;
}

.lg-article ul li::marker,
.lg-article ol li::marker {
    color: #000;
}

.lg-callout {
    background: #f4f4f4 !important;
    border: 1pt solid #ccc !important;
    padding: 10pt 12pt 1pt !important;
    break-inside: avoid;
}

.lg-article a {
    color: #000 !important;
    text-decoration: underline;
}

/* Reveal the destination of real links, but not of in-page anchors. */
.lg-article a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 8.5pt;
    color: #555;
    word-break: break-all;
}

.legal-page mark {
    background: none !important;
    color: inherit !important;
    font-weight: 600;
}

/* --- Print footer --------------------------------------------------------- */
.lg-printfoot {
    display: block !important;
    margin-top: 18pt;
    padding-top: 8pt;
    border-top: .5pt solid #999;
    font-size: 8.5pt;
    color: #555;
}

.lg-printfoot p {
    margin: 0 0 2pt;
}
