.legal-nav .container {
    min-height: 72px;
}

.legal-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.legal-brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: auto;
    padding: 0.3rem;
    border: 1px solid rgba(13, 110, 253, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 24px rgba(35, 24, 89, 0.08);
}

.language-switcher .lang-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.35rem;
    height: 2.15rem;
    padding: 0 0.6rem;
    border-radius: 999px;
    color: #495057;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.language-switcher .lang-link:hover {
    color: #0d6efd;
    transform: translateY(-1px);
}

.language-switcher .lang-link.is-active {
    color: #fff;
    background: linear-gradient(135deg, #0d6efd, #8a3ffc);
}

.legal-content {
    max-width: 920px;
    margin: 0 auto;
    padding: 132px 24px 72px;
}

.legal-header {
    margin-bottom: 3rem;
    text-align: center;
}

.legal-header h1 {
    margin-bottom: 1.25rem;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.08;
}

.legal-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    margin: 0;
}

.legal-meta span {
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    color: #495057;
    background: #f3f6ff;
    font-size: 0.92rem;
    font-weight: 600;
}

.legal-section {
    padding: 1.75rem 0;
    border-top: 1px solid rgba(73, 80, 87, 0.14);
}

.legal-section h2 {
    margin: 0 0 1rem;
    color: #0d6efd;
    font-size: 1.35rem;
    line-height: 1.3;
}

.legal-section h3 {
    margin: 1.35rem 0 0.65rem;
    color: #5a43c7;
    font-size: 1.05rem;
}

.legal-section p,
.legal-section ul {
    margin-bottom: 0.85rem;
    color: #3f4650;
    line-height: 1.75;
}

.legal-section p:last-child,
.legal-section ul:last-child {
    margin-bottom: 0;
}

.legal-section li + li {
    margin-top: 0.4rem;
}

.legal-contact a {
    overflow-wrap: anywhere;
}

.legal-related {
    display: flex;
    justify-content: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(73, 80, 87, 0.14);
}

.legal-related a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.65rem 1rem;
    border: 1px solid rgba(13, 110, 253, 0.2);
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 575.98px) {
    .legal-nav .container {
        padding-right: 1rem !important;
        padding-left: 1rem !important;
    }

    .legal-brand span {
        display: none;
    }

    .legal-content {
        padding: 112px 18px 56px;
    }

    .legal-section {
        padding: 1.4rem 0;
    }
}
