@keyframes slideDownFadeIn {
    from {
        top: -100px;
    }
    to {
        top: 0;
    }
}

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

html {
    scroll-behavior: smooth;
}

.nav-section {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: white;
    animation: slideDownFadeIn 0.8s ease-out forwards;
    box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.06);
}

.navbar {
    display: flex;
    width: 100%;
    padding: 0.8% 7%;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.navbar * {
    transition: all 0.3s ease;
}

.navbar-logo {
    transform: translateY(5%);
}

.navbar-options {
    position: relative;
    isolation: isolate;
    min-width: auto;
    display: flex;
    justify-content: flex-end;
}

.navbar-options ul {
    display: flex;
    list-style: none;
    align-items: center;
    justify-content: flex-end;
    gap: 30px;
    padding: 0;
}

.navbar-options ul li {
    opacity: 1;
    margin: 0;
}

.navbar a {
    text-decoration: none;
    font-weight: 500;
    color: #222;
    font-size: 16px;
}

/* Login button styles */
.login-btn {
    font-family: "Lato", Arial, sans-serif;
    color: #E21E5B;
    background-color: white;
    padding: 10px 20px;
    border-radius: 77px;
    border: 0.4px solid #E21E5B;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s ease;
}

.login-btn:hover {
    background-color: #FFF4F7;
}

/* Register button styles - always visible */
.register-btn {
    font-family: "Lato", Arial, sans-serif;
    color: white;
    background-color: #E21E5B;
    padding: 10px 20px;
    border-radius: 77px;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease-out;
    display: block; /* Always visible */
    opacity: 1;
    visibility: visible;
}

.register-btn:hover {
    background-color: #de0043;
}

.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 ul {
    margin-left: 20px; /* Add space from the left for bullets */
    padding-left: 20px; /* Keep padding for the bullets */
    margin-bottom: 2rem;
    list-style-type: disc; /* Default circle bullets */
    list-style-position: inside; /* Position the bullets inside the content */
}

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


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

.terms-points li {
    margin-bottom: 5% !important;
}

.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;
}

.footer {
    background-color: #FFF4F6;
    padding: 60px 7% 40px;
    font-family: "Lato", sans-serif;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 145px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-family: "Lato", sans-serif;
    font-style: normal;
    color: #dd1252;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 24px;
}

.footer-column p {
    color: #222;
    font-family: "Lato", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 34px;
}

.footer-column ul {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin: 0 0 16px 0;
    padding: 0;
    width: 100%;
}

.footer-column ul li a {
    color: #52525B;
    font-weight: 400;
    font-style: normal;
    line-height: 124%;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
    display: inline-block;
    text-align: left;
}

.footer-column ul li a:hover {
    color: #E21E5B;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 8%;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.social-links img {
    width: 30px;
    height: 30px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.disclaimer {
    color: #6a6a6e;
    font-size: 14px;
    margin-bottom: 8px;
}

.copyright {
    color: #6a6a6e;
    font-size: 14px;
}

@media screen and (max-width: 768px) {
    .footer {
        padding: 40px 20px;
    }

    .footer-content {
        margin: 0 5%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .footer-column:first-child {
        grid-column: 1 / -1;
    }

    .footer-column:nth-child(4) {
        grid-column: 1 / -1;
    }

    .social-links {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    .navbar {
        padding: 8px 10px;
        height: 65px;
        display: flex;
        align-items: center;
    }

    .navbar-logo img {
        max-width: 120px;
        display: block;
    }

    .navbar-options ul {
        gap: 10px;
    }

    /* Hide all nav items except register on mobile */
    .nav-item {
        display: none;
    }

    .register-btn {
        margin-right: 7%;
    }

    .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;
    }

    .footer {
        padding: 24px 16px;
    }

    .footer p {
        font-size: 14px;
    }

    .footer-column ul li a {
        font-size: 14px;
    }

    .disclaimer,
    .copyright {
        font-size: 12px;
    }

    /* Adjust ordered list items for mobile */
    .terms-text ul {
        padding-left: 0;
    }

    .terms-text ul li {
        margin-left: 0.5rem;
        text-indent: -0.8rem;
    }
}