/* ===== СТИЛИ ДЛЯ СТРАНИЦЫ ПОЛИТИКИ COOKIES ===== */

/* Таблица cookies */
.cookie-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.95em; }
.cookie-table th, .cookie-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #ddd; }
.cookie-table th { background-color: #f5f5f5; font-weight: 600; color: #333; }
.cookie-value { word-break: break-all; max-width: 200px; }
.delete-cookie-btn { background-color: #ff4444; color: white; border: none; padding: 6px 12px; border-radius: 4px; cursor: pointer; transition: background-color 0.3s; font-size: 0.9rem; }
.delete-cookie-btn:hover { background-color: #cc0000; }
.cookie-controls { display: flex; gap: 10px; margin: 20px 0; }
#deleteAllCookies, #saveCookiePreferences { padding: 8px 16px; margin: 5px; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; }
#deleteAllCookies { background-color: #ff4444; color: white; }
#deleteAllCookies:hover { background-color: #cc0000; }
#saveCookiePreferences { background-color: #4CAF50; color: white; }
#saveCookiePreferences:hover { background-color: #45a049; }
#cookiesList td[colspan] { font-style: italic; color: #666; background-color: #f9f9f9; }

/* Информационные блоки категорий */
.cookie-category-info { border: 1px solid #e0e0e0; border-radius: 8px; padding: 15px; margin-bottom: 15px; background: #f9f9f9; }
.cookie-category-info h4 { margin-top: 0; color: #333; display: flex; align-items: center; gap: 10px; }
.cookie-category-info p { margin: 5px 0; color: #555; }
.cookie-category-info p strong { color: #509e9c; }

.cookie-category-detail { margin: 10px 0;}
.cookie-category-detail p { margin: 5px 0; color: #555; }
.cookie-section__content ul { margin: 10px 0; padding-left: 40px; }
.cookie-section__content li { margin: 10px 0; padding-left: 10px; }

/* Аккордеоны политики */
.cookie-section { border: 1px solid #e0e0e0; border-radius: 8px; margin-bottom: 15px; overflow: hidden; }
.cookie-section__title { margin: 0; padding: 15px 20px; background: #f8f9fa; cursor: pointer; font-size: 1.3rem; color: #333; border-bottom: 1px solid #e0e0e0; }
.cookie-section__title:hover { background: #e9ecef; }
.cookie-section.active .cookie-section__title { background: #509e9c; color: white; }
.cookie-section__content { padding: 20px; display: none; }
.cookie-section.active .cookie-section__content { display: block; }
.cookie-section__content h4 { margin-top: 20px; color: #509e9c;  font-weight:600; }
.cookie-management-tool { margin-top: 30px; padding: 20px; background: #f8f9fa; border-radius: 8px; }

/* Стили для управления cookies (раздел 3) */
.cookie-control-method { background: white; border: 1px solid #e0e0e0; border-radius: 8px; padding: 20px; margin: 20px 0; border-left: 4px solid #509e9c; }
.cookie-control-method h4 { margin-top: 0; display: flex; align-items: center; gap: 10px; color: #333; }
.browser-instructions { background: #f8f9fa; border: 1px solid #dee2e6; border-radius: 6px; padding: 15px; margin: 15px 0; }
.browser-instructions h5 { color: #555; margin-top: 15px; padding-bottom: 5px; border-bottom: 1px dashed #ddd; }
.browser-note { background: #e3f2fd; border: 1px solid #bbdefb; border-radius: 6px; padding: 10px 15px; margin: 15px 0; }
.cookie-control-tool { background: #fff8e1; border: 2px solid #ffd54f; border-radius: 8px; padding: 20px; margin: 25px 0; }

/* Стили для сроков хранения (раздел 4) */
.cookie-lifetime-comparison { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin: 20px 0; }
.lifetime-type { background: white; border: 1px solid #e0e0e0; border-radius: 8px; padding: 20px; border-top: 4px solid #509e9c; }
.lifetime-type h4 { margin-top: 0; display: flex; align-items: center; gap: 10px; color: #333; padding-bottom: 10px; border-bottom: 1px solid #eee; }
.lifetime-details p { margin: 8px 0; }
.lifetime-details ul { margin: 10px 0; padding-left: 20px; }
.specific-lifetimes { background: #f8f9fa; border: 1px solid #dee2e6; border-radius: 8px; padding: 20px; margin: 25px 0; overflow-x: auto; }
.lifetime-table { width: 100%; border-collapse: collapse; margin: 15px 0; }
.lifetime-table th { background: #509e9c; color: white; padding: 12px 15px; text-align: left; font-weight: 600; }
.lifetime-table td { padding: 10px 15px; border-bottom: 1px solid #e0e0e0; }
.lifetime-table tr:hover { background: #f5f5f5; }
.lifetime-table code { background: #e8f5e9; padding: 2px 6px; border-radius: 4px; font-family: monospace; color: #2e7d32; }
.lifetime-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; margin: 25px 0; }
.note { background: white; border: 1px solid #e0e0e0; border-radius: 6px; padding: 15px; border-left: 3px solid #2196f3; }
.note h5 { margin-top: 0; display: flex; align-items: center; gap: 8px; color: #333; }
.lifetime-summary { background: #e3f2fd; border: 2px solid #2196f3; border-radius: 8px; padding: 20px; margin: 25px 0; font-size: 1.1rem; }

/* Стили для email и обновлений (раздел 5) */
.email-tracking-section { background: white; border: 1px solid #e0e0e0; border-radius: 8px; padding: 20px; margin: 25px 0; }
.policy-updates-section { background: white; border: 1px solid #e0e0e0; border-radius: 8px; padding: 20px; margin: 25px 0; }
.contacts-section { background: white; border: 1px solid #e0e0e0; border-radius: 8px; padding: 20px; margin: 25px 0; }
.email-privacy { background: #f3e5f5; border: 1px solid #ce93d8; border-radius: 6px; padding: 15px; margin: 15px 0; }
.email-optout { background: #ffebee; border: 1px solid #ef9a9a; border-radius: 6px; padding: 15px; margin: 15px 0; }
.update-process { background: #f5f5f5; border-radius: 6px; padding: 15px; margin: 15px 0; }
.user-responsibility { background: #f5f5f5; border-radius: 6px; padding: 15px; margin: 15px 0; }
.archive-note { background: #e8eaf6; border: 1px solid #9fa8da; border-radius: 6px; padding: 15px; margin: 15px 0; }
.contact-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin: 20px 0; }
.contact-method { background: #f8f9fa; border: 1px solid #dee2e6; border-radius: 8px; padding: 15px; }
.policy-version-final { background: #e8f5e9; border: 2px solid #4caf50; border-radius: 10px; padding: 25px; margin: 30px 0; }
.version-card { background: white; border: 1px solid #c8e6c9; border-radius: 8px; padding: 20px; margin: 20px 0; }
.version-table { width: 100%; border-collapse: collapse; }
.version-table tr { border-bottom: 1px solid #e0e0e0; }
.version-table td { padding: 10px 5px; }
.version-table td:first-child { width: 40%; font-weight: bold; color: #555; }
.status-active { background: #4caf50; color: white; padding: 3px 10px; border-radius: 12px; font-size: 0.9em; }
.legal-note { background: #fff3e0; border: 1px solid #ffb74d; border-radius: 6px; padding: 15px; margin-top: 20px; }



/* Карточки для мобильных таблиц */
.mobile-table-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.mobile-table-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background: #f9f9f9;
}
.mobile-table-card h6 {
    font-size: 18px;	
    line-height: 20px;	
    margin-top: 0;
    color: #509e9c;
    border-bottom: 1px solid #eee;
    padding-bottom: 4px;
}

/* TECHNICAL PAGES */

.info-page__title { margin: 0; padding: 15px 20px; font-weight:600; background: #e9ecef; cursor: pointer; font-size: 1.3rem; color: #333; border-bottom: 1px solid #e0e0e0; }
.info-page__title:hover { background: #f8f9fa; }


.main_policy {max-width:1920px;}
.info-page-container {padding:10px 20px; font-size:16px; line-height:1.5;}

/* Общие стили списков */
.info-page-container ul, .info-page-container ol, .info-page-container h3 {list-style-position:outside;}
.info-page-container h3, .info-page-container p, .info-page-container ul {margin:15px !important;}

/* Smartlist */
.smartlist-item .smartlist-header {padding:10px; position:relative; cursor:pointer;}
.smartlist-content {padding-top:10px;margin-bottom:6px;}

/* Таблицы */
.smartlist-content table {width:100%; margin-bottom:12px; font-size:17px; line-height:22px;}
.smartlist-content tr {border:1px solid #509e9c;}
.smartlist-content td, .smartlist-content th {border:1px solid #333; padding:1%; vertical-align:top;}

/* Общие текстовые стили */
.info-page-container th {font-size:18px; font-weight:bold; box-shadow:0 5px 15px rgba(80,158,156,0.2);}
.info-page-container ul, .info-page-container ol, .info-page-container p, .info-page-container li, .info-page-container td,
 .info-page-container th {font-size:18px; line-height:22px; margin-bottom:6px;}
.info-page-container thead {padding:10px 10px;}

/* ОБЫЧНЫЕ списки (не .focus-list) */
.info-page-container ul:not(.focus-list) li {list-style-type:square; margin-bottom:8px; position:relative;}
.info-page-container ul:not(.focus-list) li::before {content:""; position:absolute; left:-20px; top:10px; width:8px; height:8px; background-color:#333;}
.info-page-container ol {counter-reset:item;}
.info-page-container ol li {margin-bottom:15px; position:relative; padding-left:5px;}

/* Вложенные обычные списки */
.info-page-container ul:not(.focus-list) ul, .info-page-container ol ol {padding-left:30px; margin:8px 0;}
.info-page-container ul:not(.focus-list) ul li {list-style-type:circle; margin-bottom:5px;}

/* FOCUS-LIST (галочки) */
.focus-list {list-style-type:none; padding-left:0;}
.focus-list li {position:relative; padding-left:35px; margin-bottom:10px;}
.focus-list li::before {content:"✓"; color:#509e9c; font-weight:bold; position:absolute; left:12px; top:50%; transform:translateY(-50%);}

.version-info h4 {margin:10px 10px;font-size: 1.35rem; color: #333;font-weight:600;}
.version-info tr {margin:10px 0px;}
.version-info td {padding:10px 20px;}


/* Остальное */
span.reverse {unicode-bidi:bidi-override; direction:rtl; text-decoration:underline;}
::marker {unicode-bidi:isolate; font-variant-numeric:tabular-nums; text-transform:none; text-indent:0px !important; text-align:start !important; text-align-last:auto !important;}





/* Адаптивные таблицы */
@media (max-width: 767px) {
	
	.info-page-container {padding:10px 10px;}	
	
    .cookie-table { display: block; overflow-x: auto; }
    .cookie-table th, .cookie-table td { padding: 8px 10px; font-size: 0.9rem; }
    .delete-cookie-btn { padding: 4px 8px; font-size: 0.85rem; }
    .cookie-lifetime-comparison { grid-template-columns: 1fr; }
    .contact-methods { grid-template-columns: 1fr; }
	
    .responsive-table {
        display: block;
    }
    .responsive-table thead {
        display: none;
    }
    .responsive-table tbody, 
    .responsive-table tr, 
    .responsive-table td {
        display: block;
        width: 100%;
    }
    .responsive-table tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 5px;
        padding: 10px;
    }
    .responsive-table td {
        text-align: left;
        padding: 5px 10px;
        border: none;
        border-bottom: 1px dashed #eee;
    }
    .responsive-table td:last-child {
        border-bottom: none;
    }
    .responsive-table td:before {
        content: attr(data-label) ": ";
        font-weight: bold;
        display: inline-block;
        min-width: 120px;
    }
}


@media (max-width: 480px) {
    .cookie-table thead { display: none; }
    .cookie-table tbody, .cookie-table tr, .cookie-table td { display: block; width: 100%; }
    .cookie-table tr { margin-bottom: 15px; border: 1px solid #ddd; border-radius: 4px; overflow: hidden; }
    .cookie-table td { padding: 8px 10px; border: none; border-bottom: 1px solid #eee; position: relative; padding-left: 40%; }
    .cookie-table td:before { content: attr(data-label); position: absolute; left: 10px; top: 8px; width: 35%; font-weight: bold; white-space: nowrap; }
    .cookie-table td:last-child { border-bottom: none; }
    .delete-cookie-btn { width: 100%; margin-top: 5px; }
    .cookie-controls { flex-direction: column; }
	.cookie-section__content {    padding: 10px;}

.info-page-container {    padding: 10px 5px;}
.info-page-container h3, .info-page-container p, .info-page-container ul {     margin: 10px 0px !important; }

.cookie-section__content h4 { font-size: 1.35rem;}


.version-info td {padding:10px 10px;}	
	
}