.fw-terms-wrapper {
    --primary-color: #0b3d91;
    --secondary-color: #f7931e;
    --text-color: #333333;
    --bg-color: #f4f6f9;
    --container-bg: #ffffff;
    --border-color: #e0e0e0;

    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    padding: 20px 0;
}

/* Restrict box-sizing to only elements inside the wrapper */
.fw-terms-wrapper *,
.fw-terms-wrapper *::before,
.fw-terms-wrapper *::after {
    box-sizing: border-box;
}

.fw-terms-header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px 0;
    text-align: center;
    border-bottom: 4px solid var(--secondary-color);
}

.fw-terms-header h2 {
    margin: 0;
    font-size: 1.8rem;
    letter-spacing: 1px;
    color: white;
    /* Forcing white to override global styles */
}

.fw-terms-container {
    max-width: 1320px;
    margin: 40px auto;
    background: var(--container-bg);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.fw-terms-container h1 {
    text-align: center;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    font-size: 28px;
    line-height: 36px;
    font-weight: 400;
    margin-top: 0px;
    margin-bottom: 20px;
    color: #1c2731;
    text-align: center;
}

.fw-terms-container h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
    font-size: 16px;
    line-height: 24px;
    color: #666;
    line-height: 20px;
    font-weight: 550;
}

a {
    color: #666;
}

a:hover,
a:focus,
.btn-link:hover,
.btn-link:focus {
    color: #047f19;
    border: none;
}

li {
    color: #666;
    font-size: 12px;
    padding: 0;
}


.fw-terms-container p {
    font-size: 14px;
    color: #666;
    line-height: 20px;
    margin: 10px 0px;
    text-align: justify;
}

.fw-terms-container strong {
    color: var(--primary-color);
    display: block;
    margin-top: 25px;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.fw-back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    display: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
    z-index: 9999;
}

.fw-back-to-top:hover {
    background-color: #d87e14;
}

/* --- Responsive Breakpoints --- */

@media (max-width: 1199px) {
    .fw-terms-container {
        max-width: 960px;
        margin: 30px auto;
        padding: 35px;
    }
}

@media (max-width: 992px) {
    .fw-terms-container {
        max-width: 720px;
        padding: 30px;
        margin: 20px;
    }

    .fw-terms-container h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .fw-terms-container {
        max-width: 100%;
        margin: 20px;
        padding: 25px;
    }

    .fw-terms-container h1 {
        font-size: 2rem;
    }

    .fw-terms-container strong {
        font-size: 1.1rem;
    }

    .fw-terms-container h3 {
        font-size: 14px;
        line-height: 21px;
    }

    .fw-terms-container p {
        font-size: 12px;
        color: #666;
        line-height: 18px;
        margin: 10px 0px;
        text-align: justify;
    }
}

@media (max-width: 576px) {
    .fw-terms-container {
        margin: 10px;
        padding: 20px;
    }

    .fw-terms-wrapper {
        font-size: 15px;
    }

    .fw-terms-header h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 374px) {
    .fw-terms-container {
        padding: 15px;
    }

    .fw-terms-container h1 {
        font-size: 1.8rem;
    }

    .fw-terms-container strong {
        font-size: 1rem;
    }

    .fw-terms-container h3 {
        font-size: 13px;
    }

    .fw-terms-container p {
        font-size: 11px;
    }
}

@media (max-width: 320px) {
    .fw-terms-container {
        padding: 12px;
        margin: 5px;
    }

    .fw-terms-wrapper {
        font-size: 14px;
    }

    .fw-terms-container h3 {
        font-size: 12px;
    }

    .fw-terms-container p {
        font-size: 10px;
        line-height: 15px;
    }

    .fw-terms-container h1 {
        font-size: 1.5rem;
    }

    .fw-terms-header {
        padding: 15px 0;
    }

    .fw-terms-header h2 {
        font-size: 1.3rem;
    }

    .fw-back-to-top {
        width: 40px;
        height: 40px;
        font-size: 18px;
        bottom: 15px;
        right: 15px;
    }
}