body {
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.legal-header {
    min-height: 72px;
}

.legal-header .logo {
    font-size: 24px;
}

.back-link {
    line-height: 1.2;
}

.legal-container {
    width: min(100%, 760px);
}

.legal-eyebrow {
    display: block;
}

.legal-container section {
    scroll-margin-top: 96px;
}

h1 {
    text-wrap: balance;
}

h2,
h3 {
    text-wrap: balance;
}

p,
li {
    overflow-wrap: anywhere;
}

ul,
ol {
    list-style-position: outside;
}

.legal-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px 40px;
    align-items: end;
    margin-top: 40px;
}

.legal-footer-brand {
    grid-column: 1 / -1;
    font-family: 'Fraunces', serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #0C3022;
}

.legal-footer-brand span {
    color: #B8975A;
}

.legal-footer-links {
    align-items: center;
    flex-wrap: wrap;
}

.legal-footer-links a {
    line-height: 1.35;
}

.cookie-consent {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1000;
    width: min(420px, calc(100vw - 48px));
    padding: 22px;
    background: #050A09;
    border: 1px solid rgba(6, 95, 70, 0.34);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(0,0,0,0.28);
    transform: translateY(calc(100% + 40px));
    transition: transform 0.55s cubic-bezier(0.19, 1, 0.22, 1);
}

.cookie-consent.active {
    transform: translateY(0);
}

.cookie-consent p {
    margin: 0 0 18px;
    color: rgba(250, 249, 246, 0.72);
    font-size: 13px;
    line-height: 1.55;
}

.cookie-actions {
    display: flex;
    gap: 12px;
}

.cookie-actions button {
    flex: 1;
    min-height: 42px;
    border-radius: 999px;
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
}

.cookie-btn-accept {
    border: 1px solid #065F46;
    background: #065F46;
    color: #FAF9F6;
}

.cookie-btn-decline {
    border: 1px solid rgba(250, 249, 246, 0.24);
    background: transparent;
    color: rgba(250, 249, 246, 0.72);
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid #065F46;
    outline-offset: 4px;
}

@media (max-width: 768px) {
    .legal-header {
        min-height: 72px;
        padding: 18px 24px !important;
        gap: 20px;
    }

    .legal-header .logo {
        font-size: 23px;
        flex: 0 0 auto;
    }

    .back-link {
        max-width: 11rem;
        text-align: right;
        font-size: 10px;
        letter-spacing: 0.11em;
    }

    .legal-container {
        padding: 56px 24px 72px !important;
    }

    .legal-eyebrow {
        margin-bottom: 20px;
    }

    h1 {
        font-size: clamp(34px, 10vw, 44px) !important;
        line-height: 1.06;
        margin-bottom: 14px;
    }

    .last-updated {
        margin-bottom: 48px;
        padding-bottom: 32px;
    }

    h2 {
        font-size: clamp(24px, 7vw, 30px);
        line-height: 1.18;
        margin-top: 44px;
        margin-bottom: 14px;
    }

    h3 {
        font-size: 15px;
        line-height: 1.35;
    }

    p,
    li {
        font-size: 16px;
        line-height: 1.72;
    }

    ul {
        padding-left: 22px;
    }

    .legal-footer {
        display: grid !important;
        grid-template-columns: 1fr;
        align-items: start !important;
        gap: 18px;
        padding: 36px 24px 44px !important;
        margin-top: 0;
    }

    .legal-footer p {
        max-width: 22rem;
        line-height: 1.6;
    }

    .legal-footer-links {
        display: flex;
        gap: 12px 22px !important;
        width: 100%;
    }

    .legal-footer-links a {
        font-size: 10px;
        letter-spacing: 0.1em;
    }

    .cookie-consent {
        left: 16px;
        right: 16px;
        bottom: 16px;
        width: auto;
        padding: 20px;
    }

    .cookie-actions {
        gap: 10px;
    }
}
