* {
    margin: 0;
    padding: 0;
    font-family: "Lato", sans-serif;
    box-sizing: border-box;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

.header-section {
    position: relative;
    overflow: visible;
    height: 100%;
    width: 100vw;
}

.header-section::before {
    border-radius: 100%;
    position: absolute;
    background: radial-gradient(76.53% 29.28% at 68.11% 81.16%, #FFFAFB 0%, #FFEDF0 100%);
    right: -150px;
    left: -180px;
    top: -300px;
    content: '';
    bottom: 0;
    z-index: 1;
}

.header {
    margin-top: 12%;
    position: relative;
    z-index: 2;
}

.header h1 {
    margin-bottom: 5%;
    color: #E21E5B;
    text-align: center;
    font-family: "Lato", sans-serif;
    font-weight: 800;
    font-size: 32px;
}

.wave-svg {
    position: absolute;
    top: 40%;
    right: 0;
    z-index: 4;
}

.terms {
    margin-top: 2%;
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
    min-height: 100vh;
}

.container {
    max-width: 80vw;
    margin: 0 auto;
    padding: 48px 20px;
    position: relative;
    z-index: 0;
}

.terms-content {
    margin: 0 auto;
}

h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
}

span {
    margin-right: 1%;
}

.highlight {
    color: #E21E5B;
}

p {
    font-size: 18px;
    color: #374151;
    line-height: 2;
    margin-bottom: 1.5rem;
}

.terms-text {
    text-align: justify;
    line-height: 1.8;
    font-size: 16px;
    color: #374151;
}

.terms-text h1, .terms-text h2, .terms-text h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 600;
}

.terms-text p {
    margin-bottom: 1.5rem;
    font-size: 18px;
    color: #444;
    line-height: 1.8;
}

.terms-text ol {
    counter-reset: item;
    margin-left: 0;
    padding-left: 0; 
    margin-bottom: 2rem;
    list-style-position: inside;
}

.terms-text ol li {
    display: block;
    margin-bottom: 1.5rem;
    font-size: 16px;
    color: #444;
    line-height: 1.8;
    position: relative;
    padding-left: 0;
}

.terms-text ol li:before {
    content: counter(item) ".";
    counter-increment: item;
    font-weight: 700;
    color: #444;
    display: inline-block;
    width: 1rem;
    margin-right: 0.3rem;
}

.terms-text p {
    font-size: 18px;
}

.terms-text strong, .terms-text b {
    font-weight: 600;
    color: #333;
}

.terms-text a {
    color: #E21E5B;
    text-decoration: none;
    transition: color 0.2s ease;
}

.terms-text a:hover {
    color: #de0043;
    text-decoration: underline;
}

@media screen and (max-width: 480px) {
    .wave-svg {
        display: none;
    }

    .header-section {
        padding-top: 65px; /* Adjusted for mobile navbar height */
        min-height: 200px; /* Minimum height for mobile */
    }

    .header-section::before {
        right: -50px;
        left: -50px;
        top: -200px;
    }

    .header {
        margin-top: 15%;
        padding: 0 16px;
    }

    .header h1 {
        font-size: 26px;
        margin-bottom: 8%;
    }

    .terms {
        margin-top: -20px;
    }

    .container {
        padding: 24px 16px;
    }

    .terms-content h2 {
        font-size: 20px;
        margin-top: 5%;
        margin-bottom: 24px;
        padding: 0;
    }

    .terms-text p, .terms-text li {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 12px;
    }

    .terms-text h1, .terms-text h2, .terms-text h3 {
        font-size: 18px;
        margin-top: 1.5rem;
        margin-bottom: 0.8rem;
    }

    .terms-content h2 .highlight {
        display: inline;
        margin-right: 4px;
    }
    
    /* Adjust ordered list items for mobile */
    .terms-text ol {
        padding-left: 0;
    }
    
    .terms-text ol li {
        margin-left: 0.5rem;
        text-indent: -0.8rem;
    }
}