/* ==========================================================================
   CoregenX - Legal & Policy Pages Stylesheet (policy-page.css)
   Clean, modern, responsive layout for Privacy Policy, Terms & Conditions, and Refund Policy.
   Matches CoregenX theme: Jost headings, Open Sans body, subtle borders and cards.
   ========================================================================== */

.cx-policy-wrap {
    padding: 70px 0 90px;
    background-color: #fbfcff;
    color: #5e6371;
    font-family: 'Open Sans', sans-serif;
    font-size: 15.5px;
    line-height: 1.75;
}

@media (max-width: 991px) {
    .cx-policy-wrap {
        padding: 45px 0 70px;
    }
}

.cx-policy-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header badge and meta */
.cx-policy-header {
    text-align: center;
    margin-bottom: 45px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e9eaf2;
}

.cx-policy-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(91, 63, 208, 0.08);
    color: #5b3fd0;
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.cx-policy-title {
    font-family: 'Jost', sans-serif;
    font-size: 38px;
    font-weight: 600;
    color: #343c55;
    line-height: 1.25;
    margin: 0 0 14px;
}

@media (max-width: 767px) {
    .cx-policy-title {
        font-size: 28px;
    }
}

.cx-policy-meta {
    font-size: 14px;
    color: #868b9b;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.cx-policy-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Summary / Highlight Box */
.cx-policy-intro-card {
    background: #ffffff;
    border: 1px solid #e4e7f3;
    border-left: 4px solid #5b3fd0;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 35px;
    box-shadow: 0 4px 18px rgba(34, 36, 46, 0.03);
}

.cx-policy-intro-card p {
    margin: 0 0 10px;
    color: #4b5162;
    font-size: 16px;
}

.cx-policy-intro-card p:last-child {
    margin-bottom: 0;
}

/* Quick Navigation / Table of Contents */
.cx-policy-toc {
    background: #ffffff;
    border: 1px solid #e9eaf2;
    border-radius: 14px;
    padding: 24px 28px;
    margin-bottom: 40px;
    box-shadow: 0 2px 12px rgba(16, 19, 42, 0.02);
}

.cx-policy-toc__title {
    font-family: 'Jost', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #343c55;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cx-policy-toc__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.cx-policy-toc__link {
    color: #5b3fd0;
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.cx-policy-toc__link:hover {
    color: #d9265f;
    transform: translateX(3px);
}

/* Section cards */
.cx-policy-section {
    background: #ffffff;
    border: 1px solid #e9eaf2;
    border-radius: 14px;
    padding: 32px 36px;
    margin-bottom: 26px;
    box-shadow: 0 3px 14px rgba(34, 36, 46, 0.02);
    transition: border-color 0.2s ease;
}

.cx-policy-section:hover {
    border-color: #d8daf0;
}

@media (max-width: 767px) {
    .cx-policy-section {
        padding: 24px 20px;
        border-radius: 12px;
        margin-bottom: 20px;
    }
}

.cx-policy-sec-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f3f9;
}

.cx-policy-sec-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: rgba(91, 63, 208, 0.08);
    color: #5b3fd0;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    flex-shrink: 0;
}

.cx-policy-sec-title {
    font-family: 'Jost', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #343c55;
    margin: 0;
    line-height: 1.35;
}

@media (max-width: 767px) {
    .cx-policy-sec-title {
        font-size: 19px;
    }
}

.cx-policy-section p {
    margin: 0 0 14px;
    color: #555a68;
    font-size: 15.5px;
}

.cx-policy-section p:last-child {
    margin-bottom: 0;
}

.cx-policy-section strong {
    color: #343c55;
}

/* Bullet list styles */
.cx-policy-list {
    margin: 12px 0 18px;
    padding-left: 0;
    list-style: none;
}

.cx-policy-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    color: #555a68;
}

.cx-policy-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 7px;
    height: 7px;
    background-color: #5b3fd0;
    border-radius: 50%;
}

.cx-policy-list li strong {
    color: #2b3042;
}

/* Subsections */
.cx-policy-subheading {
    font-family: 'Jost', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: #343c55;
    margin: 20px 0 10px;
}

/* Callout Note */
.cx-policy-callout {
    background: #f8f7fe;
    border: 1px solid #e7e2fa;
    border-radius: 10px;
    padding: 16px 20px;
    margin: 18px 0;
    font-size: 14.5px;
    color: #494d62;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

/* Contact box for policies - strictly email only, no physical address */
.cx-policy-contact-box {
    background: linear-gradient(135deg, #10132a 0%, #1e1b4b 100%);
    color: #ffffff;
    border-radius: 14px;
    padding: 36px 40px;
    margin-top: 40px;
    text-align: center;
}

@media (max-width: 767px) {
    .cx-policy-contact-box {
        padding: 28px 20px;
    }
}

.cx-policy-contact-box h3 {
    font-family: 'Jost', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 10px;
}

.cx-policy-contact-box p {
    color: #c7cbd9;
    font-size: 15px;
    max-width: 640px;
    margin: 0 auto 22px;
}

.cx-policy-mail-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #f9577c 0%, #f9758f 100%);
    color: #ffffff !important;
    font-family: 'Jost', sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
    box-shadow: 0 6px 20px rgba(249, 87, 124, 0.35);
}

.cx-policy-mail-btn:hover {
    background: linear-gradient(135deg, #ea4269 0%, #f85f7c 100%);
    transform: translateY(-2px);
    color: #ffffff;
}

.cx-policy-contact-note {
    display: block;
    margin-top: 14px;
    font-size: 13px;
    color: #989eb2;
}
