.legal-page {
    background: var(--background, #f8f9fb);
    color: var(--text);
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

.legal-page .header {
    background: rgba(0, 0, 0, 0.9);
}

.legal-main {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 60px);
    overflow-x: hidden;
    width: 100%;
}

.legal-content {
    flex: 1;
}

.legal-content__wrapper {
    box-sizing: border-box;
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    padding: 82px 24px 48px;
    text-align: left;
    line-height: 1.6;
}

.legal-content__title {
    margin: 24px 0 32px;
    font-size: clamp(2.2rem, 5vw, 2.6rem);
    font-weight: 600;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.legal-section {
    width: 100%;
    margin: 0 0 40px;
}

.legal-section:last-of-type {
    margin-bottom: 0;
}

.legal-section__title {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.legal-text {
    margin: 0 0 24px;
    font-size: 17px;
    overflow-wrap: anywhere;
}

.legal-text:last-of-type {
    margin-bottom: 0;
}

.legal-text--tight {
    margin-bottom: 14px;
}

.legal-section--compact .legal-text {
    margin-bottom: 8px;
}

.legal-section--compact .legal-text:last-of-type {
    margin-bottom: 0;
}

.legal-text a {
    color: inherit;
}

.legal-field {
    margin: 0 0 24px;
}

.legal-field:last-of-type {
    margin-bottom: 0;
}

.legal-field__label {
    display: block;
    margin: 0 0 10px;
    font-weight: 500;
    font-size: 16px;
    overflow-wrap: anywhere;
}

.legal-field__value {
    display: block;
    margin: 0;
    font-size: 17px;
    overflow-wrap: anywhere;
}

.legal-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.legal-link:hover,
.legal-link:focus-visible {
    text-decoration-thickness: 1.5px;
}

.legal-contact-band {
    background: #000;
    color: #fff;
    padding: 17px 0 10px;
}

.legal-contact-band__wrapper {
    box-sizing: border-box;
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: left;
}

.legal-contact-band__title {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 400;
    color: #fff;
}

.legal-contact-band__list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.legal-contact-band__label {
    display: block;
    margin: 0 0 8px;
    font-weight: 400;
    font-size: 16px;
    color: #fff;
    overflow-wrap: anywhere;
}

.legal-contact-band__value {
    display: block;
    margin: 0;
    font-size: 17px;
    font-weight: 300;
    color: #fff;
    overflow-wrap: anywhere;
}

.legal-page .footer {
    background: #000;
    color: #fff;
    padding: 0;
    overflow-x: hidden;
}

.legal-page .footer__divider {
    display: block;
    width: 100%;
    height: 1px;
    margin: 4px 0;
    background: #fff;
}

.legal-page .footer__row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    padding: 8px 24px 28px;
    box-sizing: border-box;
}

.legal-page .footer__item,
.legal-page .footer__link {
    color: #fff;
    overflow-wrap: anywhere;
}

.legal-page .footer__row a {
    color: #fff;
    font-size: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.6);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.legal-page .footer__row a:hover,
.legal-page .footer__row a:focus-visible {
    text-decoration-color: rgba(255, 255, 255, 0.85);
}

.return-home {
    position: fixed;
    right: 18px;
    bottom: 32px;
    inset-inline-end: calc(18px + env(safe-area-inset-right));
    inset-block-end: calc(32px + env(safe-area-inset-bottom));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: 12px 20px;
    background: #cfe6ff;
    color: #052847;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    line-height: 1.1;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(5, 40, 71, 0.16);
    transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 80ms ease;
    z-index: 140;
}

.return-home__label {
    display: inline-block;
    white-space: nowrap;
}

.return-home__label--long {
    display: none;
}

.return-home:hover {
    background: #b9dbff;
    color: #032038;
    box-shadow: 0 10px 24px rgba(5, 40, 71, 0.2);
}

.return-home:active {
    transform: scale(0.98);
    background: #a9d3ff;
}

.return-home:focus-visible {
    outline: 3px solid #004e92;
    outline-offset: 4px;
}

@media (min-width: 640px) {
    .legal-content__wrapper {
        padding: 67px 32px 56px;
    }

    .legal-contact-band__wrapper {
        padding: 0 32px;
    }

    .legal-page .footer__row {
        padding: 8px 32px 30px;
    }

    .return-home {
        right: 24px;
        bottom: 40px;
        inset-inline-end: calc(24px + env(safe-area-inset-right));
        inset-block-end: calc(40px + env(safe-area-inset-bottom));
        padding: 14px 24px;
        font-size: 16px;
        box-shadow: 0 9px 22px rgba(5, 40, 71, 0.17);
    }

    .return-home__label--short {
        display: none;
    }

    .return-home__label--long {
        display: inline;
    }
}

@media (min-width: 1024px) {
    .legal-content__wrapper {
        padding: 72px 48px 64px;
    }

    .legal-contact-band__wrapper {
        padding: 0 48px;
    }

    .legal-page .footer__row {
        padding: 8px 48px 32px;
    }

    .return-home {
        right: 32px;
        bottom: 48px;
        inset-inline-end: calc(32px + env(safe-area-inset-right));
        inset-block-end: calc(48px + env(safe-area-inset-bottom));
        padding: 15px 28px;
        font-size: 17px;
        box-shadow: 0 10px 28px rgba(5, 40, 71, 0.18);
    }
}
