/* ========================================
   СТИЛИ ЮРИДИЧЕСКИХ СТРАНИЦ — legal.css
   ========================================
   Используется на:
   - /privacy.html
   - /terms.html
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', Arial, Helvetica, sans-serif;
    line-height: 1.8;
    color: #1e293b;
    background: #f1f5f9;
    padding-top: 50px;
}

@media (max-width: 768px) {
    body {
        padding-top: 56px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 52px;
    }
}

/* ===== Контейнер контента ===== */
.legal-container {
    max-width: 1000px;
    margin: auto;
    background: #ffffff;
    padding: 50px 60px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* ===== Заголовки ===== */
h1 {
    color: #053c3c;
    font-size: 32px;
    border-bottom: 4px solid #00966a;
    padding-bottom: 15px;
    margin-bottom: 10px;
}

.update-date {
    color: #64748b;
    font-style: italic;
    display: block;
    margin-bottom: 30px;
}

h2 {
    color: #0f172a;
    font-size: 20px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

/* ===== Списки ===== */
ul,
ol {
    padding-left: 25px;
    margin: 10px 0;
}

li {
    margin-bottom: 8px;
}

/* ===== Блоки выделения ===== */
.highlight-box {
    background: rgba(0, 150, 106, 0.08);
    padding: 20px 25px;
    border-left: 5px solid #00966a;
    border-radius: 8px;
    margin: 20px 0;
}

.highlight-box strong {
    color: #053c3c;
}

/* ===== Содержание ===== */
.table-of-contents {
    background: #f8fafc;
    padding: 20px 25px;
    border-radius: 10px;
    margin: 20px 0;
    border: 1px solid #e2e8f0;
}

.table-of-contents a {
    color: #053c3c;
    text-decoration: none;
}

.table-of-contents a:hover {
    color: #00966a;
    text-decoration: underline;
}

/* ===== Ссылка «Назад» ===== */
.back-link {
    display: inline-block;
    margin-top: 30px;
    color: #053c3c;
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    color: #00966a;
    text-decoration: underline;
}

/* ===== Таблицы ===== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 14px;
}

table th,
table td {
    padding: 10px;
    border: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: top;
}

table th {
    background: #f8fafc;
}

/* ===== Общие ссылки ===== */
a {
    color: #00966a;
}

/* ===== Адаптив ===== */
@media (max-width: 768px) {
    .legal-container {
        margin: 20px auto;
        padding: 25px 20px;
    }

    h1 {
        font-size: 26px;
    }

    table {
        font-size: 12px;
    }

    table th,
    table td {
        padding: 6px;
    }
}