/* Terms and Conditions Page Specific CSS */
.main-bg .container.overflowcheck {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    color: #333;
    font-family: 'Assistant', sans-serif;
    line-height: 1.6;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.main-bg .container.overflowcheck h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: #222;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid #d4af37;
    padding-bottom: 10px;
    text-align: center;
}

.main-bg .container.overflowcheck .subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 2rem;
    display: block;
    text-align: center;
}

.main-bg .container.overflowcheck .subtitle .last-updated {
    font-weight: 600;
    color: #d4af37;
}

.main-bg .container.overflowcheck h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: #333;
    margin: 2rem 0 1rem;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.main-bg .container.overflowcheck h3 {
    font-family: 'Assistant', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #444;
    margin: 1.5rem 0 0.8rem;
}

.main-bg .container.overflowcheck p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: #444;
}

.main-bg .container.overflowcheck a {
    color: #d4af37;
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-bg .container.overflowcheck a:hover {
    color: #b38f2a;
    text-decoration: underline;
}

/* Table of Contents Styling */
.main-bg .container.overflowcheck .toc {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #d4af37;
    margin: 2rem 0;
}

.main-bg .container.overflowcheck .toc a {
    display: block;
    padding: 8px 12px;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 20px;
}

.main-bg .container.overflowcheck .toc a:before {
    content: "•";
    color: #d4af37;
    position: absolute;
    left: 5px;
    font-weight: bold;
}

.main-bg .container.overflowcheck .toc a:hover {
    color: #d4af37;
    background-color: #f1f1f1;
    border-radius: 4px;
}

/* List Styling */
.main-bg .container.overflowcheck ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.main-bg .container.overflowcheck ul li {
    margin-bottom: 0.8rem;
    list-style-type: disc;
}

/* Special Text Elements */
.main-bg .container.overflowcheck strong {
    font-weight: 600;
    color: #333;
}

.main-bg .container.overflowcheck em {
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-bg .container.overflowcheck {
        padding: 20px;
    }
    
    .main-bg .container.overflowcheck h1 {
        font-size: 2rem;
    }
    
    .main-bg .container.overflowcheck h2 {
        font-size: 1.5rem;
    }
    
    .main-bg .container.overflowcheck p {
        font-size: 1rem;
    }
    
    .main-bg .container.overflowcheck .toc {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .main-bg .container.overflowcheck {
        padding: 15px;
        margin: 20px auto;
    }
    
    .main-bg .container.overflowcheck h1 {
        font-size: 1.8rem;
    }
    
    .main-bg .container.overflowcheck .toc {
        padding: 15px;
    }
}