

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: #17231d;
    background: #f7f8f4;
    line-height: 1.7;
}

a {
    color: inherit;
}

.container {
    width: min(100% - 40px, 1120px);
    margin: 0 auto;
}


/* HEADER */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e9e4;
}

.nav-wrap {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #173d2b;
    font-weight: 800;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #173d2b;
    color: #ffffff;
    font-size: 16px;
}

.brand-name {
    font-size: 18px;
    letter-spacing: -0.02em;
}

.brand-name span {
    color: #76a981;
}

.back-link {
    color: #536259;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.back-link:hover {
    color: #173d2b;
}


/* LEGAL PAGE */

.legal-page {
    padding: 90px 0 110px;
}

.legal-container {
    max-width: 900px;
}

.legal-intro {
    max-width: 720px;
    margin-bottom: 70px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #39714c;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #76a981;
}

h1 {
    margin: 0 0 22px;
    color: #173d2b;
    font-size: clamp(42px, 7vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.intro {
    margin: 0;
    color: #59665e;
    font-size: 18px;
    line-height: 1.7;
}

.updated {
    margin: 20px 0 0;
    color: #7a857e;
    font-size: 13px;
}


/* CONTENT */

.legal-content {
    background: #ffffff;
    border: 1px solid #e3e8e2;
    border-radius: 22px;
    padding: 52px;
    box-shadow: 0 18px 50px rgba(23, 61, 43, 0.06);
}

.legal-content section {
    padding-bottom: 38px;
    margin-bottom: 38px;
    border-bottom: 1px solid #e8ece8;
}

.legal-content section:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
}

.legal-content h2 {
    margin: 0 0 16px;
    color: #173d2b;
    font-size: 23px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.legal-content p {
    margin: 0 0 15px;
    color: #59665e;
    font-size: 15px;
}

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

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


/* FOOTER */

.site-footer {
    padding: 45px 0;
    background: #12251b;
    color: #ffffff;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    align-items: end;
}

.footer-inner .brand {
    color: #ffffff;
}

.footer-inner .brand-mark {
    background: #ffffff;
    color: #173d2b;
}

.footer-inner p {
    margin: 12px 0 0;
    color: #aebbb3;
    font-size: 13px;
}

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

.footer-links a {
    color: #d5ddd8;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-copy {
    grid-column: 1 / -1;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #87958d;
    font-size: 12px;
}


/* MOBILE */

@media (max-width: 700px) {

    .container {
        width: min(100% - 28px, 560px);
    }

    .nav-wrap {
        min-height: 70px;
        padding: 14px 0;
    }

    .back-link {
        font-size: 12px;
    }

    .legal-page {
        padding: 60px 0 70px;
    }

    .legal-intro {
        margin-bottom: 40px;
    }

    h1 {
        font-size: clamp(40px, 12vw, 56px);
    }

    .intro {
        font-size: 16px;
    }

    .legal-content {
        padding: 30px 22px;
        border-radius: 18px;
    }

    .legal-content h2 {
        font-size: 20px;
    }

    .legal-content p {
        font-size: 14px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        align-items: start;
    }

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

    .footer-copy {
        grid-column: auto;
    }
}
