/* MFSL Mobile Application Privacy Policy page */
html {
    scroll-behavior: smooth;
}

.privacy-policy-page {
    background: #f5f8fa;
    color: #263238;
}

.privacy-policy-page *,
.privacy-policy-page *::before,
.privacy-policy-page *::after {
    box-sizing: border-box;
}

.privacy-title {
    background: linear-gradient(135deg, #01294e 0%, #8d6246 80%, #5a2a05 100%);
    color: #fff;
    padding: 10px 6% 18px;
    position: relative;
    overflow: hidden;
}

.privacy-title::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    right: -90px;
    bottom: -190px;
    border: 45px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.privacy-title__inner {
    width: min(1180px, 100%);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.privacy-title__eyebrow {
    display: inline-block;
    margin-bottom: 9px;
    color: #e77b22;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.privacy-title h1 {
    max-width: 820px;
    margin: 0;
    color: #fff;
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.18;
}

.privacy-title p {
    max-width: 780px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.75;
}

.privacy-shell {
    display: grid;
    grid-template-columns: minmax(235px, 280px) minmax(0, 1fr);
    gap: 34px;
    width: min(1180px, calc(100% - 40px));
    margin: 46px auto 70px;
    align-items: start;
}

.privacy-sidebar {
    position: sticky;
    top: 24px;
}

.privacy-contents {
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e1e8ec;
    border-top: 4px solid #e6782f;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(7, 72, 97, 0.08);
    padding: 22px 18px 24px;
    scrollbar-width: thin;
    scrollbar-color: #b7c8cf transparent;
}

.privacy-contents h2 {
    margin: 0 0 14px;
    color: #074861;
    font-size: 1.08rem;
    font-weight: 600;
}

.privacy-contents ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.privacy-contents ol ol {
    margin: 5px 0 7px 12px;
    padding-left: 10px;
    border-left: 1px solid #e1e8ec;
}

.privacy-contents a {
    display: block;
    padding: 6px 9px;
    border-radius: 5px;
    color: #4f5e65;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.82rem;
    line-height: 1.35;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.privacy-contents a:hover,
.privacy-contents a.active {
    background: #eaf6fa;
    color: #0075a2;
    transform: translateX(2px);
}

.privacy-contents-toggle {
    display: none;
}

.privacy-document {
    min-width: 0;
    background: #fff;
    border: 1px solid #e1e8ec;
    border-radius: 10px;
    box-shadow: 0 12px 36px rgba(7, 72, 97, 0.08);
    padding: clamp(28px, 5vw, 58px);
}

.policy-summary {
    margin-bottom: 42px;
    border: 1px solid #dfe8ec;
    border-radius: 8px;
    overflow: hidden;
}

.policy-summary > h2 {
    margin: 0;
    padding: 15px 20px;
    background: #074861;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
}

.policy-summary dl,
.policy-summary dl div,
.definition-list {
    margin: 0;
}

.policy-summary dl div {
    display: grid;
    grid-template-columns: minmax(145px, 29%) 1fr;
    border-top: 1px solid #e6edef;
}

.policy-summary dl div:first-child {
    border-top: 0;
}

.policy-summary dt,
.policy-summary dd {
    margin: 0;
    padding: 13px 16px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
}

.policy-summary dt {
    background: #f1f6f8;
    color: #074861;
    font-weight: 700;
}

.policy-summary dd {
    color: #4b585e;
}

.policy-section,
.policy-subsection {
    scroll-margin-top: 24px;
}

.policy-section + .policy-section {
    margin-top: 38px;
    padding-top: 36px;
    border-top: 1px solid #e8edef;
}

.policy-section h2 {
    margin: 0 0 17px;
    color: #074861;
    font-size: clamp(1.3rem, 2.4vw, 1.65rem);
    font-weight: 600;
    line-height: 1.35;
}

.policy-section h2::after {
    content: '';
    display: block;
    width: 42px;
    height: 3px;
    margin-top: 9px;
    background: #e6782f;
    border-radius: 3px;
}

.policy-subsection {
    margin-top: 26px;
}

.policy-subsection h3 {
    margin: 0 0 10px;
    color: #0075a2;
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.4;
}

.policy-document p,
.policy-document li,
.definition-list dd,
.policy-contact address {
    color: #435159;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.97rem;
    line-height: 1.78;
}

/*
 * Keep all ordinary policy copy visually consistent with the Definitions text.
 * The extra page-level specificity prevents general paragraph rules in
 * styles.css from changing the colour, font weight, or line spacing.
 */
body.privacy-policy-page .privacy-document p,
body.privacy-policy-page .privacy-document li,
body.privacy-policy-page .privacy-document dd,
body.privacy-policy-page .privacy-document address {
    color: #435159;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.97rem;
    font-weight: 400;
    line-height: 1.78;
    letter-spacing: normal;
}

.policy-document p {
    margin: 0 0 15px;
}

.policy-document ul,
.policy-document ol {
    margin: 8px 0 18px;
    padding-left: 25px;
}

.policy-document li {
    margin-bottom: 7px;
    padding-left: 4px;
}

.policy-document li::marker {
    color: #e6782f;
    font-weight: 700;
}

.definition-list > div {
    margin-bottom: 12px;
}

.definition-list dt,
.definition-list dd {
    display: inline;
    margin: 0;
}

.definition-list dt {
    color: #074861;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.97rem;
    font-weight: 700;
}

.definition-list dt::after {
    content: ' ';
}

.policy-contact {
    padding: 26px;
    background: #eef7fa;
    border: 1px solid #d4e8ef !important;
    border-left: 4px solid #e6782f !important;
    border-radius: 8px;
}

.policy-contact address {
    font-style: normal;
    overflow-wrap: anywhere;
}

.policy-contact address strong {
    color: #074861;
}

.policy-contact a {
    color: #0075a2;
    font-weight: 600;
    text-decoration: none;
}

.policy-contact a:hover {
    color: #e6782f;
    text-decoration: underline;
}

@media (max-width: 900px) {
    .privacy-shell {
        display: block;
        width: min(760px, calc(100% - 30px));
        margin-top: 28px;
    }

    .privacy-sidebar {
        position: static;
        margin-bottom: 18px;
    }

    .privacy-contents-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 14px 17px;
        border: 0;
        border-radius: 7px;
        background: #074861;
        color: #fff;
        cursor: pointer;
        font-family: 'Poppins', sans-serif;
        font-size: 0.98rem;
        font-weight: 500;
    }

    .privacy-contents-toggle .fa-list {
        margin-right: 8px;
        color: #ff9b52;
    }

    .privacy-toggle-icon {
        transition: transform 0.25s ease;
    }

    .privacy-contents-toggle[aria-expanded='true'] .privacy-toggle-icon {
        transform: rotate(180deg);
    }

    .privacy-contents {
        display: none;
        max-height: 62vh;
        margin-top: 6px;
        border-top-width: 1px;
        border-radius: 7px;
    }

    .privacy-contents.is-open {
        display: block;
    }
}

@media (max-width: 700px) {
    .privacy-title {
        padding: 40px 20px 44px;
    }

    .privacy-title p {
        font-size: 0.92rem;
        line-height: 1.65;
    }

    .privacy-shell {
        width: min(100% - 22px, 760px);
        margin-bottom: 46px;
    }

    .privacy-document {
        border-radius: 8px;
        padding: 24px 18px 32px;
    }

    .policy-summary dl div {
        display: block;
    }

    .policy-summary dt,
    .policy-summary dd {
        display: block;
        padding: 10px 13px;
    }

    .policy-summary dd {
        padding-top: 8px;
    }

    .policy-section + .policy-section {
        margin-top: 30px;
        padding-top: 29px;
    }

    .policy-document p,
    .policy-document li,
    .definition-list dt,
    .definition-list dd,
    .policy-contact address {
        font-size: 0.92rem;
        line-height: 1.7;
    }

    body.privacy-policy-page .privacy-document p,
    body.privacy-policy-page .privacy-document li,
    body.privacy-policy-page .privacy-document dd,
    body.privacy-policy-page .privacy-document address {
        font-size: 0.92rem;
        line-height: 1.7;
    }

    .policy-contact {
        padding: 20px 16px;
    }
}

@media print {
    .sub-header,
    .privacy-title__eyebrow,
    .privacy-sidebar,
    #scrollTopBtn,
    .footer {
        display: none !important;
    }

    .privacy-policy-page,
    .privacy-document {
        background: #fff;
    }

    .privacy-title {
        padding: 0 0 24px;
        background: #fff;
        color: #074861;
    }

    .privacy-title h1,
    .privacy-title p {
        color: #074861;
    }

    .privacy-shell {
        display: block;
        width: 100%;
        margin: 0;
    }

    .privacy-document {
        border: 0;
        box-shadow: none;
        padding: 0;
    }

    .policy-section,
    .policy-subsection {
        break-inside: avoid;
    }
}
