/* Стили для юридических документов Malina Cash */

.legal-document {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.legal-document h1 {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.3;
}

.legal-document .doc-meta {
    color: #999;
    font-size: 14px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.legal-document .doc-meta span {
    display: inline-block;
    margin-right: 20px;
}

.legal-document h2 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-document h3 {
    font-size: 18px;
    font-weight: 600;
    color: #555;
    margin-top: 25px;
    margin-bottom: 12px;
}

.legal-document p {
    line-height: 1.8;
    color: #666;
    margin-bottom: 15px;
}

.legal-document ul, 
.legal-document ol {
    margin-left: 25px;
    margin-bottom: 15px;
}

.legal-document li {
    line-height: 1.8;
    color: #666;
    margin-bottom: 8px;
}

.legal-document strong {
    color: #333;
    font-weight: 600;
}

.legal-document code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #E91E63;
}

.legal-document a {
    color: #E91E63;
    text-decoration: none;
}

.legal-document a:hover {
    text-decoration: underline;
}

.legal-document button {
    padding: 10px 20px;
    background: #E91E63;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
}

.legal-document button:hover {
    background: #C2185B;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
}

.legal-document .back-link {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.legal-document .back-link a {
    color: #E91E63;
    text-decoration: none;
    font-weight: 500;
}

.legal-document .back-link a:hover {
    text-decoration: underline;
}

/* Индексная страница документов */
.legal-index {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.legal-index h1 {
    font-size: 32px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.legal-index .subtitle {
    color: #999;
    font-size: 16px;
    margin-bottom: 40px;
}

.legal-index .doc-list {
    display: grid;
    gap: 20px;
}

.legal-index .doc-card {
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s;
    text-decoration: none;
    display: block;
}

.legal-index .doc-card:hover {
    border-color: #E91E63;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.1);
    transform: translateY(-2px);
}

.legal-index .doc-card h2 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
}

.legal-index .doc-card p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.legal-index .doc-card .doc-icon {
    width: 40px;
    height: 40px;
    background: #FFF0F5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: #E91E63;
    font-size: 20px;
}

/* Кнопка открытия PDF на мобильных */
.pdf-mobile-open {
    display: none;
}

/* Футер - корректировка размера шрифта */
.site-footer .footer-legal-link {
    font-size: 12px;
}

.site-footer .footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

/* Адаптивность */
@media (max-width: 768px) {
    .legal-document,
    .legal-index {
        margin: 20px;
        padding: 20px;
    }
    
    .legal-document h1,
    .legal-index h1 {
        font-size: 24px;
    }
    
    .legal-document h2 {
        font-size: 20px;
    }
    
    .legal-document h3 {
        font-size: 16px;
    }
    
    .legal-document .doc-meta span {
        display: block;
        margin-bottom: 5px;
    }
    
    /* На мобильных прячем iframe и показываем кнопку */
    .legal-document iframe {
        display: none;
    }
    
    .pdf-mobile-open {
        display: block;
        width: 100%;
        padding: 20px;
        background: linear-gradient(90deg, #FA1C82 0%, #9D50FF 100%);
        color: white;
        border: none;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        text-align: center;
        text-decoration: none;
    }
    
    .pdf-mobile-open:hover {
        opacity: 0.9;
    }
    
    /* Футер на мобильных */
    .site-footer .footer-legal-links {
        flex-direction: column;
        gap: 8px;
    }
}
