/* Legal pages, form information and the permanent legal footer. */
.footer__legal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px 28px;
    padding-block: 22px;
    border-top: 1px solid #20252a;
}

.footer__legal nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 24px;
}

.footer__legal a {
    padding-block: 6px;
    font-size: 0.82rem;
    font-weight: 700;
}

.footer__legal a:hover,
.footer__legal a:focus-visible {
    color: #93c5fd;
}

.footer__legal p {
    margin: 0;
    color: #a6afb6;
    font-size: 0.75rem;
}

.demo-form__consent {
    font-size: 0.82rem;
}

.demo-form__consent > span {
    min-width: 0;
}

.legal-hero {
    padding-block: clamp(108px, 12vw, 155px) 42px;
    background: linear-gradient(180deg, #fff, var(--blue-near-white));
    border-bottom: 1px solid #e2e9f2;
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 34px;
    color: var(--blue-dark);
    font-size: 0.87rem;
    font-weight: 750;
}

.legal-hero h1 {
    max-width: 1050px;
    margin-bottom: 22px;
    font-size: clamp(2.65rem, 5.5vw, 4.75rem);
    line-height: 1.06;
    letter-spacing: -0.055em;
    overflow-wrap: anywhere;
}

.legal-hero__intro {
    max-width: 790px;
    margin-bottom: 22px;
    color: var(--muted);
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    line-height: 1.65;
}

.legal-updated {
    display: inline-block;
    margin-bottom: 0;
    padding: 8px 12px;
    color: var(--blue-dark);
    background: var(--blue-soft);
    border-radius: 8px;
    font-size: 0.79rem;
    font-weight: 650;
}

.legal-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    align-items: start;
    gap: 36px;
    padding-block: 48px 72px;
}

.legal-sidebar {
    position: sticky;
    top: 90px;
    min-width: 0;
}

.legal-documents {
    display: grid;
    gap: 6px;
    margin-bottom: 30px;
}

.legal-documents a {
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 750;
}

.legal-documents a.is-active,
.legal-documents a:hover {
    color: var(--blue-dark);
    background: var(--blue-soft);
    border-color: #d4e3fc;
}

.legal-toc {
    display: grid;
    gap: 8px;
    padding-inline: 14px;
}

.legal-toc h2 {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.legal-toc a {
    padding-block: 4px;
    color: #515c65;
    font-size: 0.84rem;
    line-height: 1.5;
}

.legal-toc a:hover {
    color: var(--blue-dark);
}

.legal-card {
    min-width: 0;
    padding: clamp(22px, 3vw, 42px);
    border: 1px solid #e1e7ed;
    border-radius: 22px;
    box-shadow: 0 20px 50px -40px rgba(8, 10, 12, 0.24);
    overflow-wrap: anywhere;
}

.legal-section + .legal-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e4e9ee;
}

.legal-section h2 {
    margin-bottom: 18px;
    font-size: clamp(1.22rem, 1.7vw, 1.55rem);
    line-height: 1.35;
    letter-spacing: -0.025em;
}

.legal-section p,
.legal-section li {
    color: #515b64;
    font-size: 0.97rem;
    line-height: 1.75;
}

.legal-section p {
    margin-bottom: 16px;
}

.legal-section ul {
    margin-block: 12px 20px;
    padding-left: 22px;
}

.legal-section li + li {
    margin-top: 9px;
}

.legal-section a,
.legal-contact a {
    color: var(--blue-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-identity {
    margin: 22px 0 0;
    padding: 18px 22px;
    background: var(--blue-near-white);
    border: 1px solid #dfe9f6;
    border-radius: 14px;
}

.legal-identity > div {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 10px 16px;
    padding-block: 12px;
    font-size: 0.88rem;
    line-height: 1.65;
}

.legal-identity > div + div {
    border-top: 1px solid #dce6f2;
}

.legal-identity dt {
    font-weight: 750;
}

.legal-identity dd {
    min-width: 0;
    margin: 0;
    color: #515b64;
}

.legal-related {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    padding-left: 0 !important;
    list-style: none;
}

.legal-related li + li {
    margin-top: 0;
}

.legal-cookie-table {
    width: 100%;
    margin-block: 24px;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 0.85rem;
    line-height: 1.65;
    text-align: left;
}

.legal-cookie-table th,
.legal-cookie-table td {
    padding: 14px 12px;
    border: 1px solid #dce5ee;
    vertical-align: top;
}

.legal-cookie-table thead th {
    color: #25344b;
    background: var(--blue-soft);
}

.legal-cookie-table th:first-child {
    width: 18%;
}

.legal-cookie-table th:nth-child(2) {
    width: 36%;
}

.legal-cookie-table td {
    color: #515b64;
}

.legal-cookie-table code {
    font-size: 0.87em;
}

.legal-contact {
    margin-top: 34px;
    padding: 24px;
    background: var(--blue-near-white);
    border: 1px solid #dfe9f6;
    border-radius: 14px;
}

.legal-contact h2 {
    margin-bottom: 12px;
    font-size: 1.08rem;
    line-height: 1.5;
}

.legal-contact p {
    color: #515b64;
    font-size: 0.9rem;
    line-height: 1.7;
}

.legal-contact a {
    font-size: 0.9rem;
    font-weight: 750;
}

@media (max-width: 900px) {
    .footer__legal {
        justify-content: center;
        text-align: center;
    }

    .footer__legal nav {
        justify-content: center;
    }

    .legal-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
    }

    .legal-sidebar {
        position: static;
    }

    .legal-documents {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-bottom: 24px;
    }

    .legal-toc {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px 20px;
    }

    .legal-toc h2 {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .legal-hero {
        padding-bottom: 32px;
    }

    .legal-hero h1 {
        font-size: clamp(2.1rem, 9vw, 3rem);
    }

    .legal-back {
        margin-bottom: 26px;
    }

    .legal-layout {
        padding-block: 26px 44px;
    }

    .legal-documents {
        grid-template-columns: minmax(0, 1fr);
    }

    .legal-documents a {
        padding-block: 10px;
    }

    .legal-toc {
        grid-template-columns: minmax(0, 1fr);
    }

    .legal-card {
        padding: 22px 18px;
        border-radius: 16px;
    }

    .legal-identity {
        padding: 10px 14px;
    }

    .legal-identity > div {
        grid-template-columns: minmax(0, 1fr);
        gap: 3px;
    }

    .legal-cookie-table,
    .legal-cookie-table tbody {
        display: block;
    }

    .legal-cookie-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }

    .legal-cookie-table tbody tr {
        display: block;
        margin-bottom: 16px;
        border: 1px solid #dce5ee;
        border-radius: 12px;
    }

    .legal-cookie-table tbody th:first-child,
    .legal-cookie-table td {
        display: block;
        width: 100%;
        border: 0;
    }

    .legal-cookie-table tbody th {
        padding-bottom: 4px;
        color: var(--blue-dark);
    }

    .legal-cookie-table td {
        padding-top: 9px;
    }

    .legal-cookie-table td::before {
        display: block;
        margin-bottom: 3px;
        color: #25344b;
        font-size: 0.76rem;
        font-weight: 750;
        content: attr(data-label);
    }

    .legal-contact {
        padding: 18px;
    }

}
