:root {
    --legal-primary: #00ab91;
    --legal-text: #2d3939;
    --legal-muted: #597676;
    --legal-line: #e4eaea;
    --legal-footer: #fafbfb;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #fff;
    color: #000;
    font-family: "Manrope", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.legal-container {
    width: min(calc(100% - 48px), 1024px);
    margin: 0 auto;
}

.legal-header {
    height: 84px;
    padding-top: 24px;
}

.legal-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 36px;
}

.legal-header__brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.legal-header__brand a,
.legal-header__brand img {
    display: block;
    width: 112px;
    height: 28px;
}

.legal-header__brand > span {
    width: 1px;
    height: 28px;
    background: #ced7d6;
}

.legal-header__brand strong {
    font-size: 14px;
    font-weight: 500;
    line-height: 15.4px;
}

.legal-header__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    padding: 0 16px 0 24px;
    border: 1px solid #ced7d6;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
    color: var(--legal-text);
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
}

.legal-header__back img {
    width: 20px;
    height: 20px;
}

.policy-layout {
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr);
    gap: 64px;
    align-items: start;
    min-height: 1453px;
    padding-top: 16px;
    padding-bottom: 96px;
}

.policy-nav {
    position: sticky;
    top: 24px;
    padding-right: 1px;
    border-right: 1px solid var(--legal-line);
}

.policy-nav__link {
    display: flex;
    align-items: center;
    min-height: 36px;
    padding: 8px;
    color: var(--legal-muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
}

.policy-nav__link--active {
    position: relative;
    color: var(--legal-primary);
}

.policy-nav__link--active::after {
    position: absolute;
    top: 0;
    right: -2px;
    width: 2px;
    height: 36px;
    background: var(--legal-primary);
    content: "";
}

.policy-content {
    min-width: 0;
}

.policy-title {
    margin-bottom: 32px;
}

.policy-title h1 {
    margin: 0 0 14px;
    font-size: 36px;
    font-weight: 500;
    line-height: 42px;
}

.policy-title p {
    margin: 0;
    color: var(--legal-muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
}

.policy-content > section {
    scroll-margin-top: 24px;
    padding-bottom: 64px;
}

.policy-content > section + section {
    padding-top: 12px;
    border-top: 1px solid var(--legal-line);
}

.policy-content h2 {
    margin: 0 0 20px;
    color: #000;
    font-size: 24px;
    font-weight: 500;
    line-height: 32px;
}

.policy-copy {
    color: var(--legal-text);
}

.policy-copy h3 {
    margin: 28px 0 10px;
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
}

.policy-copy p {
    max-width: 700px;
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 28px;
}

.policy-copy a {
    color: var(--legal-primary);
    font-weight: 600;
    text-decoration: underline;
}

.legal-page__preferences {
    min-height: 36px;
    margin-top: 20px;
    padding: 0 18px;
    border: 1px solid var(--legal-primary);
    border-radius: 6px;
    background: var(--legal-primary);
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.legal-footer {
    min-height: 376px;
    padding: 64px 0;
    background: var(--legal-footer);
}

.legal-footer__inner {
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.legal-footer__links {
    width: 200px;
}

.legal-footer__links h2 {
    margin: 0 0 29px;
    font-size: 16px;
    font-weight: 700;
    line-height: 15.4px;
}

.legal-footer__links a {
    display: block;
    width: fit-content;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 15.4px;
}

.legal-footer__logo {
    display: block;
    width: 166px;
    height: auto;
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner {
    position: fixed;
    z-index: 1000;
    right: 24px;
    bottom: 24px;
    left: 24px;
}

.cookie-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: 22px 24px;
    border: 1px solid #d3e4de;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(12, 55, 62, .18);
}

.cookie-banner__copy {
    max-width: 650px;
}

.cookie-banner__copy h2 {
    margin: 0 0 6px;
    color: #0c373e;
    font-size: 20px;
    line-height: 1.3;
}

.cookie-banner__copy p {
    margin: 0;
    color: var(--legal-muted);
    font-size: 14px;
    line-height: 1.55;
}

.cookie-banner__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-banner__policy {
    margin-right: 6px;
    color: var(--legal-primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
}

.cookie-banner__button {
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid var(--legal-primary);
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.cookie-banner__button--secondary {
    background: #fff;
    color: var(--legal-primary);
}

.cookie-banner__button--primary {
    background: var(--legal-primary);
    color: #fff;
}

@media (max-width: 760px) {
    .legal-container {
        width: min(calc(100% - 32px), 1024px);
    }

    .legal-header__brand > span,
    .legal-header__brand strong,
    .legal-header__back span {
        display: none;
    }

    .legal-header__back {
        width: 40px;
        padding: 0;
    }

    .policy-layout {
        display: block;
        min-height: 0;
        padding-top: 28px;
    }

    .policy-nav {
        position: static;
        display: flex;
        gap: 6px;
        overflow-x: auto;
        margin-bottom: 36px;
        padding: 0 0 10px;
        border-right: 0;
        border-bottom: 1px solid var(--legal-line);
    }

    .policy-nav__link {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .policy-nav__link--active::after {
        top: auto;
        right: 8px;
        bottom: -11px;
        left: 8px;
        width: auto;
        height: 2px;
    }

    .policy-title h1 {
        font-size: 32px;
        line-height: 40px;
    }

    .legal-footer__links {
        width: 100%;
    }

    .cookie-banner {
        right: 12px;
        bottom: 12px;
        left: 12px;
    }

    .cookie-banner__inner,
    .cookie-banner__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .cookie-banner__inner {
        gap: 18px;
        padding: 20px;
    }

    .cookie-banner__policy {
        margin: 0 0 4px;
        text-align: center;
    }
}
