:root {
    --green: #173d2c;
    --green-dark: #102d21;
    --cream: #f4f1e8;
    --text: #173d2c;
    --muted: #66736b;
    --line: rgba(23, 61, 44, 0.16);

    --shell-max: 1180px;
    --content-max: 804px;
    --shell-pad: 32px;
    --content-gutter: 28px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--cream);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--green);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

a:hover,
a:focus-visible {
    opacity: 0.65;
}

strong {
    font-weight: 600;
}

/* HEADER */

.site-header {
    width: 100%;
    padding: 30px var(--shell-pad) 0;
}

.header-inner {
    width: 100%;
    max-width: var(--shell-max);
    margin: 0 auto;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    max-width: 100%;
    color: var(--green);
    text-decoration: none;
}

.brand-mark {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    max-width: 36px;
    max-height: 36px;
    flex: 0 0 36px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    background: var(--green);
    color: var(--cream);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-width: 0;
    line-height: 1;
}

.brand-name {
    display: block;
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.brand-tagline {
    display: block;
    margin-top: 1px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: 0.18em;
    white-space: nowrap;
}

/* MAIN */

.legal-page {
    width: min(calc(100% - (2 * var(--content-gutter))), var(--content-max));
    margin: 0 auto;
    padding: 110px 0 130px;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1 {
    margin: 0 0 80px;
    color: var(--green);
    font-size: clamp(54px, 9vw, 100px);
    line-height: 0.95;
    letter-spacing: -0.065em;
    font-weight: 600;
}

.legal-section {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 50px;
    padding: 36px 0;
    border-top: 1px solid var(--line);
}

.legal-section:last-of-type {
    border-bottom: 1px solid var(--line);
}

.legal-section h2 {
    margin: 0;
    color: var(--green);
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: 0.02em;
}

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

.legal-content p {
    margin: 0 0 18px;
    overflow-wrap: anywhere;
}

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

.legal-content ul {
    margin: 16px 0 18px;
    padding-left: 20px;
}

.legal-content li {
    margin-bottom: 8px;
    overflow-wrap: anywhere;
}

/* FOOTER */

.site-footer {
    width: 100%;
    padding: 70px var(--shell-pad) 35px;
    background: var(--green-dark);
    color: var(--cream);
}

.footer-inner {
    width: 100%;
    max-width: var(--shell-max);
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
    padding-bottom: 60px;
}

.footer-brand {
    margin: 0 0 18px;
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -0.04em;
}

.footer-description {
    max-width: 440px;
    margin: 0;
    color: rgba(244, 241, 232, 0.68);
    font-size: 15px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav-title {
    margin-bottom: 8px;
    color: rgba(244, 241, 232, 0.52);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-nav a {
    color: var(--cream);
    text-decoration: none;
}

.footer-bottom {
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    color: rgba(244, 241, 232, 0.52);
    font-size: 12px;
}

/* TABLET */

@media (max-width: 700px) {
    :root {
        --shell-pad: 18px;
        --content-gutter: 18px;
    }

    .site-header {
        padding-top: 22px;
    }

    .header-inner {
        padding-bottom: 22px;
    }

    .legal-page {
        padding: 68px 0 84px;
    }

    h1 {
        margin-bottom: 48px;
        font-size: clamp(44px, 15vw, 68px);
    }

    .legal-section {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 26px 0;
    }

    .legal-section h2 {
        color: var(--muted);
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .site-footer {
        padding-top: 50px;
        padding-bottom: 26px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

/* PHONE */

@media (max-width: 380px) {
    :root {
        --shell-pad: 14px;
        --content-gutter: 14px;
    }

    .site-header {
        padding-top: 20px;
    }

    .header-inner {
        padding-bottom: 20px;
    }

    .brand {
        gap: 8px;
    }

    .brand-mark {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        max-width: 32px;
        max-height: 32px;
        flex-basis: 32px;
        font-size: 13px;
    }

    .brand-name {
        font-size: 13px;
    }

    .brand-tagline {
        font-size: 9.5px;
        letter-spacing: 0.15em;
    }
}
