/* Legal Pages Styles for FakturoX - Light Theme */

.legal-page {
    min-height: 100vh;
    padding: 120px 0 60px;
    background: #fafbfc;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
    padding: 48px;
    border: 1px solid #E2E8F0;
}

.legal-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #1EA7FF 0%, #18B7C8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-date {
    color: #94A3B8;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.legal-section {
    margin-bottom: 2rem;
}

.legal-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.legal-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0F172A;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.legal-section p {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.legal-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-section li {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.legal-section a {
    color: #18B7C8;
    text-decoration: underline;
    transition: 0.15s ease;
}

.legal-section a:hover {
    color: #1EA7FF;
}

.legal-section strong {
    color: #0F172A;
    font-weight: 600;
}

/* Highlight Box */
.highlight-box {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #18B7C8;
    margin: 1rem 0;
}

.highlight-box p {
    margin-bottom: 0.5rem;
}

.highlight-box ul {
    margin-bottom: 0;
}

.highlight-box strong {
    color: #18B7C8;
}

/* Warning Box */
.warning-box {
    background: rgba(245, 158, 11, 0.08);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #f59e0b;
    margin: 1rem 0;
}

.warning-box p {
    color: #d97706;
    font-weight: 600;
    margin-bottom: 0;
}

/* Cookie Table */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.cookie-table th,
.cookie-table td {
    padding: 12px 16px;
    text-align: left;
    border: 1px solid #E2E8F0;
}

.cookie-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #0F172A;
}

.cookie-table td {
    color: #475569;
}

.cookie-table code {
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-size: 0.85em;
    color: #18B7C8;
}

.cookie-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Cookie Settings Button */
.cookie-settings-button {
    display: inline-block;
    background: linear-gradient(135deg, #1EA7FF 0%, #18B7C8 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    margin: 1.5rem 0;
    transition: 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.cookie-settings-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(24, 183, 200, 0.25);
}

/* Back Button */
.back-button {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #E2E8F0;
    text-align: center;
}

.back-button a {
    display: inline-block;
    background: linear-gradient(135deg, #1EA7FF 0%, #18B7C8 100%);
    color: white;
    padding: 14px 32px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
}

.back-button a:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(24, 183, 200, 0.25);
}

/* Responsive - Optimiert für iPad und iPhone */

/* iPad Pro & iPad Air */
@media (max-width: 1024px) {
    .legal-container {
        padding: 40px;
    }
}

/* iPad Mini & Tablets */
@media (max-width: 820px) {
    .legal-page {
        padding: 100px 0 50px;
    }
    
    .legal-container {
        padding: 32px;
        margin: 0 24px;
    }
    
    .legal-title {
        font-size: 2rem;
    }
}

/* Tablets Portrait & große Phones */
@media (max-width: 768px) {
    .legal-page {
        padding: 90px 0 40px;
    }
    
    .legal-container {
        padding: 24px;
        border-radius: 12px;
        margin: 0 16px;
    }
    
    .legal-title {
        font-size: 1.75rem;
    }
    
    .legal-section h2 {
        font-size: 1.25rem;
        margin-top: 1.5rem;
    }
    
    .legal-section h3 {
        font-size: 1.1rem;
        margin-top: 1.25rem;
    }
    
    .legal-section p {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .legal-section ul {
        margin-left: 1.25rem;
    }
    
    .legal-section li {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .cookie-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 0.85rem;
    }
    
    .cookie-table th,
    .cookie-table td {
        padding: 10px 12px;
        min-width: 100px;
    }
    
    .highlight-box,
    .warning-box {
        padding: 1rem;
    }
    
    .back-button a {
        width: 100%;
        display: block;
        text-align: center;
    }
}

/* iPhone 14 Pro Max und ahnliche */
@media (max-width: 480px) {
    .legal-page {
        padding: 80px 0 32px;
    }
    
    .legal-container {
        padding: 20px;
        margin: 0 12px;
        border-radius: 10px;
    }
    
    .legal-title {
        font-size: 1.5rem;
    }
    
    .legal-date {
        font-size: 0.8rem;
    }
    
    .legal-section h2 {
        font-size: 1.15rem;
    }
    
    .legal-section h3 {
        font-size: 1rem;
    }
    
    .legal-section p,
    .legal-section li {
        font-size: 0.9rem;
    }
    
    .cookie-table th,
    .cookie-table td {
        padding: 8px 10px;
        font-size: 0.8rem;
        min-width: 90px;
    }
    
    .cookie-settings-button {
        width: 100%;
        padding: 14px 20px;
        font-size: 0.95rem;
    }
    
    .back-button {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
    
    .back-button a {
        padding: 14px 24px;
        font-size: 0.95rem;
    }
}

/* iPhone SE und kleine Phones */
@media (max-width: 390px) {
    .legal-container {
        padding: 16px;
        margin: 0 8px;
    }
    
    .legal-title {
        font-size: 1.35rem;
    }
    
    .legal-section h2 {
        font-size: 1.1rem;
    }
    
    .legal-section p,
    .legal-section li {
        font-size: 0.85rem;
    }
    
    .highlight-box,
    .warning-box {
        padding: 0.875rem;
        border-radius: 8px;
    }
}

/* Safe Area für iPhone X und neuer */
@supports (padding: max(0px)) {
    .legal-page {
        padding-bottom: max(40px, env(safe-area-inset-bottom));
    }
}
