/* Rules / Terms page — builds on help.css layout (.faq-page / .faq-container) */

.rules-section {
    margin-top: 28px;
}

.rules-section:first-of-type {
    margin-top: 8px;
}

.rules-section-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--glass-border);
}

.rules-intro {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 16px;
}

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

.rules-terms li {
    position: relative;
    padding: 8px 0 8px 30px;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.55;
    border-bottom: 1px solid var(--glass-border);
}

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

.rules-terms li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 15px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
}

.rules-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: rule;
}

.rules-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--glass-border);
}

.rules-list li:last-child {
    border-bottom: none;
}

.rules-num {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    color: white;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    box-shadow: 0 3px 10px rgba(124, 77, 255, 0.25);
}

.rules-item-body {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

.rules-item-body b {
    color: var(--text-primary);
}

.rules-warning {
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 12px;
    background: rgba(244, 67, 54, 0.08);
    border: 1px solid rgba(244, 67, 54, 0.2);
    color: #c0392b;
    font-size: 15px;
    line-height: 1.55;
    font-weight: 600;
}

@media (max-width: 640px) {
    .rules-section-title {
        font-size: 1.1rem;
    }

    .rules-list li {
        gap: 10px;
    }
}
