/* Legal Pages (Impressum, Datenschutz, AGB) - RealSales Design System */

.impressum-page,
.datenschutz-page,
.agb-page {
    background: white;
    min-height: 100vh;
}

/* Hero Section */
.legal-hero {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 50%, #7c3aed 100%);
    padding: 140px 0 80px;
    color: white;
    position: relative;
    overflow: hidden;
}

.legal-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.legal-hero .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.legal-hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.legal-hero h1 {
    font-size: 56px;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.legal-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Content Section */
.legal-content {
    padding: 4rem 0 6rem;
    background: #f8fafc;
}

.legal-content .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.legal-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Legal Section */
.legal-section {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
}

.legal-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f5f9;
}

.legal-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

/* Legal Box */
.legal-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
}

.legal-box p {
    font-size: 15px;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.legal-box p:last-child {
    margin-bottom: 0;
}

.legal-box strong {
    color: #1e293b;
    font-weight: 600;
}

.legal-box a {
    color: var(--rs-purple);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.legal-box a:hover {
    color: #6d28d9;
    text-decoration: underline;
}

/* Legal Text Box (für längere Texte) */
.legal-text {
    background: white;
    border: 2px solid #f1f5f9;
    padding: 2rem;
}

.legal-text p {
    margin-bottom: 1.5rem;
}

.legal-text p:last-child {
    margin-bottom: 0;
}

/* Legal Grid */
.legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Contact Box */
.contact-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: linear-gradient(135deg, #f5f3ff 0%, #faf5ff 100%);
    border: 2px solid #e9d5ff;
    transition: all 0.3s ease;
}

.contact-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--rs-purple) 0%, #8b5cf6 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.contact-label {
    font-size: 13px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-box p {
    color: #1e293b;
}

.contact-box a {
    color: var(--rs-purple);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-box a:hover {
    color: #6d28d9;
}

/* Lists in Legal Text */
.legal-text ul,
.legal-text ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.legal-text li {
    margin-bottom: 0.75rem;
    color: #475569;
    line-height: 1.8;
}

.legal-text li strong {
    color: #1e293b;
}

/* Table Styles (für Datenschutz) */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.legal-table th,
.legal-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.legal-table th {
    background: #f8fafc;
    font-weight: 700;
    color: #1e293b;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legal-table td {
    color: #475569;
    font-size: 15px;
}

.legal-table tr:last-child td {
    border-bottom: none;
}

/* Info Box */
.legal-info-box {
    background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 100%);
    border: 2px solid #7dd3fc;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.legal-info-box svg {
    color: #0284c7;
    flex-shrink: 0;
    margin-top: 2px;
}

.legal-info-box p {
    color: #0c4a6e;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

/* Warning Box */
.legal-warning-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
    border: 2px solid #fcd34d;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.legal-warning-box svg {
    color: #d97706;
    flex-shrink: 0;
    margin-top: 2px;
}

.legal-warning-box p {
    color: #78350f;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .legal-hero {
        padding: 120px 0 60px;
    }
    
    .legal-hero h1 {
        font-size: 36px;
    }
    
    .legal-subtitle {
        font-size: 16px;
    }
    
    .legal-content {
        padding: 3rem 0 4rem;
    }
    
    .legal-section {
        padding: 1.5rem;
    }
    
    .legal-box {
        padding: 1rem;
    }
    
    .legal-text {
        padding: 1.5rem;
    }
    
    .legal-grid {
        grid-template-columns: 1fr;
    }
    
    .legal-table {
        font-size: 14px;
    }
    
    .legal-table th,
    .legal-table td {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .legal-hero h1 {
        font-size: 28px;
    }
    
    .legal-section h2 {
        font-size: 22px;
    }
    
    .contact-box {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin: 0 auto;
    }
}

/* Print Styles */
@media print {
    .legal-hero {
        background: white;
        color: black;
        padding: 2rem 0;
    }
    
    .legal-hero::before {
        display: none;
    }
    
    .legal-section {
        box-shadow: none;
        border: 1px solid #e2e8f0;
        page-break-inside: avoid;
    }
    
    .contact-box {
        background: white;
        border: 1px solid #e2e8f0;
    }
    
    .contact-icon {
        background: #e2e8f0;
        color: black;
    }
}

/* Accessibility */
.legal-box:focus-within,
.contact-box:focus-within {
    outline: 2px solid var(--rs-purple);
    outline-offset: 2px;
}
