/* Стили для страниц Политики конфиденциальности и Условий использования */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
}

/* Принудительное применение стилей */
body * {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Заголовки страниц */
.privacy-header,
.terms-header {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

/* Контейнеры */
.privacy-container,
.terms-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Заголовки разделов */
.section-title {
    position: relative;
    padding-bottom: 0.5rem;
    margin: 2rem 0 1.5rem;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

/* Основные списки */
ol.list-main {
    counter-reset: section;
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

ol.list-main > li {
    counter-increment: section;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    position: relative;
    padding-left: 0;
}

ol.list-main > li:before {
    content: counters(section, ".") ". " !important;
    font-weight: bold !important;
    color: var(--primary-color) !important;
    font-size: 1.2rem !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
}

ol.list-main > li > .section-title {
    margin-left: 2rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Подсписки */
ol.list-sub {
    counter-reset: subsection;
    list-style-type: none;
    padding-left: 2rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

ol.list-sub > li {
    counter-increment: subsection;
    margin-bottom: 0.8rem;
    line-height: 1.5;
    position: relative;
}

ol.list-sub > li:before {
    content: counters(section, ".") "." counters(subsection, ".") " " !important;
    font-weight: bold !important;
    color: var(--primary-color) !important;
    position: absolute !important;
    left: -2rem !important;
    top: 0 !important;
}

/* Обычные списки внутри */
ol.list-sub ul {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
    margin-left: 0;
}

ol.list-sub ul li {
    margin-bottom: 0.3rem;
    list-style-type: disc;
    line-height: 1.4;
}

/* Блок последнего обновления */
.last-update {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-top: 3rem;
    border-left: 4px solid var(--primary-color);
}

.last-update h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Навигация */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Футер */
footer {
    background-color: #212529 !important;
    color: white;
}

footer h3 {
    color: white;
    margin-bottom: 1rem;
}

footer a {
    color: #adb5bd;
    transition: color 0.3s ease;
}

footer a:hover {
    color: white;
    text-decoration: none;
}

/* Адаптивность */
@media (max-width: 768px) {
    .privacy-header,
    .terms-header {
        padding: 2rem 0;
    }
    
    .privacy-container,
    .terms-container {
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    ol.list-main > li {
        margin-bottom: 1rem;
    }
    
    ol.list-sub {
        padding-left: 1.5rem;
    }
    
    ol.list-sub > li:before {
        left: -1.5rem;
    }
}
