.tcpd-legal-page {
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 920px;
    min-width: 0;
    padding: 1rem 0 4rem;
    width: 100%;
}

.tcpd-legal-page *,
.tcpd-legal-page *::before,
.tcpd-legal-page *::after {
    box-sizing: border-box;
}

.tcpd-legal-header {
    align-items: flex-start;
    border-bottom: 1px solid var(--bs-border-color, #d8dee8);
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    padding: 1rem 0 2rem;
}

.tcpd-legal-header__copy {
    max-width: 700px;
}

.tcpd-legal-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.08;
    margin: 0;
}

.tcpd-legal-subtitle {
    color: var(--bs-secondary-color, #5f6b7a);
    font-size: 1.05rem;
    line-height: 1.65;
    margin: .75rem 0 0;
}

.tcpd-legal-meta {
    border-left: 3px solid var(--primary, #0b4eb3);
    display: flex;
    flex-direction: column;
    gap: .2rem;
    margin-top: 1.25rem;
    padding-left: 1rem;
}

.tcpd-legal-meta span {
    color: var(--bs-secondary-color, #5f6b7a);
    font-size: .875rem;
}

.tcpd-legal-languages {
    background: var(--bs-tertiary-bg, #f3f5f8);
    border-radius: 999px;
    display: flex;
    flex: 0 0 auto;
    gap: .25rem;
    padding: .25rem;
}

.tcpd-legal-language {
    border-radius: 999px;
    color: var(--bs-body-color, #1f2937);
    font-size: .875rem;
    font-weight: 600;
    padding: .5rem .8rem;
    text-decoration: none;
}

.tcpd-legal-language:hover,
.tcpd-legal-language:focus {
    text-decoration: none;
}

.tcpd-legal-language.is-active {
    background: var(--primary, #0b4eb3);
    color: #fff;
}

.tcpd-legal-content {
    counter-reset: legal-section;
}

.tcpd-legal-intro {
    color: var(--bs-secondary-color, #5f6b7a);
    font-size: 1.05rem;
    line-height: 1.75;
    margin: 0;
    padding: 2rem 0 .5rem;
}

.tcpd-legal-section {
    border-bottom: 1px solid var(--bs-border-color, #d8dee8);
    counter-increment: legal-section;
    padding: 2rem 0;
}

.tcpd-legal-section h2 {
    align-items: baseline;
    display: flex;
    font-size: 1.2rem;
    gap: .8rem;
    line-height: 1.4;
    margin: 0 0 1rem;
}

.tcpd-legal-section h2::before {
    color: var(--primary, #0b4eb3);
    content: counter(legal-section, decimal-leading-zero);
    font-size: .75rem;
    font-weight: 700;
}

.tcpd-legal-section p,
.tcpd-legal-section li {
    line-height: 1.75;
}

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

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

.tcpd-legal-contact {
    background: var(--bs-tertiary-bg, #f3f5f8);
    border-bottom: 0;
    border-radius: .75rem;
    margin-top: 2rem;
    padding: 1.5rem;
}

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

@media (max-width: 767.98px) {
    .tcpd-legal-page {
        padding-left: .25rem;
        padding-right: .25rem;
    }

    .tcpd-legal-header {
        flex-direction: column;
    }

    .tcpd-legal-languages {
        align-self: stretch;
    }

    .tcpd-legal-language {
        flex: 1;
        text-align: center;
    }

    .tcpd-legal-section ul {
        padding-left: 1.3rem;
    }
}
