/* =========================================================
   APEX AGED CARE SERVICES — PRIVACY POLICY
   Homepage-Matched Navy + Gold
========================================================= */

.apex-policy-page {
    --apex-navy: #073461;
    --apex-navy-dark: #05294d;

    --apex-gold: #b99252;
    --apex-gold-dark: #98733f;
    --apex-gold-light: #d8bf91;

    --apex-white: #ffffff;
    --apex-cream: #f8f4ec;
    --apex-cream-light: #fcfaf6;

    --apex-text: #253746;
    --apex-text-light: #64717a;

    --apex-border: #e8e2d8;
}

.apex-policy-page,
.apex-policy-page * {
    box-sizing: border-box;
}

.apex-policy-page {
    position: relative;

    left: 50%;

    width: 100vw;
    max-width: 100vw;

    margin-left: -50vw;

    overflow: hidden;

    color: var(--apex-text);

    background: var(--apex-white);

    font-family: Arial, sans-serif;
}

.apex-policy-page a {
    text-decoration: none;
}

.app-container {
    width: 100%;
    max-width: 1120px;

    margin: 0 auto;

    padding-left: 24px;
    padding-right: 24px;
}


/* =========================================
   HERO
========================================= */

/* =========================================
   IMAGE HERO — ABOUT PAGE MATCHED
========================================= */

.app-hero {
    position: relative;

    min-height: 320px;

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--apex-navy-dark);
}

.app-hero-bg {
    position: absolute;
    inset: 0;
}

.app-hero-bg img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: 35% 38%;
}

.app-hero-overlay {
    position: absolute;
    inset: 0;

    z-index: 1;

    background:
        linear-gradient(
            90deg,
            rgba(5, 41, 77, .88) 0%,
            rgba(7, 52, 97, .76) 50%,
            rgba(7, 52, 97, .62) 100%
        );
}

.app-hero-content {
    position: relative;

    z-index: 2;

    padding: 55px 20px;

    text-align: center;

    color: #ffffff;
}

.app-hero h1 {
    margin: 0 0 14px;

    color: #ffffff;

    font-size: clamp(42px, 4vw, 58px);

    font-weight: 800;

    line-height: 1.07;
}


/* Breadcrumb */

.app-breadcrumb {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    color: rgba(255, 255, 255, .94);

    font-size: 13px;

    font-weight: 700;
}

.app-breadcrumb a {
    color: #ffffff;
}

.app-breadcrumb a:hover {
    color: var(--apex-gold-light);
}

.app-breadcrumb > span[aria-hidden="true"] {
    color: var(--apex-gold);

    font-size: 20px;
}


/* Tablet */

@media (max-width: 900px) {

    .app-hero {
        min-height: 290px;
    }

    .app-hero-bg img {
        object-position: 42% 38%;
    }

}


/* Mobile */

@media (max-width: 650px) {

    .app-hero {
        min-height: 240px;
    }

    .app-hero-bg img {
        object-position: 50% 38%;
    }

    .app-hero-content {
        padding: 45px 15px;
    }

    .app-hero h1 {
        font-size: 36px;
    }

}

/* =========================================
   POLICY SECTION
========================================= */

.app-policy-section {
    padding: 62px 0 75px;
    background: var(--apex-cream-light);
}

.app-policy-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 45px;
    align-items: start;
}


/* =========================================
   MAIN POLICY CONTENT
========================================= */

.app-policy-content {
    min-width: 0;
    padding: 38px 40px;
    border: 1px solid var(--apex-border);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 14px 38px rgba(7, 52, 97, .05);
}

.app-policy-content section {
    padding-top: 6px;
}

.app-policy-content section + section {
    margin-top: 38px;
    padding-top: 38px;
    border-top: 1px solid var(--apex-border);
}

.app-policy-content h2 {
    margin: 0 0 14px;
    color: var(--apex-navy);
    font-size: 27px;
    font-weight: 800;
    line-height: 1.25;
}

.app-policy-content h3 {
    margin-top: 0;
    color: var(--apex-navy);
}

.app-policy-content p {
    margin: 0 0 17px;
    color: var(--apex-text-light);
    font-size: 15px;
    line-height: 1.78;
}

.app-policy-content ul,
.app-policy-content ol {
    margin: 6px 0 20px;
    padding-left: 23px;
}

.app-policy-content li {
    margin-bottom: 8px;
    color: var(--apex-text-light);
    font-size: 15px;
    line-height: 1.65;
}

.app-policy-content li::marker {
    color: var(--apex-gold);
}


/* =========================================
   POLICY INTRO
========================================= */

.app-policy-intro {
    padding-bottom: 34px;
    border-bottom: 1px solid var(--apex-border);
}

.app-policy-intro h2 {
    font-size: clamp(29px, 3vw, 38px);
}

.app-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 9px;
    color: var(--apex-gold-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.1px;
}

.app-eyebrow::before {
    content: "";
    width: 26px;
    height: 1px;
    background: var(--apex-gold);
}

.app-last-updated {
    width: fit-content;
    margin-top: 22px;
    padding: 9px 14px;
    border-radius: 8px;
    color: var(--apex-navy);
    background: var(--apex-cream);
    font-size: 12px;
}


/* =========================================
   INFORMATION NOTE
========================================= */

.app-note {
    margin-top: 24px;
    padding: 20px 22px;
    border-left: 4px solid var(--apex-gold);
    border-radius: 0 12px 12px 0;
    background: var(--apex-cream);
}

.app-note strong {
    display: block;
    margin-bottom: 6px;
    color: var(--apex-navy);
    font-size: 14px;
}

.app-note p {
    margin: 0;
    font-size: 14px;
}


/* =========================================
   CONTACT BOX
========================================= */

.app-contact-box {
    margin-top: 25px;

    padding: 23px;

    border-radius: 14px;

    color: #ffffff;

    background:
        var(--apex-navy-dark);
}

.app-contact-box h3 {
    margin:
        0 0 17px;

    color: #ffffff;

    font-size: 20px;
}

.app-contact-row {
    padding:
        10px 0;

    display: grid;

    grid-template-columns:
        90px 1fr;

    gap: 15px;

    border-top:
        1px solid
        rgba(255,255,255,.12);

    color:
        rgba(255,255,255,.82);

    font-size: 13px;

    line-height: 1.55;
}

.app-contact-row:first-of-type {
    border-top: 0;
}

.app-contact-row strong {
    color:
        var(--apex-gold-light);
}

.app-contact-row a {
    color: #ffffff;
}


/* =========================================
   SIDEBAR
========================================= */

.app-policy-sidebar {
    position: sticky;

    top: 105px;

    display: grid;

    gap: 18px;
}

.app-sidebar-card {
    padding: 22px;

    border:
        1px solid
        var(--apex-border);

    border-radius: 15px;

    background: #ffffff;

    box-shadow:
        0 10px 28px
        rgba(7,52,97,.04);
}

.app-sidebar-label {
    color:
        var(--apex-gold-dark);

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 1px;
}

.app-sidebar-card h2 {
    margin:
        5px 0 14px;

    color:
        var(--apex-navy);

    font-size: 21px;
}

.app-sidebar-card nav {
    display: grid;
}

.app-sidebar-card nav a {
    padding:
        9px 0;

    border-top:
        1px solid
        var(--apex-border);

    color:
        var(--apex-text-light);

    font-size: 12px;

    line-height: 1.4;
}

.app-sidebar-card nav a:first-child {
    border-top: 0;
}

.app-sidebar-card nav a:hover {
    color:
        var(--apex-navy);
}


/* Sidebar Contact */

.app-sidebar-contact {
    color: #ffffff;

    background:
        var(--apex-navy-dark);
}

.app-sidebar-contact .app-sidebar-label {
    color:
        var(--apex-gold-light);
}

.app-sidebar-contact h2 {
    color: #ffffff;
}

.app-sidebar-contact p {
    margin:
        0 0 17px;

    color:
        rgba(255,255,255,.77);

    font-size: 12px;

    line-height: 1.6;
}

.app-policy-button {
    width: 100%;
    min-height: 40px;

    padding:
        0 18px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border-radius: 30px;

    color:
        #ffffff !important;

    background:
        var(--apex-gold);

    font-size: 11px;

    font-weight: 700;
}

.app-policy-button:hover {
    background:
        var(--apex-gold-dark);
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

    .app-policy-layout {
        grid-template-columns: 1fr;
    }

    .app-policy-sidebar {
        position: static;

        grid-template-columns:
            1fr 1fr;
    }

}


@media (max-width: 650px) {

    .app-container {
        padding-left: 18px;
        padding-right: 18px;
    }


    .app-hero {
        padding:
            48px 0;
    }

    .app-hero h1 {
        font-size: 36px;
    }


    .app-policy-section {
        padding:
            45px 0 55px;
    }


    .app-policy-content {
        padding:
            27px 20px;

        border-radius: 14px;
    }

    .app-policy-content h2 {
        font-size: 24px;
    }

    .app-policy-content section + section {
        margin-top: 31px;

        padding-top: 31px;
    }


    .app-policy-sidebar {
        grid-template-columns: 1fr;
    }


    .app-contact-row {
        grid-template-columns: 1fr;

        gap: 3px;
    }

}

/* =========================================================
   ROBUST LAYOUT OVERRIDES
   Keeps Privacy Policy layout intact inside Elementor/WP Coder
========================================================= */

.apex-policy-page .app-policy-section {
    display: block !important;
    width: 100% !important;
    padding: 62px 0 75px !important;
    background: var(--apex-cream-light) !important;
}

.apex-policy-page .app-policy-layout {
    width: 100% !important;
    max-width: 1120px !important;
    margin: 0 auto !important;
    padding-left: 24px !important;
    padding-right: 24px !important;

    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 270px !important;
    gap: 45px !important;
    align-items: start !important;
}

.apex-policy-page .app-policy-content {
    min-width: 0 !important;
    width: 100% !important;
    padding: 38px 40px !important;
    border: 1px solid var(--apex-border) !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    box-shadow: 0 14px 38px rgba(7, 52, 97, .05) !important;
}

.apex-policy-page .app-policy-sidebar {
    display: grid !important;
    position: sticky !important;
    top: 105px !important;
    gap: 18px !important;
    width: 100% !important;
}

.apex-policy-page .app-sidebar-card {
    display: block !important;
    width: 100% !important;
    padding: 22px !important;
    border: 1px solid var(--apex-border) !important;
    border-radius: 15px !important;
    background: #ffffff !important;
    box-shadow: 0 10px 28px rgba(7, 52, 97, .04) !important;
}

.apex-policy-page .app-sidebar-contact {
    color: #ffffff !important;
    background: var(--apex-navy-dark) !important;
}

.apex-policy-page .app-policy-intro {
    padding-bottom: 34px !important;
    border-bottom: 1px solid var(--apex-border) !important;
}

.apex-policy-page .app-policy-content section + section {
    margin-top: 38px !important;
    padding-top: 38px !important;
    border-top: 1px solid var(--apex-border) !important;
}

.apex-policy-page .app-policy-content h2 {
    margin: 0 0 14px !important;
    color: var(--apex-navy) !important;
    font-size: 27px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
}

.apex-policy-page .app-policy-intro h2 {
    font-size: clamp(29px, 3vw, 38px) !important;
}

.apex-policy-page .app-policy-content p,
.apex-policy-page .app-policy-content li {
    color: var(--apex-text-light) !important;
}

@media (max-width: 900px) {
    .apex-policy-page .app-policy-layout {
        grid-template-columns: 1fr !important;
    }

    .apex-policy-page .app-policy-sidebar {
        position: static !important;
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (max-width: 650px) {
    .apex-policy-page .app-policy-section {
        padding: 45px 0 55px !important;
    }

    .apex-policy-page .app-policy-layout {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    .apex-policy-page .app-policy-content {
        padding: 27px 20px !important;
        border-radius: 14px !important;
    }

    .apex-policy-page .app-policy-content h2 {
        font-size: 24px !important;
    }

    .apex-policy-page .app-policy-sidebar {
        grid-template-columns: 1fr !important;
    }
}