:root {
    color-scheme: dark;
}

body.subscriptions-body,
body.subscriptions-legal-body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.subscription-shell-header,
.subscription-shell-footer {
    border-color: rgba(77, 105, 136, .42);
    background: rgba(8, 17, 29, .94);
}

.subscription-shell-header {
    border-bottom: 1px solid rgba(77, 105, 136, .42);
}

.subscription-shell-wrap {
    box-sizing: border-box;
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.subscription-shell-brand {
    display: flex;
    min-height: 72px;
    align-items: center;
    gap: 14px;
}

.subscription-shell-brand-name,
.subscription-shell-footer-brand {
    color: #55b8ff;
    font-family: "Manrope", sans-serif;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1;
}

.subscription-shell-brand-caption {
    padding-left: 14px;
    border-left: 1px solid rgba(110, 145, 183, .42);
    color: #b9cce0;
    font-family: "Manrope", sans-serif;
    font-size: 13px;
    font-weight: 700;
}

.subscription-shell-footer {
    margin-top: auto;
    border-top: 1px solid rgba(77, 105, 136, .42);
}

.subscription-shell-footer-wrap {
    display: flex;
    min-height: 88px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.subscription-shell-footer-brand {
    color: #dbe9f8;
    font-size: 13px;
}

.subscription-shell-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 20px;
}

.subscription-shell-footer-links a {
    color: #9baec3;
    font-family: "Manrope", sans-serif;
    font-size: 12px;
    text-decoration: none;
}

.subscription-shell-footer-links a:hover {
    color: #74bbff;
}

.subscriptions-legal-page {
    min-height: calc(100vh - 160px);
}

.subscriptions-legal-page .offer-header {
    padding-top: 36px;
}

.subscriptions-legal-page .offer-header h1 {
    margin-left: 0;
}

.subscriptions-legal-document {
    max-width: 820px;
    margin: 0 auto 48px;
}

@media (max-width: 640px) {
    .subscription-shell-wrap {
        width: min(100% - 32px, 1120px);
    }

    .subscription-shell-brand {
        min-height: 62px;
    }

    .subscription-shell-footer-wrap {
        min-height: 0;
        align-items: flex-start;
        flex-direction: column;
        padding: 22px 0;
    }

    .subscription-shell-footer-links {
        justify-content: flex-start;
    }
}
