/* === TERMS OF SERVICE PAGE STYLES === */

/* === HEADER SECTION === */
.tos-header {
    padding: var(--space-16) 0 var(--space-8);
    text-align: center;
    position: relative;
    margin-top: 72px; /* Adjust for the fixed header */
    background-color: var(--dark);
}

.tos-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at center, rgba(255, 30, 79, 0.15) 0%, transparent 70%);
    z-index: 0;
}

.tos-header h1 {
    font-size: 3.5rem;
    font-weight: 900;
    position: relative;
    z-index: 1;
    margin-bottom: var(--space-2);
    color: var(--text);
}

.tos-header .last-updated {
    font-size: 1.1rem;
    color: var(--text-alt);
    position: relative;
    z-index: 1;
}

/* === CONTENT SECTION === */
.tos-content {
    padding: var(--space-8) 0 var(--space-20);
    background-color: var(--dark);
}

.tos-wrapper {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: var(--space-8);
}

/* Sidebar navigation */
.tos-nav {
    position: relative;
}

.tos-nav-inner {
    position: sticky;
    top: calc(72px + var(--space-8)); /* Header height + padding */
    background-color: var(--dark-alt);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-md);
}

.tos-nav h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--primary);
}

.tos-nav ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.tos-nav ul li a {
    display: block;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    color: var(--text-alt);
    transition: all var(--transition-fast);
    font-size: 0.95rem;
}

.tos-nav ul li a:hover {
    background-color: rgba(255, 30, 79, 0.1);
    color: var(--primary);
    transform: translateX(3px);
}

.tos-nav ul li a.active {
    background-color: rgba(255, 30, 79, 0.15);
    color: var(--primary);
    font-weight: 600;
}

/* Document styling */
.tos-document {
    background-color: var(--dark-alt);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-md);
}

.tos-section {
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    scroll-margin-top: 100px; /* For smooth scrolling to anchors */
}

.tos-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.tos-section h2 {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
}

.tos-section h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 24px;
    background-color: var(--primary);
    margin-right: var(--space-3);
    border-radius: var(--radius-md);
}

.tos-section p {
    color: var(--text-alt);
    line-height: 1.7;
    margin-bottom: var(--space-4);
    font-size: 1.05rem;
}

.tos-section ul {
    list-style: disc;
    padding-left: var(--space-6);
    margin-bottom: var(--space-4);
}

.tos-section ul li {
    color: var(--text-alt);
    margin-bottom: var(--space-2);
    line-height: 1.6;
    font-size: 1.05rem;
    padding-left: var(--space-2);
}

.tos-section a {
    color: var(--primary);
    text-decoration: none;
    transition: all var(--transition-fast);
    border-bottom: 1px dashed rgba(255, 30, 79, 0.3);
}

.tos-section a:hover {
    color: var(--primary-light);
    border-bottom-color: var(--primary-light);
}

/* Contact section special styling */
#contact p {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

#contact strong {
    min-width: 80px;
    color: var(--text);
}

/* Responsive styles */
@media (max-width: 1024px) {
    .tos-wrapper {
        grid-template-columns: 1fr;
    }
    
    .tos-nav {
        margin-bottom: var(--space-6);
    }
    
    .tos-nav-inner {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .tos-header h1 {
        font-size: 2.5rem;
    }
    
    .tos-section h2 {
        font-size: 1.5rem;
    }
    
    .tos-document {
        padding: var(--space-6) var(--space-4);
    }
}

@media (max-width: 576px) {
    .tos-header h1 {
        font-size: 2rem;
    }
    
    .tos-nav ul li a {
        font-size: 0.9rem;
        padding: var(--space-2);
    }
    
    .tos-section h2 {
        font-size: 1.3rem;
    }
    
    .tos-section p,
    .tos-section ul li {
        font-size: 1rem;
    }
}