/* =========================================================
   Policy Page Content
   Primary Color: #f7b901
   Secondary Color: #0e5aa4
========================================================= */

.policy-page {
    width: 100%;
    padding: 54px 0 72px;
}

.policy-content-card {
    width: 100%;
    margin: 0 auto;
    padding: 34px 46px 50px;
    border: 1px solid #dce7f3;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 18px 46px rgba(14, 90, 164, 0.09);
}


/* ==============================
   Policy Category Navigation
================================= */

.policy-category-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid #e3eaf2;
}

.policy-category-nav a {
    position: relative;
    min-width: 0;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    overflow: hidden;
    border: 1px solid #dce7f3;
    border-radius: 12px;
    background: #f7faff;
    color: #14243b;
    font-size: 15px;
    line-height: 22px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition:
        color 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.policy-category-nav a::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        #f7b901 0%,
        #0e5aa4 100%
    );
    opacity: 0;
    transition: opacity 0.25s ease;
}

.policy-category-nav a span {
    position: relative;
    z-index: 2;
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.policy-category-nav a:hover {
    border-color: #f7b901;
    background: #fffaf0;
    color: #0e5aa4;
    box-shadow: 0 10px 24px rgba(14, 90, 164, 0.10);
    transform: translateY(-2px);
}

.policy-category-nav a:hover::before {
    opacity: 1;
}

.policy-category-nav a.active {
    background: linear-gradient(
        135deg,
        #0e5aa4 0%,
        #2879c4 100%
    );
    color: #ffffff;
    box-shadow: 0 12px 26px rgba(14, 90, 164, 0.20);
}

.policy-category-nav a.active::before {
    background: #f7b901;
    opacity: 1;
}


/* ==============================
   Content Header
================================= */

.policy-content-head {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e3eaf2;
}

.policy-content-head span {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 5px 14px;
    border: 1px solid rgba(247, 185, 1, 0.30);
    border-radius: 999px;
    background: #fffaf0;
    color: #0e5aa4;
    font-size: 12px;
    line-height: 20px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.policy-content-head h1 {
    position: relative;
    margin: 0;
    padding-left: 18px;
    color: #14243b;
    font-size: 32px;
    line-height: 1.35;
    font-weight: 800;
    word-break: break-word;
}

.policy-content-head h1::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 0;
    width: 5px;
    height: 27px;
    border-radius: 5px;
    background: #f7b901;
}


/* ==============================
   Main Content
================================= */

.policy-content {
    width: 100%;
    color: #4b5d73;
    font-size: 15px;
    line-height: 1.9;
    word-break: break-word;
}

.policy-content > *:first-child {
    margin-top: 0;
}

.policy-content > *:last-child {
    margin-bottom: 0;
}

.policy-content p {
    margin: 0 0 18px;
    color: #4b5d73;
    font-size: 15px;
    line-height: 1.9;
}

.policy-content h2 {
    margin: 36px 0 18px;
    padding: 12px 16px 12px 20px;
    border-left: 5px solid #f7b901;
    border-radius: 0 10px 10px 0;
    background: #f3f8fd;
    color: #14243b;
    font-size: 23px;
    line-height: 1.45;
    font-weight: 800;
}

.policy-content h3 {
    position: relative;
    margin: 28px 0 14px;
    padding-left: 16px;
    color: #14243b;
    font-size: 19px;
    line-height: 1.5;
    font-weight: 700;
}

.policy-content h3::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f7b901;
}

.policy-content h4 {
    margin: 24px 0 12px;
    color: #0e5aa4;
    font-size: 17px;
    line-height: 1.5;
    font-weight: 700;
}

.policy-content strong,
.policy-content b {
    color: #14243b;
    font-weight: 700;
}

.policy-content em,
.policy-content i {
    color: #52677f;
}

.policy-content a {
    color: #0e5aa4;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.policy-content a:hover {
    color: #f7b901;
}


/* ==============================
   Lists
================================= */

.policy-content ul,
.policy-content ol {
    margin: 0 0 20px;
    padding-left: 26px;
}

.policy-content ul {
    list-style: disc;
}

.policy-content ol {
    list-style: decimal;
}

.policy-content ul li,
.policy-content ol li {
    margin-bottom: 9px;
    padding-left: 4px;
    color: #4b5d73;
    font-size: 15px;
    line-height: 1.8;
}

.policy-content ul li::marker {
    color: #f7b901;
}

.policy-content ol li::marker {
    color: #0e5aa4;
    font-weight: 700;
}

.policy-content ul ul,
.policy-content ol ol,
.policy-content ul ol,
.policy-content ol ul {
    margin-top: 8px;
    margin-bottom: 8px;
}


/* ==============================
   Quote Block
================================= */

.policy-content blockquote {
    position: relative;
    margin: 24px 0;
    padding: 20px 22px 20px 52px;
    border: 1px solid #dce7f3;
    border-radius: 14px;
    background: #f7faff;
    color: #52677f;
    font-size: 15px;
    line-height: 1.8;
}

.policy-content blockquote::before {
    content: "“";
    position: absolute;
    top: 10px;
    left: 18px;
    color: #f7b901;
    font-size: 42px;
    line-height: 1;
    font-weight: 800;
}

.policy-content blockquote p:last-child {
    margin-bottom: 0;
}


/* ==============================
   Tables
================================= */

.policy-content table {
    width: 100%;
    margin: 24px 0;
    overflow: hidden;
    border: 1px solid #dce7f3;
    border-radius: 12px;
    border-spacing: 0;
    border-collapse: separate;
    background: #ffffff;
}

.policy-content table th,
.policy-content table td {
    padding: 13px 15px;
    border-right: 1px solid #dce7f3;
    border-bottom: 1px solid #dce7f3;
    color: #4b5d73;
    font-size: 14px;
    line-height: 1.65;
    text-align: left;
    vertical-align: top;
}

.policy-content table th {
    background: #f3f8fd;
    color: #14243b;
    font-weight: 700;
}

.policy-content table tr:last-child th,
.policy-content table tr:last-child td {
    border-bottom: none;
}

.policy-content table th:last-child,
.policy-content table td:last-child {
    border-right: none;
}

.policy-content table tbody tr:hover td {
    background: #fffaf0;
}


/* ==============================
   Images and Media
================================= */

.policy-content img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    margin: 24px auto;
    border-radius: 12px;
}

.policy-content video,
.policy-content iframe {
    display: block;
    max-width: 100%;
    margin: 24px auto;
    border: none;
    border-radius: 12px;
}

.policy-content hr {
    height: 1px;
    margin: 30px 0;
    border: none;
    background: #e3eaf2;
}


/* ==============================
   Mobile Layout
================================= */

@media (max-width: 768px) {
    .policy-page {
        padding: 34px 0 46px;
    }

    .policy-content-card {
        padding: 22px 18px 32px;
        border-radius: 16px;
    }

    .policy-category-nav {
        grid-template-columns: 1fr;
        gap: 9px;
        margin-bottom: 24px;
        padding-bottom: 22px;
    }

    .policy-category-nav a {
        min-height: 46px;
        justify-content: flex-start;
        padding: 10px 14px;
        border-radius: 10px;
        font-size: 14px;
        text-align: left;
    }

    .policy-category-nav a span {
        white-space: normal;
    }

    .policy-category-nav a:hover {
        transform: none;
    }

    .policy-content-head {
        margin-bottom: 22px;
        padding-bottom: 20px;
    }

    .policy-content-head span {
        min-height: 28px;
        margin-bottom: 10px;
        padding: 4px 12px;
        font-size: 11px;
        letter-spacing: 1px;
    }

    .policy-content-head h1 {
        padding-left: 15px;
        font-size: 25px;
        line-height: 1.4;
    }

    .policy-content-head h1::before {
        top: 6px;
        width: 4px;
        height: 24px;
    }

    .policy-content {
        font-size: 14px;
        line-height: 1.8;
    }

    .policy-content p {
        margin-bottom: 16px;
        font-size: 14px;
        line-height: 1.8;
    }

    .policy-content h2 {
        margin: 28px 0 15px;
        padding: 10px 12px 10px 15px;
        border-left-width: 4px;
        font-size: 19px;
        line-height: 1.45;
    }

    .policy-content h3 {
        margin: 23px 0 12px;
        font-size: 17px;
        line-height: 1.5;
    }

    .policy-content h4 {
        margin: 20px 0 10px;
        font-size: 16px;
    }

    .policy-content ul,
    .policy-content ol {
        padding-left: 22px;
    }

    .policy-content ul li,
    .policy-content ol li {
        margin-bottom: 8px;
        font-size: 14px;
        line-height: 1.75;
    }

    .policy-content blockquote {
        margin: 20px 0;
        padding: 17px 16px 17px 42px;
        border-radius: 12px;
        font-size: 14px;
    }

    .policy-content blockquote::before {
        top: 10px;
        left: 14px;
        font-size: 34px;
    }

    .policy-content table {
        display: block;
        width: 100%;
        overflow-x: auto;
        border-radius: 10px;
    }

    .policy-content table th,
    .policy-content table td {
        min-width: 150px;
        padding: 11px 12px;
        font-size: 13px;
    }
}