/* Файл: /css/rules-page-style.css */

/* Обертка, чтобы стили применялись только к этой странице */
.rules-page-wrapper {
    /* --- ИМПОРТ ШРИФТОВ ИЗ БРЕНДБУКА --- */
    --font-main: 'LXGW WenKai TC', cursive;
    font-family: var(--font-main);
    
    /* --- ЦВЕТОВАЯ СХЕМА ИЗ БРЕНДБУКА --- */
    --bg-color: #FFFFFF;
    --card-color: #f5f5f5;
    --text-color: #000000;
    --accent-color: #D60604;
    --secondary-text-color: #555555;
    --border-color: #e0e0e0;

    background-color: var(--bg-color);
    color: var(--text-color);
    position: relative; 
    overflow-x: hidden;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.rules-page-wrapper .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}

/* --- Блок 1: Хедер --- */
.rules-page-wrapper .header {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    text-align: center;
    margin-bottom: 30px;
}
.rules-page-wrapper .header img {
    height: 60px;
    width: auto;
}
.rules-page-wrapper .header h1 {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 2.2rem;
    margin: 0;
}

/* --- Стили для страницы правил --- */
.rules-page-wrapper .rules-section {
    background-color: var(--card-color);
    border-radius: 12px;
    padding: 30px 40px;
    border-top: 4px solid var(--accent-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.rules-page-wrapper .rules-section h2 {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}
.rules-page-wrapper .rules-section h2:not(:first-child) {
    margin-top: 30px;
}

.rules-page-wrapper .rules-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.rules-page-wrapper .rules-list li {
    font-size: 1.1rem;
    color: var(--secondary-text-color);
    line-height: 1.7;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.rules-page-wrapper .rules-list li::before {
    content: '•';
    color: var(--accent-color);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
}

.rules-page-wrapper .rules-disclaimer {
    margin-top: 30px;
    padding: 20px;
    background-color: #fff;
    border: 2px dashed var(--accent-color);
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-color);
}

/* --- СТИЛИ ДЛЯ АНИМАЦИИ ОБЛАКОВ --- */
.rules-page-wrapper .cloud-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}
.rules-page-wrapper .cloud {
    position: absolute;
    animation: float linear infinite;
}
@keyframes float {
    from { transform: translateX(-100%); }
    to { transform: translateX(100vw); }
}
.rules-page-wrapper .cloud-1 { top: 5%; width: 200px; animation-duration: 40s; animation-delay: -10s; }
.rules-page-wrapper .cloud-2 { top: 15%; width: 150px; opacity: 0.8; animation-duration: 55s; animation-delay: -25s; }
.rules-page-wrapper .cloud-3 { top: 30%; width: 250px; opacity: 0.95; animation-duration: 35s; animation-delay: -5s; }
.rules-page-wrapper .cloud-4 { top: 50%; width: 180px; opacity: 0.9; animation-duration: 60s; animation-delay: -30s; }
.rules-page-wrapper .cloud-5 { bottom: 25%; width: 120px; opacity: 0.8; animation-duration: 48s; animation-delay: -15s; }
.rules-page-wrapper .cloud-6 { bottom: 10%; width: 220px; opacity: 0.85; animation-duration: 50s; animation-delay: 0s; }
.rules-page-wrapper .cloud-7 { bottom: 5%; width: 170px; opacity: 0.9; animation-duration: 70s; animation-delay: -40s; }
.rules-page-wrapper .cloud-8 { top: 70%; width: 190px; opacity: 0.95; animation-duration: 45s; animation-delay: -20s; }

/* --- Адаптивность --- */
@media (max-width: 768px) {
    .rules-page-wrapper .rules-section {
        padding: 20px;
    }
     .rules-page-wrapper .header h1 {
        font-size: 1.8rem;
    }
}