/**
 * Legal Pages CSS - Lieferbedingungen, AGB, Datenschutz etc.
 * Für Alka-Go B2B Website
 */

/* Legal Page Specific Styles */
.legal-page {
    background: var(--light-gray);
}

.legal-content {
    background: var(--primary-white);
    padding: 4rem 0;
}

.page-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: var(--dark-gray);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-neon));
    border-radius: 2px;
}

/* Legal Header */
.legal-header {

    padding: 3rem 2rem 2rem 2rem;
    text-align: center;
}

.legal-header .page-title {

    font-size: var(--font-size-3xl);
    font-weight: 600;
}

.legal-subtitle {
    margin: 0;
    opacity: 0.8;
    font-size: var(--font-size-lg);
}

.legal-sections {
    max-width: 800px;
    margin: 0 auto;
    background: var(--primary-white);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
    padding: 3rem;
    border: 1px solid var(--border-color);
}

.legal-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: calc(var(--section-index, 0) * 0.1s);
    opacity: 0;
}

.legal-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.legal-section h2 {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: var(--accent-red);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.legal-section h2::before {
    content: '§';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-red), #b91c1c);
    color: white;
    border-radius: 50%;
    font-size: var(--font-size-lg);
    font-weight: 700;
}

.legal-section h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--dark-gray);
    margin: 2rem 0 1rem;
    padding-left: 1rem;
    border-left: 3px solid var(--accent-neon);
}

.legal-section p {
    color: var(--medium-gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.legal-section ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.legal-section li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: var(--medium-gray);
    line-height: 1.7;
}

.legal-section li::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-red);
    font-weight: 700;
    font-size: var(--font-size-lg);
}

.legal-section strong {
    color: var(--dark-gray);
    font-weight: 600;
}

/* Shipping Table Styles */
.shipping-table {
    background: var(--light-gray);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    margin: 1.5rem 0;
    border: 1px solid var(--border-color);
}

.shipping-table h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--accent-red);
    margin-bottom: 1rem;
    padding-left: 0;
    border-left: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.shipping-table h3::before {
    content: '🚚';
    font-size: var(--font-size-lg);
}

.shipping-table ul {
    background: var(--primary-white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-light);
}

.shipping-table li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.shipping-table li:last-child {
    border-bottom: none;
}

.shipping-table li::before {
    content: '€';
    position: static;
    color: var(--accent-neon);
    font-weight: 600;
    margin-right: 0.5rem;
    order: 2;
}

/* Update Info Box */
.legal-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
    text-align: center;
}

.update-info {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--light-gray);
    padding: 1rem 2rem;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    color: var(--medium-gray);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.update-info::before {
    content: '📅';
    font-size: var(--font-size-base);
}

/* Highlight Boxes */
.highlight-box {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(220, 38, 38, 0.1));
    border: 1px solid var(--accent-neon);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.highlight-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-red), var(--accent-neon));
}

.highlight-box .highlight-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--accent-red);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.highlight-box .highlight-title::before {
    content: '⚠️';
    font-size: var(--font-size-lg);
}

.highlight-box p {
    margin-bottom: 0;
    font-weight: 500;
}

/* Contact Links in Legal Text */
.legal-section a {
    color: var(--accent-red);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: var(--transition-fast);
}

.legal-section a:hover {
    border-bottom-color: var(--accent-red);
    color: var(--dark-gray);
}

/* Breadcrumb Enhancement for Legal Pages */
.legal-page .breadcrumb {
    background: var(--primary-white);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll to Top for Long Legal Pages */
.legal-page .scroll-to-top {
    background: var(--accent-red);
    border: 2px solid var(--accent-red);
}

.legal-page .scroll-to-top:hover {
    background: var(--primary-white);
    color: var(--accent-red);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* Print Styles for Legal Documents */
@media print {
    .legal-page {
        background: white;
    }
    
    .legal-sections {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .legal-section h2::before {
        background: #000;
    }
    
    .shipping-table {
        background: #f5f5f5;
    }
    
    .highlight-box {
        border: 2px solid #000;
        background: #f9f9f9;
    }
    
    .page-title::after {
        background: #000;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-sections {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .page-title {
        font-size: var(--font-size-3xl);
        margin-bottom: 2rem;
    }
    
    .legal-section {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
    
    .legal-section h2 {
        font-size: var(--font-size-xl);
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .legal-section h2::before {
        width: 35px;
        height: 35px;
        font-size: var(--font-size-base);
    }
    
    .shipping-table {
        padding: 1.5rem;
    }
    
    .shipping-table li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .shipping-table li::before {
        order: 0;
        margin-right: 0;
    }
    
    .highlight-box {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .highlight-box .highlight-title {
        font-size: var(--font-size-lg);
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .legal-sections {
        padding: 1.5rem 1rem;
        border-radius: var(--border-radius);
    }
    
    .page-title {
        font-size: var(--font-size-2xl);
    }
    
    .legal-section h2 {
        font-size: var(--font-size-lg);
    }
    
    .legal-section h3 {
        font-size: var(--font-size-lg);
        padding-left: 0.5rem;
        border-left-width: 2px;
    }
    
    .legal-section li {
        padding-left: 1.5rem;
    }
    
    .shipping-table {
        padding: 1rem;
    }
    
    .update-info {
        padding: 0.75rem 1.5rem;
        font-size: var(--font-size-xs);
    }
}