/* Terms of Service specific styles */

/* Hero Section */
.tos-hero {
    padding-top: 140px;
    padding-bottom: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: var(--gray);
}

.tos-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(107, 70, 255, 0.05) 0%, rgba(22, 223, 158, 0.05) 100%);
    z-index: 1;
}

.tos-hero-content {
    position: relative;
    z-index: 2;
}

.tos-hero h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 15px;
}

.tos-last-updated {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 0;
}

/* TOS Content Section */
.tos-content {
    padding: 60px 0 80px;
    background-color: var(--light);
}

.tos-paper {
    background-color: white;
    border-radius: 15px;
    padding: 50px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    border-top: 4px solid var(--primary); /* Replace vertical line with a clean top border */
}

/* Remove the vertical purple line */
.tos-paper::before {
    content: none; /* Remove the vertical line */
}

.tos-intro {
    margin-bottom: 40px;
}

.tos-intro h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 15px;
}

.tos-intro p {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.6;
}

.tos-paragraphs {
    margin-bottom: 40px;
}

.tos-paragraphs h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary);
    margin: 30px 0 15px;
    padding-bottom: 10px;
    position: relative;
}

.tos-paragraphs h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--secondary), rgba(22, 223, 158, 0.5));
    border-radius: 3px;
    transition: width 0.3s ease;
}

.tos-paragraphs p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 20px;
}

.tos-paragraphs a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.tos-paragraphs a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.tos-paragraphs a:hover {
    color: var(--primary-dark);
}

.tos-paragraphs a:hover::after {
    width: 100%;
}

.tos-contact-info {
    background-color: var(--gray);
    padding: 25px;
    border-radius: 10px;
    margin-top: 40px;
}

.tos-contact-info h3 {
    margin-top: 0;
}

.tos-acceptance {
    background-color: rgba(107, 70, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.tos-acceptance p {
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    margin: 0;
}

/* Active state for TOS link in footer */
.footer-links a.active {
    color: var(--primary);
    font-weight: 600;
}

/* Loading indicator for TOS content */
.loading-indicator {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-light);
}

.loading-indicator i {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--primary);
}

.loading-indicator p {
    font-size: 16px;
}

/* Error message for TOS content */
.error-message {
    text-align: center;
    padding: 20px;
    margin: 20px 0;
    background-color: rgba(255, 79, 79, 0.1);
    color: #e53935;
    border-radius: 8px;
}

/* Paragraph spacing for TOS content */
.tos-section {
    margin-bottom: 40px;
}

.tos-section-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary);
    margin: 30px 0 15px;
    padding-bottom: 10px;
    position: relative;
    border-bottom: 1px solid rgba(107, 70, 255, 0.1);
}

.tos-section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--secondary), rgba(22, 223, 158, 0.5));
    border-radius: 3px;
    transition: width 0.3s ease;
}

.tos-subsection {
    margin: 25px 0;
    padding-left: 25px; /* Increased padding for more distinct indentation */
    border-left: none; /* Keep line removed */
}

.tos-subsection-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin: 20px 0 12px;
    padding-bottom: 8px;
    position: relative;
}

.tos-subsection-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, var(--secondary) 70%, transparent);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.tos-paragraphs ul {
    margin: 15px 0;
    padding-left: 30px; /* Increased padding for list indentation */
}

.tos-paragraphs li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 15px; /* Increased padding for list items */
    line-height: 1.6;
}

.tos-paragraphs li::before {
    display: none; /* Remove the bullet point */
}

/* Hover effect for section titles */
.tos-section:hover .tos-section-title::after,
.tos-paragraphs h3:hover::after {
    width: 120px;
}

.tos-subsection:hover .tos-subsection-title::after {
    width: 60px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .tos-paper {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .tos-hero {
        padding-top: 120px;
        padding-bottom: 40px;
    }
    
    .tos-paper {
        padding: 30px 25px;
    }
    
    .tos-paper::before {
        height: 40px;
    }
    
    .tos-intro h2 {
        font-size: 24px;
    }
    
    .tos-paragraphs h3 {
        font-size: 20px;
    }
    
    .tos-section-title::after,
    .tos-paragraphs h3::after {
        width: 60px;
    }
    
    .tos-section:hover .tos-section-title::after,
    .tos-paragraphs h3:hover::after {
        width: 90px;
    }
    
    .tos-subsection {
        padding-left: 20px; /* Slightly reduced padding for smaller screens but still distinct */
    }
    
    .tos-subsection-title {
        font-size: 17px;
    }
    
    .tos-subsection-title::after {
        width: 30px;
    }
    
    .tos-subsection:hover .tos-subsection-title::after {
        width: 45px;
    }
}

@media (max-width: 576px) {
    .tos-hero h1 {
        font-size: 28px;
    }
    
    .tos-paper {
        padding: 25px 20px;
        border-radius: 10px;
    }
    
    .tos-paper::before {
        left: 20px;
    }
    
    .tos-intro {
        margin-bottom: 30px;
    }
    
    .tos-paragraphs h3 {
        margin: 25px 0 12px;
    }
    
    .tos-section-title::after,
    .tos-paragraphs h3::after {
        width: 50px;
    }
    
    .tos-section:hover .tos-section-title::after,
    .tos-paragraphs h3:hover::after {
        width: 70px;
    }
    
    .tos-contact-info {
        padding: 20px;
    }
    
    .tos-subsection {
        padding-left: 15px; /* More padding for mobile but still responsive */
    }
    
    .tos-paragraphs ul {
        padding-left: 20px; /* Increased padding for lists on mobile */
    }
    
    .tos-paragraphs li {
        padding-left: 10px; /* Increased padding for list items on mobile */
    }
}
