/* các nút */
.btn-gradient {
    background: var(--primary-gradient);
    border: none;
    color: white;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.btn-gradient:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 188, 211, 0.4);
}

.btn-outline-gradient {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background: transparent;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-gradient:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

.terms-page-title {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

/* nội dung điều khoản */
.terms-content {
    background: white;
    padding: 60px 0;
    min-height: calc(100vh - 300px);
    margin-top : 3rem ;
}

.toc-sidebar {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    position: sticky;
    top: 100px;
    height: fit-content;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.toc-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
}

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

.toc-list li {
    margin-bottom: 8px;
}

.toc-list a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: block;
    padding: 10px 12px;
    border-left: 3px solid transparent;
    border-radius: 6px;
}

.toc-list a:hover {
    color: var(--primary-color);
    padding-left: 16px;
    background-color: rgba(102, 126, 234, 0.08);
}

.toc-list a.active {
    color: white;
    background: var(--primary-gradient);
    border-left-color: white;
    font-weight: 600;
}

.terms-body {
    background: white;
    padding: 0;
}

.terms-section {
    margin-bottom: 50px;
    padding-bottom: 40px;
    scroll-margin-top: 100px;
}

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

.terms-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    padding-bottom: 12px;
    display: inline-block;
}

.terms-section p {
    color: var(--text-light);
    margin-bottom: 18px;
    line-height: 1.8;
}

.terms-section p:last-of-type {
    margin-bottom: 0;
}

.terms-list {
    background: var(--light-bg);
    padding: 25px 40px;
    border-radius: 10px;
    margin: 25px 0;
    list-style: none;
}

.terms-list li {
    color: var(--text-light);
    margin-bottom: 14px;
    line-height: 1.8;
    padding-left: 1rem;
    position: relative;
}

.terms-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.terms-list li:last-child {
    margin-bottom: 0;
}

.terms-list strong {
    color: var(--text-color);
    font-weight: 600;
}

.contact-info {
    background: rgba(102, 126, 234, 0.08);
    padding: 25px;
    border-radius: 10px;
    margin-top: 25px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.contact-info p {
    margin-bottom: 14px;
    color: var(--text-light);
}

.contact-info p:last-child {
    margin-bottom: 0;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--secondary-color);
}

/*  ACKNOWLEDGMENT*/
.terms-acknowledgment {
    margin-top: 60px;
}

.alert-info {
    background-color: rgba(102, 126, 234, 0.08);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    color: var(--text-color);
    padding: 20px;
}

.alert-info .alert-heading {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 15px;
}

.alert-info p {
    color: var(--text-light);
    margin-bottom: 0;
    line-height: 1.8;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .terms-page-title {
        font-size: 1.8rem;
    }

    .toc-sidebar {
        margin-bottom: 30px;
        position: relative;
        top: auto;
    }

    .terms-section h2 {
        font-size: 1.3rem;
    }

    .terms-list {
        padding: 20px 30px;
    }
}