/* ═══════════════════════════════════════════════════════════
   LEGAL PAGES — Privacy Policy, Cookie Policy, Terms
   ═══════════════════════════════════════════════════════════ */

.legal-page {
    padding: 120px 20px 80px;
    min-height: 100vh;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 60px;
    box-shadow: 0 5px 30px rgba(147, 51, 234, 0.08);
}

.legal-container h1 {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 5px;
}

.legal-updated {
    color: #999;
    font-size: 13px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(147, 51, 234, 0.1);
}

.legal-container h2 {
    font-size: 18px;
    color: #2d2d2d;
    margin-top: 35px;
    margin-bottom: 12px;
    padding-top: 15px;
    border-top: 1px solid rgba(147, 51, 234, 0.06);
}

.legal-container h2:first-of-type {
    border-top: none;
    padding-top: 0;
}

.legal-container h3 {
    font-size: 15px;
    color: #444;
    margin-top: 20px;
    margin-bottom: 8px;
}

.legal-container p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 10px;
    font-size: 14px;
}

.legal-container a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

.legal-container a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.legal-container strong {
    color: #333;
}

/* ═══════════════════════════════════════════════════════════
   COOKIE BANNER
   ═══════════════════════════════════════════════════════════ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 25px;
}

.cookie-banner-text {
    flex: 1;
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}

.cookie-banner-text a {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: var(--primary);
    color: white;
}

.cookie-btn-accept:hover {
    background: #7c22d0;
}

.cookie-btn-reject {
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
}

.cookie-btn-reject:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ═══════════════════════════════════════════════════════════
   SPOTIFY PLACEHOLDER (quando cookies non accettati)
   ═══════════════════════════════════════════════════════════ */

.spotify-consent-placeholder {
    width: 100%;
    height: 380px;
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
}

.spotify-consent-placeholder .placeholder-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.spotify-consent-placeholder .placeholder-text {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    max-width: 280px;
    line-height: 1.5;
}

.spotify-consent-placeholder .placeholder-btn {
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.spotify-consent-placeholder .placeholder-btn:hover {
    background: #7c22d0;
}

/* ═══════════════════════════════════════════════════════════
   PRIVACY CHECKBOX (form contatto)
   ═══════════════════════════════════════════════════════════ */

.privacy-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 15px 0;
}

.privacy-consent input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

.privacy-consent label {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    cursor: pointer;
}

.privacy-consent label a {
    color: var(--primary);
    text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER LEGAL LINKS
   ═══════════════════════════════════════════════════════════ */

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.footer-legal a {
    color: #999;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s;
}

.footer-legal a:hover {
    color: var(--primary);
}

.footer-company-info {
    font-size: 12px;
    color: #bbb;
    margin-top: 8px;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .legal-container {
        padding: 30px 20px;
        border-radius: 12px;
    }
    
    .legal-container h1 {
        font-size: 24px;
    }
    
    .legal-page {
        padding: 100px 15px 60px;
    }
    
    .cookie-banner-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-banner-actions {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-btn {
        flex: 1;
    }
}
