/* docs/style.css - общие стили для правовых документов */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    background: #f0f2f5;
    color: #1a1a2e;
    line-height: 1.6;
    padding: 40px 20px;
}

.document-container {
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: font-size 0.2s ease;
}

/* Панель инструментов */
.toolbar {
    background: #2c3e50;
    padding: 12px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #1a2a3a;
}

.toolbar-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.toolbar button {
    background: #f7a82d;
    border: none;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: #1e1e2a;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.toolbar button i {
    font-size: 16px;
}

.toolbar button:hover {
    background: #e0941a;
}

.font-controls {
    display: flex;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    padding: 5px 10px;
    border-radius: 40px;
}

.font-controls button {
    background: transparent;
    color: white;
    padding: 4px 10px;
    font-size: 16px;
}

.font-controls button:hover {
    background: rgba(255,255,255,0.2);
}

/* Контент документа */
.document-content {
    padding: 40px 50px;
}

.document-content h1 {
    font-size: 32px;
    margin-bottom: 25px;
    color: #1e3c72;
    border-left: 5px solid #f7a82d;
    padding-left: 20px;
}

.document-content h2 {
    font-size: 24px;
    margin: 25px 0 15px 0;
    color: #2c3e50;
    padding-bottom: 8px;
    border-bottom: 2px solid #eaeef2;
}

.document-content h3 {
    font-size: 20px;
    margin: 20px 0 10px;
    color: #34495e;
}

.document-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.document-content ul, .document-content ol {
    margin: 12px 0 20px 30px;
}

.document-content li {
    margin-bottom: 6px;
}

.document-content a {
    color: #1e3c72;
    text-decoration: underline;
}

/* Стили для таблиц (если есть) */
.document-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.document-content th, .document-content td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
    vertical-align: top;
}
.document-content th {
    background: #f8f9fa;
    font-weight: 600;
}

/* Подвал */
.document-footer {
    background: #f8f9fc;
    padding: 15px 20px;
    text-align: center;
    font-size: 14px;
    color: #7f8c8d;
    border-top: 1px solid #e0e4e8;
}

/* Адаптив */
@media (max-width: 768px) {
    body {
        padding: 20px 10px;
    }
    .document-content {
        padding: 25px 20px;
    }
    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .toolbar-buttons, .font-controls {
        justify-content: center;
    }
    .document-content h1 {
        font-size: 26px;
    }
    .document-content h2 {
        font-size: 20px;
    }
}

/* Для печати – скрываем панель инструментов */
@media print {
    .toolbar {
        display: none;
    }
    body {
        background: white;
        padding: 0;
        margin: 0;
    }
    .document-container {
        box-shadow: none;
        border-radius: 0;
    }
    .document-content {
        padding: 20px;
    }
    .document-footer {
        display: none;
    }
}