@import url('./styles.css?v=20260913-performance');

.legal-page {
    min-height: 100vh;
    color: #101513;
    background: #f9faf7;
}

.legal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 96px;
    padding: 16px 7vw;
    border-bottom: 1px solid #d9ded7;
    background: #f9faf7;
}

.legal-brand img {
    display: block;
    width: 74px;
    height: 64px;
    object-fit: contain;
}

.legal-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 16px 24px;
}

.legal-nav a,
.legal-back {
    color: #101513;
    font-family: "Space Grotesk", sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.legal-nav a:hover,
.legal-back:hover {
    color: #607d0b;
}

.legal-hero {
    padding: clamp(54px, 8vw, 112px) 7vw clamp(46px, 7vw, 86px);
    color: #f8faf5;
    background: #101713;
}

.legal-hero .eyebrow {
    color: #c8f50a;
}

.legal-hero h1 {
    max-width: 840px;
    margin: 10px 0 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(45px, 6vw, 82px);
    font-weight: 700;
    letter-spacing: -.07em;
    line-height: .92;
}

.legal-hero p:not(.eyebrow) {
    max-width: 680px;
    margin: 25px 0 0;
    color: rgba(248,250,245,.78);
    font-size: 17px;
    line-height: 1.6;
}

.legal-content {
    display: grid;
    grid-template-columns: minmax(0, 760px) minmax(190px, 270px);
    align-items: start;
    gap: clamp(32px, 7vw, 110px);
    max-width: 1250px;
    margin: 0 auto;
    padding: clamp(45px, 7vw, 96px) 7vw;
}

.legal-article h2 {
    margin: 0 0 14px;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(25px, 3vw, 37px);
    font-weight: 700;
    letter-spacing: -.055em;
    line-height: 1;
}

.legal-article h3 {
    margin: 30px 0 10px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.03em;
}

.legal-article p,
.legal-article li {
    color: #39443b;
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

.legal-article p {
    margin: 0 0 16px;
}

.legal-article ul {
    margin: 0 0 20px;
    padding-left: 20px;
}

.legal-article a {
    color: #344807;
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.legal-article section + section {
    margin-top: 52px;
    padding-top: 45px;
    border-top: 1px solid #d9ded7;
}

.legal-aside {
    position: sticky;
    top: 24px;
    padding: 22px;
    border-left: 3px solid #c8f50a;
    background: #edf1e9;
}

.legal-aside p {
    margin: 0;
    color: #435047;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    line-height: 1.55;
}

.legal-aside strong {
    display: block;
    margin-bottom: 8px;
    color: #101513;
    font-family: "Space Grotesk", sans-serif;
    font-size: 15px;
}

.legal-download {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    margin: 0 0 46px;
    padding: 18px 20px;
    color: #101513;
    text-decoration: none;
    border: 1px solid #c9d0c7;
    background: #edf1e9;
    transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.legal-download:hover {
    color: #101513;
    border-color: #a3b761;
    background: #e3eabd;
    transform: translateY(-1px);
}

.legal-download-type {
    display: inline-grid;
    place-items: center;
    min-width: 42px;
    min-height: 32px;
    padding: 0 7px;
    color: #101713;
    background: #c8f50a;
    font-family: "Space Grotesk", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
}

.legal-download strong,
.legal-download small {
    display: block;
}

.legal-download strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 17px;
    letter-spacing: -.03em;
}

.legal-download small {
    margin-top: 2px;
    color: #435047;
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
}

.legal-placeholder {
    display: inline-block;
    padding: 1px 4px;
    color: #6a1f1f;
    background: #ffebeb;
    border: 1px solid #dc9a9a;
    border-radius: 2px;
    font-weight: 700;
}

.legal-note {
    padding: 20px 22px;
    border: 1px solid #c9d0c7;
    background: #f0f3ed;
}

.legal-note p:last-child {
    margin-bottom: 0;
}

.legal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 26px 7vw;
    color: rgba(248,250,245,.73);
    background: #101713;
}

.legal-footer p,
.legal-footer a {
    margin: 0;
    color: inherit;
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
}

.legal-footer a {
    color: #c8f50a;
    font-weight: 700;
}

@media (max-width: 760px) {
    .legal-header {
        min-height: 80px;
        padding: 10px 24px;
    }

    .legal-brand img {
        width: 64px;
        height: 55px;
    }

    .legal-nav {
        gap: 10px 16px;
    }

    .legal-nav a,
    .legal-back {
        font-size: 13px;
    }

    .legal-content {
        grid-template-columns: 1fr;
        padding: 47px 24px 60px;
    }

    .legal-aside {
        position: static;
        order: -1;
    }

    .legal-article p,
    .legal-article li {
        font-size: 15px;
    }

    .legal-download {
        margin-bottom: 38px;
        padding: 16px;
    }

    .legal-footer {
        display: grid;
        padding: 24px;
    }
}
