/**
 * Legal Pages CSS
 * 
 * Stili per le pagine legali: Privacy Policy, Terms of Service, 
 * Disclaimer, Disclosure, etc.
 * 
 * @package MadePrompt
 * @since 1.0.0
 */

/* ==========================================
   WRAPPER & CONTAINER
   Layout principale delle pagine legali
   ========================================== */

.legal-page-wrapper {
    width: 100%;
    padding: var(--page-padding-desktop);
    min-height: 60vh;
    background: transparent;
}

.legal-page-container {
    max-width: var(--box-max-width);
    margin: 0 auto;
    padding: var(--wrapper-padding-desktop);
}

/* ==========================================
   CONTENT BOX
   Box principale con effetto glassmorphism
   ========================================== */

.legal-page-content {
    background: rgba(28, 28, 30, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--box-border-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: 3rem;
    margin: 2rem auto;
}

/* ==========================================
   HEADER
   Titolo della pagina legale
   ========================================== */

.legal-page-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.legal-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

/* ==========================================
   TEXT CONTENT
   Stili per il contenuto testuale
   ========================================== */

.legal-page-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    line-height: 1.9;
    margin-bottom: 2rem;
}

.legal-page-text p {
    margin-bottom: 1.5rem;
}

/* Headings */
.legal-page-text h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin: 2rem 0 1rem;
}

.legal-page-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin: 1.5rem 0 1rem;
}

/* Lists */
.legal-page-text ul,
.legal-page-text ol {
    margin: 1rem 0 1.5rem 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.legal-page-text li {
    margin-bottom: 0.5rem;
}

/* ==========================================
   BACK LINK
   Link per tornare alla homepage
   ========================================== */

.legal-page-back {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.legal-page-back-link {
    display: inline-block;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    background: rgba(28, 28, 30, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
}

.legal-page-back-link:hover {
    color: rgba(255, 255, 255, 0.95);
    background: rgba(44, 44, 46, 0.75);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transform: translateX(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* ==========================================
   RESPONSIVE - MOBILE (max 768px)
   ========================================== */

@media (max-width: 768px) {
    .legal-page-wrapper {
        padding: var(--page-padding-mobile);
    }
    
    .legal-page-container {
        padding: var(--wrapper-padding-mobile);
    }
    
    .legal-page-content {
        padding: 2rem 1.5rem;
        margin: 1rem auto;
    }
    
    .legal-page-title {
        font-size: 2rem;
    }
    
    .legal-page-text {
        font-size: 1rem;
        line-height: 1.8;
    }
    
    .legal-page-text h2 {
        font-size: 1.5rem;
    }
    
    .legal-page-text h3 {
        font-size: 1.25rem;
    }
    
    .legal-page-text ul,
    .legal-page-text ol {
        margin-left: 1.5rem;
    }
}

/* ==========================================
   SITEMAP SPECIFIC STYLES
   Stili per la pagina Sitemap HTML
   ========================================== */

.sitemap-content {
    margin-top: 2rem;
}

.sitemap-section {
    margin-bottom: 2.5rem;
}

.sitemap-section:last-child {
    margin-bottom: 0;
}

.sitemap-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.sitemap-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.75rem;
}

.sitemap-list li {
    margin: 0;
}

.sitemap-list a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sitemap-list a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}

/* Brands list - può essere molto lunga, quindi colonne multiple */
.sitemap-brands-list {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    max-height: none;
}

/* Responsive per sitemap */
@media (max-width: 768px) {
    .sitemap-section-title {
        font-size: 1.25rem;
    }
    
    .sitemap-list {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .sitemap-brands-list {
        grid-template-columns: 1fr;
    }
    
    .sitemap-list a {
        padding: 0.625rem 0.875rem;
        font-size: 0.95rem;
    }
}



