/* ============================================================
   Legal Pages Styling (Impressum, Datenschutz, AGB)
   ============================================================ */

.legal-page {
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--blue-50, #eff6ff) 0%, #fff 40%);
}

.legal-container {
    max-width: 780px;
    margin: 0 auto;
}

.legal-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 48px 56px;
}

@media (max-width: 768px) {
    .legal-card {
        padding: 32px 24px;
        border-radius: 12px;
    }
}

.legal-card h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
    margin-bottom: 8px;
    line-height: 1.2;
}

.legal-meta {
    font-size: 0.875rem;
    color: var(--text-tertiary, #94a3b8);
    margin-bottom: 40px;
}

.legal-card h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary, #0f172a);
    margin-top: 36px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.legal-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary, #334155);
    margin-top: 24px;
    margin-bottom: 8px;
}

.legal-card p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-secondary, #334155);
    margin-bottom: 12px;
}

.legal-card ul,
.legal-card ol {
    padding-left: 20px;
    margin-bottom: 16px;
}

.legal-card li {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-secondary, #334155);
    margin-bottom: 6px;
}

.legal-card a {
    color: var(--primary, #2563eb);
    text-decoration: none;
    font-weight: 500;
}

.legal-card a:hover {
    text-decoration: underline;
}

.legal-card strong {
    color: var(--text-primary, #0f172a);
    font-weight: 600;
}

/* Highlight Box (for KI notice) */
.legal-highlight {
    background: linear-gradient(135deg, #eff6ff, #e0f0ff);
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 24px;
    margin: 16px 0;
}

.legal-highlight p:first-child {
    color: var(--primary, #2563eb);
    font-weight: 600;
    margin-bottom: 8px;
}

.legal-highlight ul {
    margin-top: 8px;
}

.legal-small {
    font-size: 0.8125rem !important;
    color: var(--text-tertiary, #94a3b8) !important;
    margin-top: 12px !important;
}

/* Tables */
.legal-table-wrapper {
    overflow-x: auto;
    margin: 16px 0;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.legal-card table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.legal-card thead {
    background: #f8fafc;
}

.legal-card th {
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
    color: var(--text-primary, #0f172a);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    white-space: nowrap;
}

.legal-card td {
    padding: 10px 16px;
    color: var(--text-secondary, #334155);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.legal-card tbody tr:last-child td {
    border-bottom: none;
}

.legal-card tbody tr:hover {
    background: #f8fafc;
}

/* Back button */
.btn-sm {
    font-size: 0.875rem;
    padding: 8px 16px;
    border-radius: 8px;
}