.terms-wrapper {
    max-width: 860px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

.terms-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.terms-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.terms-header .last-updated {
    color: #6c757d;
    font-size: 0.9rem;
}

/* ===== Disclaimer box — most prominent element ===== */
.disclaimer-box {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    border: 2px solid #ffc107;
    border-radius: 16px;
    padding: 1.75rem 1.75rem;
    margin-bottom: 2rem;
}

.disclaimer-box .disclaimer-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.75rem;
}

.disclaimer-box h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #664d03;
    margin-bottom: 0.75rem;
}

.disclaimer-box p {
    color: #523e02;
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 0;
}

/* ===== No-responsibility danger box ===== */
.no-responsibility-box {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 2px solid #dc3545;
    border-radius: 16px;
    padding: 1.75rem 1.75rem;
    margin-bottom: 2.5rem;
}

.no-responsibility-box h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #58151c;
    margin-bottom: 0.75rem;
}

.no-responsibility-box p {
    color: #4a1219;
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 0;
}

/* ===== Table of contents ===== */
.toc-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
}

.toc-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.375rem 1rem;
}

.toc-list a {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.toc-list a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* ===== Section styles ===== */
.terms-section {
    margin-bottom: 2.25rem;
    scroll-margin-top: 80px;
}

.terms-section h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.terms-section p {
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ===== Back button ===== */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
    margin-top: 1.5rem;
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
    color: white;
}

@media (max-width: 768px) {
    .terms-header h1 {
        font-size: 1.5rem;
    }

    .toc-list {
        grid-template-columns: 1fr;
    }

    .disclaimer-box,
    .no-responsibility-box {
        padding: 1.25rem;
    }
}
