/* Terms & Conditions Page Styles */

/* Table of Contents Sidebar */
.terms-toc {
    position: sticky;
    top: 0px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    z-index: 10;
}

.terms-toc-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a4a66;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #34c5a1;
}

.terms-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.terms-toc li {
    margin-bottom: 0.5rem;
}

.terms-toc a {
    color: #6c757d;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    display: block;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.terms-toc a:hover {
    background: #f8f9fa;
    color: #1a4a66;
    padding-left: 1rem;
}

.terms-toc a.active {
    background: #34c5a1;
    color: #fff;
}

/* Terms Section Cards */
.terms-section-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e8ecf0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.terms-section-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.terms-section-card h3 {
    color: #1a4a66;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.terms-section-card h3 i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #34c5a1 0%, #2ba888 100%);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.terms-section-card ul {
    list-style: none;
    padding: 0;
}

.terms-section-card ul li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f2f4;
    position: relative;
    padding-left: 2rem;
}

.terms-section-card ul li:last-child {
    border-bottom: none;
}

.terms-section-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #34c5a1;
    font-weight: bold;
}

.terms-section-card ol {
    padding-left: 1.5rem;
}

.terms-section-card ol li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f2f4;
}

.terms-section-card ol li:last-child {
    border-bottom: none;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #34c5a1;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(52, 197, 161, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    background: #2ba888;
    transform: translateY(-3px);
}

.back-to-top.show {
    display: flex;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, rgba(52, 197, 161, 0.1) 0%, rgba(52, 197, 161, 0.05) 100%);
    border-left: 4px solid #34c5a1;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* Important Notice Box */
.important-notice {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 193, 7, 0.05) 100%);
    border-left: 4px solid #ffc107;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* Responsive Design */
@media (max-width: 991px) {
    .terms-toc {
        position: static;
        margin-bottom: 2rem;
        max-height: none;
    }
}
