/* YPI.AE Legal Documents frontend style. */
.ypi-legal-doc-shell,
.ypi-legal-doc-shell * {
    box-sizing: border-box;
}

.ypi-legal-doc-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 16px 64px;
    color: #111827;
    font-family: inherit;
}

.ypi-legal-doc-hero {
    background: linear-gradient(135deg, #f7fbfa 0%, #ffffff 100%);
    border: 1px solid #dbe7e4;
    border-radius: 14px;
    padding: 28px;
    margin: 0 0 18px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.04);
}

.ypi-legal-doc-kicker {
    display: block;
    color: #00796b;
    font-size: 11px;
    letter-spacing: .08em;
    line-height: 1.3;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.ypi-legal-doc-hero h1 {
    color: #0b1720;
    font-size: 32px;
    line-height: 1.2;
    margin: 0 0 8px;
}

.ypi-legal-doc-effective,
.ypi-legal-doc-updated {
    color: #4b5f59;
    font-size: 14px;
    margin: 0;
}

.ypi-legal-doc-updated {
    color: #6b7280;
    margin-top: 5px;
}

.ypi-legal-doc-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.ypi-legal-doc-sidebar,
.ypi-legal-doc-content {
    background: #ffffff;
    border: 1px solid #dbe7e4;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.04);
}

.ypi-legal-doc-sidebar {
    position: sticky;
    top: 90px;
    padding: 18px;
}

.ypi-legal-doc-nav strong {
    display: block;
    color: #0b1720;
    font-size: 13px;
    margin-bottom: 8px;
}

.ypi-legal-doc-nav a,
.ypi-legal-doc-download {
    display: block;
    border-bottom: 1px solid #edf3f1;
    color: #00796b;
    font-size: 13px;
    line-height: 1.45;
    padding: 9px 0;
    text-decoration: none;
}

.ypi-legal-doc-nav a:hover,
.ypi-legal-doc-download:hover {
    color: #005f56;
    text-decoration: underline;
}

.ypi-legal-doc-download {
    border: 1px solid #b8d8d1;
    border-radius: 8px;
    margin-top: 14px;
    padding: 10px 12px;
    text-align: center;
}

.ypi-legal-doc-content {
    overflow-wrap: anywhere;
    padding: 30px;
    font-size: 13px;
    line-height: 1.45;
}

.ypi-legal-doc-content .ypi-legal-doc-p,
.ypi-legal-doc-content p {
    margin: 0 0 8px;
}

.ypi-legal-doc-content h1,
.ypi-legal-doc-content h2,
.ypi-legal-doc-content h3,
.ypi-legal-doc-content h4 {
    color: #0b1720;
    font-weight: 700;
    line-height: 1.25;
}

.ypi-legal-doc-content h1 {
    font-size: 20px;
    margin: 0 0 12px;
}

.ypi-legal-doc-content h2,
.ypi-legal-doc-content .ypi-doc-style-heading1 {
    color: #164e73;
    font-size: 16px;
    line-height: 1.25;
    margin: 18px 0 7px;
}

.ypi-legal-doc-content h3,
.ypi-legal-doc-content .ypi-doc-style-heading2 {
    font-size: 14px;
    line-height: 1.3;
    margin: 14px 0 6px;
}

.ypi-legal-doc-content h4,
.ypi-legal-doc-content .ypi-doc-style-heading3 {
    font-size: 13px;
    line-height: 1.3;
    margin: 12px 0 6px;
}

/* Keep imported DOCX inline sizes from making legal headings too large. */
.ypi-legal-doc-content h1 span[style],
.ypi-legal-doc-content h2 span[style],
.ypi-legal-doc-content h3 span[style],
.ypi-legal-doc-content h4 span[style],
.ypi-legal-doc-content .ypi-doc-style-heading1 span[style],
.ypi-legal-doc-content .ypi-doc-style-heading2 span[style],
.ypi-legal-doc-content .ypi-doc-style-heading3 span[style] {
    color: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

.ypi-legal-doc-list {
    margin: 0 0 10px 0;
    padding-left: 20px;
}

.ypi-legal-doc-list li {
    margin-bottom: 5px;
}

.ypi-legal-doc-underline {
    text-decoration: underline;
}

.ypi-legal-doc-content a {
    color: #00796b;
    text-decoration: underline;
}

.ypi-legal-doc-table-wrap {
    margin: 18px 0;
    overflow-x: auto;
}

.ypi-legal-doc-table {
    border-collapse: collapse;
    font-size: 14px;
    min-width: 640px;
    width: 100%;
}

.ypi-legal-doc-table th,
.ypi-legal-doc-table td {
    border: 1px solid #dbe7e4;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.ypi-legal-doc-table th {
    background: #f7fbfa;
    font-weight: 700;
}

@media (max-width: 820px) {
    .ypi-legal-doc-shell {
        padding: 20px 12px 42px;
    }

    .ypi-legal-doc-layout {
        grid-template-columns: 1fr;
    }

    .ypi-legal-doc-sidebar {
        position: static;
    }

    .ypi-legal-doc-hero {
        padding: 22px;
    }

    .ypi-legal-doc-hero h1 {
        font-size: 25px;
    }

    .ypi-legal-doc-content {
        padding: 20px;
        font-size: 13px;
        line-height: 1.45;
    }

    .ypi-legal-doc-content h2,
    .ypi-legal-doc-content .ypi-doc-style-heading1 {
        font-size: 15px;
    }
}

@media print {
    .ypi-legal-doc-sidebar {
        display: none;
    }

    .ypi-legal-doc-layout {
        display: block;
    }

    .ypi-legal-doc-shell {
        max-width: none;
        padding: 0;
    }

    .ypi-legal-doc-hero,
    .ypi-legal-doc-content {
        border: 0;
        box-shadow: none;
    }
}


/* Site-wide legal footer injected by the publisher plugin. */
.ypi-ldp-site-legal-footer,
.ypi-ldp-site-legal-footer * {
    box-sizing: border-box;
}

.ypi-ldp-site-legal-footer {
    background: #f7fbfa;
    border-top: 1px solid #dbe7e4;
    color: #34443f;
    margin-top: 32px;
    padding: 18px 16px;
}

.ypi-ldp-site-legal-footer__inner {
    align-items: flex-start;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1180px;
}

.ypi-ldp-site-legal-footer strong {
    color: #0b1720;
    display: block;
    flex: 0 0 auto;
    font-size: 13px;
    line-height: 1.4;
}

.ypi-ldp-site-legal-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    justify-content: flex-end;
}

.ypi-ldp-site-legal-footer a {
    color: #00796b;
    font-size: 12px;
    line-height: 1.45;
    text-decoration: none;
}

.ypi-ldp-site-legal-footer a:hover {
    color: #005f56;
    text-decoration: underline;
}

@media (max-width: 820px) {
    .ypi-ldp-site-legal-footer {
        padding: 16px 12px;
    }

    .ypi-ldp-site-legal-footer__inner {
        display: block;
    }

    .ypi-ldp-site-legal-footer nav {
        justify-content: flex-start;
        margin-top: 10px;
    }

    .ypi-ldp-site-legal-footer a {
        flex: 1 1 44%;
    }
}

@media print {
    .ypi-ldp-site-legal-footer {
        display: none !important;
    }
}

/* v1.0.6: inject required legal links into the existing branded site footer instead of rendering a second footer. */
.ypi-ldp-footer-legal-inline,
.ypi-ldp-footer-legal-inline * {
    box-sizing: border-box;
}

.ypi-ldp-footer-legal-inline {
    clear: both;
    display: block;
    margin: 12px auto 0;
    max-width: 1180px;
    padding: 0 16px;
    width: 100%;
}

.ypi-ldp-footer-legal-inline nav {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    justify-content: center;
}

.ypi-ldp-footer-legal-inline a {
    color: inherit;
    font-size: 12px;
    line-height: 1.45;
    opacity: .96;
    text-decoration: none;
}

.ypi-ldp-footer-legal-inline a:hover {
    opacity: 1;
    text-decoration: underline;
}

footer .ypi-ldp-footer-legal-inline,
.site-footer .ypi-ldp-footer-legal-inline,
.footer .ypi-ldp-footer-legal-inline,
.footer-wrap .ypi-ldp-footer-legal-inline,
.houzez-footer .ypi-ldp-footer-legal-inline,
.ypi-footer .ypi-ldp-footer-legal-inline {
    color: rgba(255,255,255,.95);
}

@media (max-width: 820px) {
    .ypi-ldp-footer-legal-inline {
        padding: 8px 14px 0;
    }

    .ypi-ldp-footer-legal-inline nav {
        justify-content: flex-start;
    }

    .ypi-ldp-footer-legal-inline a {
        flex: 1 1 46%;
        font-size: 12px;
    }
}

/* v1.0.7: footer injection disabled. Desktop Experience owns the site-wide green footer. */
.ypi-ldp-site-legal-footer,
.ypi-ldp-footer-legal-inline {
    display: none !important;
}
