.legal-page {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0;
    min-height: 100vh;
    color: var(--text-primary);
}

.legal-shell {
    max-width: 980px;
    margin: 0 auto;
    padding: 28px 20px 36px;
}

.legal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.legal-brand {
    color: #fff;
}

.legal-brand h1 {
    margin: 0;
    color: #fff;
    font-size: 1.8rem;
}

.legal-subtitle {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.legal-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.14);
    padding: 30px;
}

.legal-note {
    border-left: 4px solid var(--color-warning);
    background: #fff7e6;
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.legal-section {
    margin-top: 20px;
}

.legal-preline {
    white-space: pre-line;
}

.legal-actions {
    margin-top: 24px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.legal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.legal-btn-primary {
    background: #0078d4;
    color: #fff;
}

.legal-btn-primary:hover {
    background: #005aaf;
}

.legal-btn-secondary {
    background: #eef2ff;
    color: #1e3a8a;
}

.legal-btn-secondary:hover {
    background: #dbeafe;
}

.legal-links {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.legal-links a {
    color: #334155;
    text-decoration: none;
    font-size: 0.9rem;
}

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

.legal-language-selector {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.legal-lang-btn {
    width: 42px;
    height: 42px;
    border: none;
    background: transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-indent: -9999px;
    opacity: 0.7;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.legal-lang-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.legal-lang-btn[data-lang="de"]::before {
    background-image: url('/static/language-de-small.png');
}

.legal-lang-btn[data-lang="es"]::before {
    background-image: url('/static/language-es-small.png');
}

.legal-lang-btn[data-lang="en"]::before {
    background-image: url('/static/language-en-small.png');
}

.legal-lang-btn.active {
    opacity: 1;
}

.legal-lang-btn:hover {
    transform: scale(1.05);
}

@media (max-width: 680px) {
    .legal-shell {
        padding: 18px 12px 22px;
    }

    .legal-card {
        padding: 20px;
    }

    .legal-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
