
/* =========================================
   Core Animations
   ========================================= */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

/* Mobile dropdown arrow rotation */
.mobile-dropdown svg {
    transition: transform 0.3s ease;
}

.mobile-dropdown svg.rotate-180 {
    transform: rotate(180deg);
}

/* =========================================
   Base Styles
   ========================================= */
body {
    min-height: 100vh;
    overflow-x: hidden;
    background-color: black;
    color: white;
}

.main-content-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sub-header {
    position: relative; /* Make it relative for absolute positioning of dropdown */
    background: rgba(0, 0, 0, 0.95);
    padding: 1rem; /* Add padding for aesthetics */
    transition: transform 0.3s ease;
    transform: translateY(-100%); /* Hidden by default */
}

.sub-header.visible {
    transform: translateY(0); /* Show when visible */
}
.sub-header.wasvisible {
    padding: 1rem
}

.dropdown-menu-2 {
    position: absolute;
    top: 100%; /* Position it below the sub-header */
    left: 0;
    width: 100%; /* Match the width of the sub-header */
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 50;
    max-height: 0; /* Start hidden */
    opacity: 0; /* Start hidden */
    overflow: hidden; /* Hide overflow */
    transition: max-height 0.5s ease, opacity 0.5s ease; /* Smooth transition */
}

.dropdown-menu-2.visible {
    max-height: 500px; /* Set a max height for the dropdown when visible */
    opacity: 1; /* Fade in */
}

.dropdown-menu-2 ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-menu-2 li {
    padding: 1rem 1.5rem; /* Increased padding for more space */
    color: white;
    cursor: pointer;
    margin-bottom: 0.75rem; /* Increased margin for more spacing between items */
}

.dropdown-menu-2 li:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dropdown-menu-2.hidden {
    display: none;
}

.dropdown-menu-2.visible {
    display: block;
}


/* Update your sub-header styles */
.sub-header {
background: rgba(0, 0, 0, 0.95);
backdrop-filter: blur(12px);
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
position: fixed;
top: 64px;
left: 0;
right: 0;
z-index: 40;
transform: translateY(-100%);
transition: transform 0.3s ease;
}

.sub-header.visible {
transform: translateY(0);
}

/* Rest of your sub-header styles remain the same */
.sub-header-container {
display: flex;
align-items: center;
padding: 0.75rem 1rem;
gap: 1rem;
}

.back-button {
color: rgba(255, 255, 255, 0.9);
}

.page-title {
flex: 1;
}

.page-title h1 {
font-size: 1.125rem;
font-weight: 600;
color: rgba(255, 255, 255, 0.9);
margin: 0;
}


.sub-header {
background: rgba(0, 0, 0, 0.95);
backdrop-filter: blur(12px);
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
position: fixed;
top: 64px;
left: 0;
right: 0;
z-index: 40;
transform: translateY(-100%);
transition: transform 0.3s ease;
}

.sub-header.visible {
transform: translateY(0);
}

.sub-header-container {
display: flex;
align-items: center;
padding: 0.75rem 1rem;
gap: 1rem;
cursor: pointer;
}

.dropdown-menu-2 {
background: rgba(0, 0, 0, 0.95);
border-top: 1px solid rgba(255, 255, 255, 0.1);
max-height: 0;
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
overflow: hidden;
}

.dropdown-menu-2 ul {
list-style: none;
padding: 0;
margin: 0;
}

.dropdown-menu-2 li {
padding: 1rem 1.5rem;
color: white;
cursor: pointer;
transition: background-color 0.2s ease;
}

.dropdown-menu-2 li:hover {
background: rgba(255, 255, 255, 0.1);
}

@media (min-width: 831px) {
.sub-header {
    display: none;
}
}

@media (max-width: 640px) {
.quick-nav {
display: none !important;
}

.sub-header {
display: block;
}

main {
padding-top: 120px !important;
}

.legal-section {
margin-bottom: 2rem;
}
}
/* styles for dropdown for sub header */

/* =========================================
   Legal Content Styles
   ========================================= */
.legal-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 2rem clamp(1rem, 5vw, 4rem); /* Responsive padding */
}

.side-nav {
    position: sticky;
    top: 100px;
    height: fit-content;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
}

.side-nav-item {
    padding: 0.75rem 1rem;
    color: white;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.side-nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

.side-nav-item.active {
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

.legal-section {
    padding: 2rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    width: 100%;
}

.legal-section:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.legal-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.legal-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

/* =========================================
   Responsive Design
   ========================================= */

@media (max-width: 830px) {
    .nav-container {
        padding: 0 1.5rem;
    }

    .legal-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .side-nav {
        position: static;
    }

}

@media (max-width: 640px) {
    .side-nav {
        display: none !important;
    }
}

@media (max-width: 375px) {
    .side-nav {
        display: none !important;
    }

    .nav-container {
        padding: 0 0.75rem;
    }
    
}

@media (max-width: 640px) {
    .legal-section {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Updated styles for mobile collapse */
@media (max-width: 640px) {
    .quick-nav {
        display: none !important;
    }
    
    .legal-section {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        margin-bottom: 1rem !important;
        padding: 0.5rem !important;
    }

    .legal-section button {
        padding: 1rem !important;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.2s ease;
        width: 100%;
    }

    .legal-section button:hover {
        background: rgba(255, 255, 255, 0.05);
    }

    .legal-section button h2 {
        font-size: 1.25rem !important;
        margin: 0 !important;
    }

    .legal-section .space-y-8 {
        padding: 1rem;
    }
}
@media (min-width: 831px){
    .sub-header {
        display: none; /* Hide the sub-header on screens wider than 640px */
    }
}

/* Smooth collapse animation styles */
.legal-section .space-y-8 {
    transition: max-height 0.3s ease-out, opacity 0.2s ease-out, padding 0.2s ease-out;
    overflow: hidden;
}

.legal-section .space-y-8.collapsed {
    max-height: 0;
    opacity: 0;
    padding: 0 1rem;
}

.legal-section .space-y-8.expanded {
    max-height: 2000px;
    opacity: 1;
    padding: 1rem;
}

/* Add smooth transition for button hover */
.legal-section button {
    transition: all 0.2s ease-out;
}

.legal-section button:hover {
    transform: translateY(-1px);
}

.legal-section button:active {
    transform: translateY(0px);
}

/* Update the existing nav-link styles to include the arrow rotation */
.nav-link {
    position: relative;
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
}


/* Add these styles in the <style> section */
.effective-date-box {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-right: 0;
    width: 100%;
}

.effective-date {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.version-number {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
}



/* Add responsive styles */
@media (max-width: 1280px) {
    .legal-container {
        margin-left: 0;
        padding: 0 3rem;
    }
}

@media (max-width: 1024px) {
    .legal-container {
        padding: 0 2rem;
        margin-left: 0;
    }
}

@media (max-width: 830px) {
    .legal-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1.5rem;
        margin-left: 0;
    }
    
    .side-nav {
        position: static;
    }
}

@media (max-width: 640px) {
    .legal-container {
        padding: 0 1rem;
        margin: 0;
    }
    
    .side-nav {
        display: none !important;
    }
}

@media (max-width: 375px) {
    .legal-container {
        padding: 0 0.75rem;
    }
}

/* Add responsive styles for effective-date-box */
@media (max-width: 1280px) {
    .legal-container {
        margin-left: 0;
        padding: 0 3rem;
    }
    .legal-section,
    .effective-date-box {
        margin-right: 0;
    }
}

@media (max-width: 1024px) {
    .legal-container {
        padding: 0 2rem;
        margin-left: 0;
    }
    .effective-date-box {
        margin-right: 0;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 830px) {
    .legal-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1.5rem;
        margin-left: 0;
        max-width: 100%;
    }
    
    .side-nav {
        position: static;
    }
    .effective-date-box {
        margin-right: 0;
        padding: 1rem;
    }
}

@media (max-width: 640px) {
    .legal-container {
        padding: 0 1rem;
        margin: 0;
    }
    
    .side-nav {
        display: none !important;
    }
    .effective-date-box {
        padding: 0.75rem;
    }
}




@media (max-width: 830px) {
    /* Update nav container padding */
    .nav-container {
        padding: 0 1.5rem;
    }

    /* Adjust logo size */
    .logo-nav {
        height: 70px;
    }
}

@media (max-width: 640px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .logo-nav {
        height: 60px;
    }
    
    .mobile-menu-item {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 0.75rem;
    }
    
    .logo-nav {
        height: 60px;
    }
    
    .logo-section span {
        font-size: 1rem;
    }
}


/* Add these new styles for the sub-category */
.side-nav-group {
    margin-left: 0;
}

/* Update the styles for the sub-category */
.side-nav-sub-item {
    padding: 0.5rem 1rem 0.5rem 2rem;
    color: white;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    opacity: 0;
    font-size: 0.9rem;
    height: 0;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    transform: translateY(-10px);
    pointer-events: none;
}

.side-nav-sub-item.visible {
    height: auto;
    opacity: 0.6;
    margin-top: 0.25rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    transform: translateY(0);
    pointer-events: auto;
}

.side-nav-sub-item:hover {
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

.side-nav-sub-item.active {
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

/* Update mobile styles */
@media (max-width: 640px) {
    .side-nav-sub-item {
        padding-left: 3rem;
    }
}




/* Mobile navigation styles */
@media (max-width: 830px) {
    /* Hide side navigation on mobile */
    .side-nav {
        display: none;
    }

    /* Adjust legal content when side nav is hidden */
    .legal-content {
        margin-left: 0;
        width: 100%;
    }

    /* Adjust legal container when side nav is hidden */
    .legal-container {
        transform: none;
        margin: 0 auto;
        padding: 0 1.5rem;
    }

    .mobile-menu-button {
        margin-right: 0;
    }
}







/* Remove responsive width scaling */
.legal-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}


/* Keep mobile breakpoint only */
@media (max-width: 830px) {
    .legal-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1.5rem;
        margin-left: 0;
    }
}

@media (max-width: 830px) {
    .nav-container {
        padding: 0 1.5rem;
    }
}



/* Update the legal container styles */
@media (min-width: 831px) {
    .legal-container {
        display: grid;
        grid-template-columns: 250px 1fr;
        gap: 2rem;
        width: 100%;
        max-width: 1440px;
        margin: 0 auto;
        padding: 2rem clamp(1rem, 5vw, 4rem);
    }
}

/* Remove grid layout and base styles below 830px */
@media (max-width: 830px) {
    .legal-container {
        display: block;
        width: 100%;
        padding: 1rem;
        margin: 0;
        gap: 0;
    }
}
