/* Legal and Footer Styles */

:root {
    --legal-bg: rgba(44, 36, 27, 0.98);
    --legal-text: #e0d5c1;
    --legal-accent: #D4AF37; /* Gold */
    --legal-red: #8B1E1E;
    --cookie-bg: rgba(26, 28, 43, 0.95);
    --cookie-border: rgba(212, 175, 55, 0.3);
}

/* Footer Enhancements */
.legal-footer {
    background-color: #2c241b;
    color: #e0d5c1;
    padding: 60px 0 30px;
    text-align: center;
    border-top: 4px solid var(--legal-accent);
    font-family: 'Lato', sans-serif;
    width: 100%;
}

.legal-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.legal-info {
    font-size: 0.9rem;
    line-height: 1.8;
    opacity: 0.9;
}

.legal-info strong {
    color: var(--legal-accent);
    font-weight: 700;
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.legal-links a {
    color: var(--legal-accent);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.3s, border-bottom 0.3s;
    border-bottom: 1px solid transparent;
}

.legal-links a:hover {
    color: #fff;
    border-bottom: 1px solid #fff;
}

.legal-divider {
    color: var(--legal-accent);
    opacity: 0.5;
}

.payment-methods-legal {
    display: flex;
    gap: 20px;
    opacity: 0.7;
    font-size: 0.85rem;
    margin: 10px 0;
}

.copyright-legal {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-top: 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    padding-top: 20px;
    width: 100%;
    max-width: 600px;
}

/* Cookie Banner */
#vdp-cookie-banner {
    position: fixed;
    bottom: -100%; /* Hidden by default */
    left: 20px;
    right: 20px;
    background: var(--cookie-bg);
    color: #e0d5c1;
    padding: 25px;
    border: 1px solid var(--cookie-border);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    z-index: 9999;
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
    transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#vdp-cookie-banner.show {
    bottom: 20px;
}

.cookie-content h3 {
    font-family: 'Cinzel', serif;
    color: var(--legal-accent);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.cookie-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-content a {
    color: var(--legal-accent);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 15px;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    flex: 1;
    text-align: center;
}

.cookie-btn-accept {
    background-color: var(--legal-accent);
    color: #1D130C;
    border: none;
}

.cookie-btn-accept:hover {
    background-color: #f1c40f;
    transform: translateY(-2px);
}

.cookie-btn-decline {
    background-color: transparent;
    color: #e0d5c1;
    border: 1px solid rgba(224, 213, 193, 0.3);
}

.cookie-btn-decline:hover {
    border-color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Dark Mode Adaptation for Preventivi */
body.dark-theme .legal-footer {
    background-color: #10111a;
    border-top: 4px solid var(--legal-red);
}

@media (max-width: 600px) {
    #vdp-cookie-banner {
        left: 10px;
        right: 10px;
        padding: 20px;
    }
    
    .cookie-actions {
        flex-direction: column;
    }
}
