/* Стилі для юридичних сторінок (Privacy, Terms, Returns) */

.legal-section {
    padding: 40px 0;
    background: #f8f9fa;
}

.legal-content {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.info-block {
    margin-bottom: 40px;
    padding: 30px;
    border-left: 4px solid var(--color-success);
    background: var(--color-white);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Privacy page - зелений акцент */
.privacy-page .info-block {
    border-left-color: var(--color-success);
}

.info-block.warning {
    border-left-color: var(--color-warning);
    background: #fff8f0;
}

/* Returns page - рожевий акцент */
.returns-section .info-block {
    border-left-color: var(--color-primary);
}

.info-block.danger {
    border-left-color: var(--color-danger);
    background: #fff8f8;
}

/* Terms page - синій акцент */
.terms-page .info-block {
    border-left-color: var(--color-info);
}

.info-block h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.4em;
}

.info-block h3 {
    color: #555;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.info-block h4 {
    color: var(--color-primary);
    margin-bottom: 10px;
    font-size: 1.1em;
}

.data-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.data-list li {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid var(--color-success);
}

.usage-grid,
.sharing-grid,
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.usage-item,
.sharing-item,
.right-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #eee;
}

.usage-item h4,
.sharing-item h4,
.right-item h4 {
    margin-bottom: 10px;
    color: var(--color-success);
}

.cookie-info {
    background: #e8f5e8;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.cookie-info h4 {
    color: var(--color-success);
}

.security-measures {
    display: grid;
    gap: 20px;
}

.measure {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.measure-icon {
    font-size: 2em;
    flex-shrink: 0;
}

.measure h4 {
    margin: 0 0 10px 0;
    color: var(--color-success);
}

.measure p {
    margin: 0;
    color: #666;
}

.retention-list {
    list-style: none;
    padding: 0;
}

.retention-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.retention-list li:last-child {
    border-bottom: none;
}

/* RETURNS PAGE SPECIFIC */
.conditions-list {
    list-style: none;
    padding: 0;
}

.conditions-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.conditions-list li:last-child {
    border-bottom: none;
}

.non-returnable-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

@media (min-width: 992px) {
    .non-returnable-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
    
    .category {
        padding: 16px;
    }
    
    .category h3 {
        font-size: 1em;
        margin-bottom: 12px;
    }
    
    .category ul {
        margin-top: 8px;
    }
    
    .category li {
        font-size: 14px;
        padding: 2px 0;
        line-height: 1.4;
    }
}

.category {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.category h3 {
    color: var(--color-primary);
    margin-bottom: 15px;
}

.category ul {
    list-style: none;
    padding: 0;
}

.category li {
    padding: 3px 0;
    color: #666;
    line-height: 1.5;
}

.category li:before {
    content: "• ";
    color: var(--color-primary);
    font-weight: bold;
    margin-right: 4px;
}

.special-cases {
    margin-top: 30px;
    padding: 20px;
    background: #fff3e0;
    border-radius: 8px;
}

.process-steps {
    display: grid;
    gap: 20px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.step-content p {
    margin: 0;
    color: #666;
}

/* TERMS PAGE SPECIFIC */
.info-list,
.conditions-list {
    list-style: none;
    padding: 0;
}

.info-list li,
.conditions-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    border-bottom: 1px solid #eee;
}

.info-list li::before,
.conditions-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 8px;
    color: var(--color-primary);
    font-weight: bold;
}

.info-list li:last-child,
.conditions-list li:last-child {
    border-bottom: none;
}

.process-list {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
}

.process-list li {
    counter-increment: step-counter;
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    position: relative;
    padding-left: 60px;
}

.process-list li:before {
    content: counter(step-counter);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 25px;
    height: 25px;
    background: var(--color-info);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}

.delivery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.delivery-method {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #eee;
}

.delivery-method h4 {
    margin-bottom: 10px;
    color: var(--color-info);
}

/* CONTACT BLOCKS */
.contact-block {
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.privacy-page .contact-block {
    background: #e8f5e8;
    text-align: center;
}

.returns-section .contact-block {
    background: linear-gradient(135deg, #fff0f7 0%, #ffe8f0 100%);
}

.terms-page .contact-block {
    background: #e3f2fd;
    text-align: center;
}

.contact-block h2 {
    margin-bottom: 30px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.contact-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-row.schedule {
    gap: 12px;
}

.contact-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
}

.contact-value {
    color: var(--color-primary);
    font-size: 16px;
    font-weight: 500;
}

.contact-note {
    font-size: 13px;
    color: #7f8c8d;
    font-style: italic;
    margin-top: 4px;
}

.schedule-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #2c3e50;
    font-size: 15px;
    line-height: 1.6;
}

.contact-item {
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.important-note {
    background: #fff3cd;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #ffeaa7;
}

.date-block {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #666;
}

/* MOBILE RESPONSIVE */
@media (max-width: 992px) {
    .contact-info {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .legal-content {
        padding: 20px;
        margin: 20px;
    }
    
    .info-block {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .data-list {
        grid-template-columns: 1fr;
    }
    
    .usage-grid,
    .sharing-grid,
    .rights-grid {
        grid-template-columns: 1fr;
    }
    
    .non-returnable-grid {
        grid-template-columns: 1fr;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .contact-value {
        color: var(--color-primary);
    }
    
    .step-content strong {
        color: #2c3e50;
    }
    
    .delivery-grid {
        grid-template-columns: 1fr;
    }
    
    .process-list li {
        padding-left: 50px;
    }
    
    .process-list li:before {
        left: 15px;
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
    
    .contact-item {
        color: var(--color-primary);
    }
    
    .info-list li strong {
        color: #2c3e50;
    }
}

@media (max-width: 480px) {
    .legal-section {
        padding: 20px 0;
    }
    
    .legal-content {
        margin: 10px;
        padding: 15px;
    }
    
    .info-block {
        padding: 15px;
    }
    
    .measure {
        flex-direction: column;
        text-align: center;
    }
}

/* Кольорові блоки для різних типів повідомлень */
.info-block--success {
    background: #e8f5e9;
    border-left-color: #4caf50;
}

.info-block--success h2,
.info-block--success .text-highlight {
    color: #2e7d32;
}

.info-block--success p {
    color: #2e7d32;
}

.info-block--warning {
    background: #fff3cd;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.info-block--warning h2 {
    color: #856404;
}

.info-block--warning p {
    color: #856404;
}

.info-block--danger {
    background: #ffebee;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #d32f2f;
}

.info-block--danger h2 {
    color: #c62828;
}

.info-block--danger p,
.info-block--danger ul {
    color: #c62828;
}

.info-block--18plus {
    background: #fff3cd;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.info-block--18plus p {
    margin: 0;
    color: #856404;
}

.text-danger {
    color: #d32f2f;
    font-weight: bold;
}

.text-danger-highlight {
    color: #d32f2f;
    font-weight: bold;
    margin-top: 15px;
}

.text-success {
    color: #2e7d32;
    font-weight: bold;
}

.text-warning {
    color: #856404;
    font-weight: bold;
}

.bg-highlight-warning {
    background: #fff3cd;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    color: #856404;
}

.list-success {
    font-weight: bold;
    color: #2e7d32;
}

.disabled-state {
    opacity: 0.6;
}

.disabled-badge {
    background: #999;
}

