/* =========================================
   Terms & Conditions
========================================= */

.terms-section {
    padding: 70px 0;
    background: #f7fafc;
}

.terms-wrapper {
    max-width: 1050px;
    margin: 0 auto;
}

/* Header */

.terms-header {
    margin-bottom: 20px;
    padding: 35px;
    border-radius: 20px;
    background: linear-gradient(
        135deg,
        #073d59,
        #008fcf
    );
    box-shadow: 0 18px 45px rgba(7, 61, 89, 0.15);
}

.terms-header h1 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 38px;
    font-weight: 800;
    line-height: 1.25;
}

.terms-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
}

/* Introduction */

.terms-intro {
    margin-bottom: 22px;
    padding: 28px 30px;
    border: 1px solid #dceaf1;
    border-left: 4px solid #008fcf;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(18, 59, 87, 0.05);
}

.terms-intro p {
    margin: 0 0 13px;
    color: #526575;
    font-size: 15px;
    line-height: 1.85;
}

.terms-intro p:last-child {
    margin-bottom: 0;
}

.terms-intro strong {
    color: #173c58;
}

/* Terms Item */

.terms-item {
    margin-bottom: 18px;
    overflow: hidden;
    border: 1px solid #e2ebf0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(18, 59, 87, 0.055);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.terms-item:hover {
    border-color: #c9e3ee;
    box-shadow: 0 15px 38px rgba(18, 59, 87, 0.09);
    transform: translateY(-2px);
}

/* Heading */

.terms-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    border-bottom: 1px solid #edf2f5;
    background: linear-gradient(
        90deg,
        #f1f9fc,
        #ffffff
    );
}

.terms-heading span {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #008fcf;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 7px 16px rgba(0, 143, 207, 0.2);
}

.terms-heading h2 {
    margin: 0;
    color: #173c58;
    font-size: 20px;
    font-weight: 750;
    line-height: 1.4;
}

/* Terms body */

.terms-body {
    padding: 24px 28px;
}

.terms-body p {
    position: relative;
    margin: 0 0 14px;
    padding-left: 18px;
    color: #5b6d79;
    font-size: 15px;
    line-height: 1.85;
}

.terms-body p:last-child {
    margin-bottom: 0;
}

.terms-body p::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #008fcf;
}

.terms-body strong {
    color: #173c58;
    font-weight: 700;
}

/* First paragraph company name */

.terms-item:last-child .terms-body p:nth-child(2) {
    padding: 15px 18px;
    border-radius: 10px;
    background: #f1f9fc;
}

.terms-item:last-child .terms-body p:nth-child(2)::before {
    display: none;
}

/* Responsive */

@media (max-width: 991px) {

    .terms-wrapper {
        max-width: 100%;
    }

    .terms-header h1 {
        font-size: 34px;
    }
}

@media (max-width: 767px) {

    .terms-section {
        padding: 45px 0;
    }

    .terms-header {
        padding: 25px 22px;
        border-radius: 16px;
    }

    .terms-header h1 {
        font-size: 28px;
    }

    .terms-intro {
        padding: 21px 20px;
    }

    .terms-heading {
        gap: 12px;
        padding: 17px 18px;
    }

    .terms-heading span {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .terms-heading h2 {
        font-size: 18px;
    }

    .terms-body {
        padding: 20px;
    }

    .terms-body p,
    .terms-intro p {
        font-size: 14px;
        line-height: 1.75;
    }
}

@media (max-width: 480px) {

    .terms-heading {
        align-items: flex-start;
    }

    .terms-header h1 {
        font-size: 25px;
    }

    .terms-date {
        font-size: 12px;
    }

    .terms-body {
        padding: 18px;
    }
}