/* Enhanced Legal Pages & Sitemap Styles */
.legal-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    line-height: 1.7;
    color: #2c3e50;
}

.legal-content h1 {
    color: #1e4d1c;
    border-bottom: 4px solid #3d8a59;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
}

.legal-content h2 {
    color: #2d5a27;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 600;
    text-align: left;
    position: relative;
    padding-bottom: 0.5rem;
}

.legal-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #3d8a59;
    border-radius: 2px;
}

.legal-content h3 {
    color: #2d5a27;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
    text-align: left;
}

.legal-content p {
    margin-bottom: 1.2rem;
    text-align: left;
    max-width: 100%;
    line-height: 1.7;
    color: #555;
}

.legal-content ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    text-align: left;
    max-width: 100%;
}

.legal-content li {
    margin-bottom: 0.8rem;
    color: #555;
}

.legal-content strong {
    color: #1e4d1c;
    font-weight: 600;
}

.legal-content a {
    color: #3d8a59;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
    font-weight: 500;
}

.legal-content a:hover {
    color: #2d5a27;
    border-bottom-color: #3d8a59;
}

/* Sitemap Specific Styles */
.sitemap-intro {
    font-size: 1.2rem;
    text-align: center;
    color: #555;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.sitemap-search {
    max-width: 500px;
    margin: 2rem auto;
    text-align: center;
}

.sitemap-search input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.sitemap-search input:focus {
    outline: none;
    border-color: #3d8a59;
    box-shadow: 0 0 0 3px rgba(61,138,89,0.1);
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    text-align: left;
}

.sitemap-section {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.sitemap-section:hover {
    box-shadow: 0 8px 24px rgba(61,138,89,0.15);
    transform: translateY(-3px);
    border-color: #3d8a59;
}

.sitemap-section h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    color: #1e4d1c;
    text-align: left;
    padding-bottom: 0.5rem;
}

.sitemap-section h2::after {
    width: 50px;
    height: 3px;
    left: 0;
}

.category-desc {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.sitemap-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.sitemap-list li {
    margin-bottom: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.2s ease;
}

.sitemap-list li:hover {
    background: #f8fffe;
    padding-left: 1rem;
    border-radius: 8px;
    border-bottom-color: #e9ecef;
}

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

.sitemap-list a {
    color: #1e4d1c;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.2s ease;
    display: block;
    line-height: 1.4;
}

.sitemap-list a:hover {
    color: #3d8a59;
    border-bottom: none;
}

.sitemap-stats {
    background: linear-gradient(135deg, #f8fffe 0%, #e8f5e8 100%);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin: 4rem 0;
    text-align: center;
    border: 2px solid #d4edda;
}

.sitemap-stats h3 {
    color: #1e4d1c;
    margin-top: 0;
    margin-bottom: 2rem;
    font-size: 1.6rem;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
}

.stat-item strong {
    display: block;
    font-size: 2rem;
    color: #3d8a59;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-item span {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.sitemap-stats p {
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
    text-align: center;
    color: #555;
}

.sitemap-help {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 2rem;
    margin: 3rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.sitemap-help h3 {
    color: #1e4d1c;
    margin-top: 0;
    margin-bottom: 1.5rem;
    text-align: center;
}

.sitemap-help ul {
    list-style: none;
    padding-left: 0;
}

.sitemap-help li {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8fffe;
    border-radius: 8px;
    border-left: 4px solid #3d8a59;
}

.sitemap-help strong {
    color: #1e4d1c;
}

.back-link {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid #f8f9fa;
    text-align: center;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #3d8a59 0%, #2d5a27 100%);
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(61,138,89,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(61,138,89,0.4);
    border-bottom: none;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-content {
        padding: 2rem 1rem;
    }
    
    .legal-content h1 {
        font-size: 2.2rem;
    }
    
    .legal-content h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
    }
    
    .legal-content h3 {
        font-size: 1.2rem;
    }
    
    .sitemap-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .sitemap-section {
        padding: 1.5rem;
    }
    
    .sitemap-stats {
        padding: 2rem 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-item strong {
        font-size: 1.5rem;
    }
    
    .sitemap-help {
        padding: 1.5rem;
    }
    
    .btn-primary {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .legal-content {
        padding: 1.5rem 1rem;
    }
    
    .legal-content h1 {
        font-size: 1.8rem;
    }
    
    .legal-content h2 {
        font-size: 1.3rem;
    }
    
    .sitemap-section {
        padding: 1.2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .sitemap-search input {
        font-size: 1rem;
        padding: 0.8rem;
    }
}
