/* ===========================
   LEGAL PAGES (imprint, privacy)
   =========================== */

.legal-page {
    background: #f5f7fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.legal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 20px;
    background: #2c3e50;
}

.legal-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: #ffffff;
    font-weight: 600;
}

.legal-brand img {
    height: 32px;
    width: auto;
}

.legal-lang {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 6px;
    padding: 0.25rem 0.6rem;
    font-size: 0.78rem;
    font-weight: 600;
}

.legal-lang:hover,
.legal-lang:focus-visible {
    background: rgba(255, 255, 255, 0.12);
}

.legal-content {
    flex: 1;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 2.5rem 20px 3rem;
    color: #444;
    line-height: 1.7;
}

.legal-back {
    display: inline-block;
    color: #667eea;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.legal-content h1 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.legal-content h2 {
    color: #2c3e50;
    font-size: 1.05rem;
    margin: 1.75rem 0 0.5rem;
}

.legal-content p {
    font-size: 0.95rem;
}

.legal-content a {
    color: #4f5bd5;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-content .legal-back {
    text-decoration: none;
}

.legal-note {
    background: #eef0fd;
    border-left: 3px solid #667eea;
    border-radius: 6px;
    padding: 0.6rem 0.9rem;
}

.legal-updated {
    margin-top: 2rem;
    color: #888;
    font-size: 0.85rem;
}

.legal-footer {
    text-align: center;
    padding: 1.25rem 20px;
    background: #2c3e50;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.legal-footer a {
    color: rgba(255, 255, 255, 0.85);
}

.legal-footer a:hover,
.legal-footer a:focus-visible {
    color: #ffffff;
}

@media (max-width: 480px) {
    .legal-brand span {
        display: none;
    }

    .legal-content h1 {
        font-size: 1.5rem;
    }
}
