/* 
 * SBOBET88 - Terms and Conditions Page Styles
 * Specific styles for the Terms page
 */

/* Hero Section */
.terms-hero {
    background: linear-gradient(rgba(9, 30, 91, 0.85), rgba(9, 30, 91, 0.85)), url('/img/terms-hero.jpg') no-repeat center center;
    background-size: cover;
    padding: 5rem 0;
    color: white;
    text-align: center;
    position: relative;
}

.terms-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.terms-hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
}

/* Terms Content Layout */
.terms-content {
    padding: 3rem 0 5rem;
    background: #f8f9fa;
}

.terms-content .container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
}

/* Sidebar Styles */
.terms-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 1.5rem;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
}

.terms-toc h3 {
    color: #091e5b;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #e0e0e0;
}

.terms-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.terms-toc li {
    margin-bottom: 0.8rem;
}

.terms-toc a {
    color: #444;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 0.5rem;
    border-radius: 4px;
}

.terms-toc a:hover {
    color: #0056b3;
    background: #f0f7ff;
}

.terms-toc a.active {
    color: #0056b3;
    background: #f0f7ff;
    font-weight: 600;
    border-left: 3px solid #0056b3;
    padding-left: 0.8rem;
}

.terms-last-updated {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
    font-size: 0.9rem;
    color: #666;
}

.terms-last-updated p {
    margin: 0;
}

.terms-last-updated span {
    font-weight: 600;
    color: #091e5b;
}

/* Main Content Styles */
.terms-main {
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 2rem;
}

.terms-date {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
    color: #666;
    font-size: 0.9rem;
}

.terms-section {
    margin-bottom: 3rem;
    scroll-margin-top: 100px;
}

.terms-section:last-child {
    margin-bottom: 0;
}

.terms-section h2 {
    color: #091e5b;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #e0e0e0;
    scroll-margin-top: 100px;
}

.terms-section h3 {
    color: #091e5b;
    margin: 2rem 0 1rem;
    scroll-margin-top: 100px;
}

.terms-section p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #444;
}

.terms-section ul, 
.terms-section ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.terms-section li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
    color: #444;
}

.terms-section a {
    color: #0056b3;
    text-decoration: none;
    border-bottom: 1px dotted #0056b3;
    transition: all 0.3s ease;
}

.terms-section a:hover {
    color: #003d82;
    border-bottom-style: solid;
}

.terms-note {
    background: #f8f9fa;
    border-left: 4px solid #0056b3;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 4px 4px 0;
}

.terms-note p {
    margin: 0;
}

.contact-info {
    background: #f0f7ff;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.contact-item {
    display: flex;
    margin-bottom: 1rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-label {
    flex: 0 0 100px;
    font-weight: 600;
    color: #091e5b;
}

.contact-value a {
    color: #0056b3;
    border-bottom: none;
}

.contact-value a:hover {
    text-decoration: underline;
}

.terms-acknowledgment {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
    text-align: center;
    font-style: italic;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: #0056b3;
    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;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 100;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background: #003d82;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .terms-content .container {
        grid-template-columns: 1fr;
    }
    
    .terms-sidebar {
        position: relative;
        top: 0;
        max-height: none;
        margin-bottom: 2rem;
    }
    
    .terms-toc ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .terms-toc li {
        margin-bottom: 0;
    }
    
    .terms-toc a {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .terms-toc a.active {
        border-left: none;
        padding-left: 1rem;
    }
}

@media (max-width: 768px) {
    .terms-hero h1 {
        font-size: 2rem;
    }
    
    .terms-hero p {
        font-size: 1.1rem;
    }
    
    .terms-main {
        padding: 1.5rem;
    }
    
    .terms-date {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .terms-section h2 {
        font-size: 1.5rem;
    }
    
    .terms-section h3 {
        font-size: 1.2rem;
    }
    
    .contact-item {
        flex-direction: column;
    }
    
    .contact-label {
        margin-bottom: 0.3rem;
    }
    
    #back-to-top {
        bottom: 20px;
        right: 20px;
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .terms-hero h1 {
        font-size: 1.8rem;
    }
    
    .terms-hero p {
        font-size: 1rem;
    }
    
    .terms-main {
        padding: 1.2rem;
    }
    
    .terms-toc a {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .terms-note {
        padding: 1rem;
    }
}