.page-content .page-subtitle {
    font-size: 20px;
    line-height: 1.4;
    color: #4a4a4a;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

.page-content .page-body h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1c2b5c;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: none;
}

.page-content .page-body h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1f1f1f;
    margin-top: 2rem;
    margin-bottom: 0.85rem;
}

.page-content .page-body h4 {
    font-size: 17px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #4a4a4a;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.page-content .page-body h2 + p,
.page-content .page-body h3 + p,
.page-content .page-body h4 + p {
    margin-top: 0.4rem;
}

.page-content .page-body hr,
.page-content .page-body .section-divider {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
    margin: 2rem 0;
}

.legal-documents-links {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.legal-documents-links ul {
    list-style: none;
    margin: 0;
    padding-left: 0;
}

.legal-documents-links li {
    margin-bottom: 0.85rem;
}

.legal-documents-links a {
    font-weight: 600;
    color: #1c2b5c;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    display: inline-block;
    padding-bottom: 2px;
}

.legal-documents-links a:hover {
    border-color: #1c2b5c;
}

.legal-documents-entries {
    margin-top: 2.5rem;
}

.legal-documents-entries section {
    margin-bottom: 2.25rem;
}

.legal-documents-entries h2 {
    font-size: 22px;
    font-weight: 600;
    color: #1f2a54;
    margin-bottom: 0.75rem;
}

/* Cookie notice */
.gdpr {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #fff;
    color: #2E3993;
    padding: 12px 20px;
    border-radius: 8px;
    display: none;
    align-items: center;
    gap: 12px;
    z-index: 9999 !important;
    max-width: 640px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #d5dbd9;
}

.gdpr_text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.gdpr_text a {
    color: #2E3993;
    text-decoration: underline;
    border-color: #2E3993;
}

.gdpr_text a:hover {
    text-decoration: none;
}

.gdpr_buttons {
    flex-shrink: 0;
}

.gdpr_button {
    cursor: pointer;
    background: #2E3993;
    color: #fff;
    border: none;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    transition: background 0.2s;
}

.gdpr_button:hover {
    background: #242e73;
}

@media only screen and (max-width: 960px) {
    .gdpr {
        left: 4%;
        right: 4%;
        max-width: 100%;
        flex-wrap: wrap;
        padding: 16px;
    }

    .gdpr_text {
        flex: 1;
    }

    .gdpr_buttons {
        width: 100%;
    }

    .gdpr_button {
        width: 100%;
    }
}

/* Cookie policy modal */
.modal-custom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.modal-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #2E3993;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #242e73;
}

.modal-text {
    padding: 30px 25px;
    overflow-y: auto;
}

.modal-text h2 {
    font-size: 22px;
    font-weight: 600;
    color: #1c2b5c;
    margin-top: 0;
    margin-bottom: 20px;
    padding-right: 20px;
}

.modal-text h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2E3993;
    margin-top: 20px;
    margin-bottom: 12px;
}

.modal-text h4 {
    font-size: 16px;
    font-weight: 600;
    color: #2E3993;
    margin-top: 16px;
    margin-bottom: 8px;
}

.modal-text p {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 12px;
}

.modal-text a {
    color: #2E3993;
    text-decoration: underline;
}

.modal-text a:hover {
    text-decoration: none;
}

.modal-close {
    padding: 15px 25px 20px;
    border-top: 1px solid #d5dbd9;
    display: flex;
    justify-content: flex-end;
}

.modal-close button {
    background: #2E3993;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.modal-close button:hover {
    background: #242e73;
}

@media only screen and (max-width: 640px) {
    .modal-box {
        width: 95%;
        max-height: 85vh;
    }

    .modal-text {
        padding: 20px 15px;
    }

    .modal-close {
        padding: 12px 15px 15px;
    }

    .close-modal {
        top: 10px;
        right: 15px;
        font-size: 28px;
    }
}
/* End cookie policy modal */
/* End cookie notice */

