/*
 * Стили для страницы пользовательского соглашения
 * Добавить в конец файла pages.css
 */

/* ================================
   TERMS OF USE PAGE
   ================================ */

.terms-content {
    max-width: none;
    line-height: 1.8;
}

.terms-header {
    margin-bottom: 3rem;
}

.terms-intro {
    background: rgba(30, 64, 175, 0.05);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 2rem;
}

.terms-intro .lead {
    font-size: 1.1rem;
    margin-bottom: 0;
    color: var(--text-primary);
    font-weight: 500;
}

.terms-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.terms-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.terms-section-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--crypto-accent);
    display: inline-block;
}

.terms-definitions {
    margin: 1.5rem 0;
}

.definition-item {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.definition-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px var(--shadow-color);
}

.definition-item strong {
    color: var(--crypto-accent);
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.terms-list {
    margin: 1rem 0;
}

.terms-list-item {
    display: flex;
    margin-bottom: 1.5rem;
    align-items: flex-start;
    gap: 1rem;
}

.item-number {
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 40px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.item-text {
    flex: 1;
    color: var(--text-primary);
    line-height: 1.7;
}

.terms-sublist {
    margin-top: 0.75rem;
    margin-bottom: 0;
    padding-left: 1.5rem;
}

.terms-sublist li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    position: relative;
}

.terms-sublist li::marker {
    color: var(--crypto-accent);
}

.terms-footer {
    border-top: 2px solid var(--border-color);
}

.terms-footer .alert {
    border: none;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1), rgba(217, 151, 6, 0.1));
    border-left: 4px solid var(--info-color);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 0;
}

.terms-footer .alert i {
    color: var(--info-color);
}

/* Темная тема */
[data-theme="dark"] .terms-intro {
    background: rgba(30, 64, 175, 0.15);
    border-left-color: var(--primary-color);
}

[data-theme="dark"] .definition-item {
    background: var(--bg-color);
}

[data-theme="dark"] .terms-footer .alert {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.2), rgba(217, 151, 6, 0.2));
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .terms-content {
        padding: 1.5rem;
    }

    .terms-section-title {
        font-size: 1.3rem;
        line-height: 1.3;
        word-wrap: break-word;
    }

    .terms-list-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .item-number {
        align-self: flex-start;
        min-width: auto;
        width: auto;
    }

    .terms-intro {
        padding: 1rem;
    }

    .terms-intro .lead {
        font-size: 1rem;
    }

    .definition-item {
        padding: 0.75rem;
    }

    .terms-sublist {
        padding-left: 1rem;
    }
}

@media (max-width: 576px) {
    .terms-section-title {
        font-size: 1.2rem;
    }

    .page-section-title {
        font-size: 1.8rem;
    }
}