/* Terms & Privacy Pages Styles */
.terms-section, .privacy-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.terms-content, .privacy-content {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.terms-intro, .privacy-intro {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 40px;
    border-left: 4px solid #007bff;
}

.terms-intro p, .privacy-intro p {
    margin-bottom: 10px;
    color: #495057;
}

.terms-intro p:last-child, .privacy-intro p:last-child {
    margin-bottom: 0;
}

.terms-sections, .privacy-sections {
    margin-top: 40px;
}

.terms-section-item, .privacy-section-item {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e9ecef;
}

.terms-section-item:last-child, .privacy-section-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.terms-section-item h2, .privacy-section-item h2 {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.terms-section-item h2::before, .privacy-section-item h2::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #007bff;
    border-radius: 50%;
    margin-right: 15px;
}

.terms-section-item p, .privacy-section-item p {
    font-size: 16px;
    line-height: 1.7;
    color: #495057;
    margin-bottom: 20px;
}

.terms-section-item ul, .privacy-section-item ul {
    margin: 20px 0;
    padding-left: 30px;
}

.terms-section-item li, .privacy-section-item li {
    font-size: 16px;
    line-height: 1.7;
    color: #495057;
    margin-bottom: 12px;
}

.terms-section-item strong, .privacy-section-item strong {
    color: #2c3e50;
    font-weight: 600;
}

.terms-footer, .privacy-footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    padding: 30px;
    margin-top: 40px;
    color: white;
    text-align: center;
}

.terms-footer p, .privacy-footer p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.terms-footer p:last-child, .privacy-footer p:last-child {
    margin-bottom: 0;
}

.terms-footer strong, .privacy-footer strong {
    color: white;
    font-weight: 700;
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #007bff, #28a745);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.scroll-to-top i {
    font-size: 20px;
}

/* Table of contents */
.table-of-contents {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 40px;
    position: sticky;
    top: 20px;
}

.table-of-contents h3 {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
}

.table-of-contents li {
    margin-bottom: 10px;
}

.table-of-contents a {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.table-of-contents a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .terms-content, .privacy-content {
        padding: 30px 20px;
        margin: 0 15px;
    }
    
    .terms-section-item h2, .privacy-section-item h2 {
        font-size: 20px;
    }
    
    .terms-section-item p, .privacy-section-item p,
    .terms-section-item li, .privacy-section-item li {
        font-size: 15px;
    }
    
    .table-of-contents {
        position: static;
        margin-bottom: 30px;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Print styles */
@media print {
    .terms-content, .privacy-content {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .scroll-to-top {
        display: none;
    }
    
    .terms-section-item h2, .privacy-section-item h2 {
        page-break-after: avoid;
    }
}
