﻿:root {
    --bg: #f7f8f6;
    --surface: #ffffff;

    --text: #111412;
    --muted: #626a65;

    --line: #dce1dc;

    --accent: #176b44;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;

    background: var(--bg);
    color: var(--text);

    font-family:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    line-height: 1.7;

    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

.legal-page,
.error-page {
    width: min(
        calc(100% - 40px),
        840px
    );

    margin: 0 auto;

    padding:
        64px
        0
        90px;
}

.legal-brand {
    display: inline-block;

    margin-bottom: 72px;

    font-size: 1.05rem;
    font-weight: 850;

    letter-spacing: 0.19em;

    text-decoration: none;
}

.legal-label {
    margin:
        0
        0
        14px;

    color: var(--accent);

    font-size: 0.78rem;
    font-weight: 800;

    letter-spacing: 0.16em;

    text-transform: uppercase;
}

h1 {
    margin:
        0
        0
        16px;

    font-size: clamp(
        3rem,
        8vw,
        5.6rem
    );

    line-height: 0.98;

    letter-spacing: -0.055em;
}

.legal-updated {
    margin-bottom: 72px;

    color: var(--muted);
}

.legal-content section {
    padding:
        34px
        0;

    border-top: 1px solid var(--line);
}

.legal-content h2 {
    margin:
        0
        0
        12px;

    font-size: 1.25rem;

    letter-spacing: -0.02em;
}

.legal-content section p {
    max-width: 680px;

    margin: 0;

    color: var(--muted);
}

.legal-footer {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 24px;

    margin-top: 64px;

    padding-top: 26px;

    border-top: 1px solid var(--line);

    color: var(--muted);

    font-size: 0.9rem;
}

.legal-footer p {
    margin: 0;
}

.legal-footer a {
    text-underline-offset: 4px;
}

.error-page {
    min-height: 100vh;

    display: flex;

    flex-direction: column;
}

.error-content {
    margin: auto 0;
}

.error-content > p:not(.legal-label) {
    max-width: 520px;

    margin:
        0
        0
        30px;

    color: var(--muted);

    font-size: 1.1rem;
}

.home-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding:
        0
        18px;

    border-radius: 999px;

    background: var(--text);
    color: #ffffff;

    font-weight: 750;

    text-decoration: none;
}

@media (max-width: 520px) {

    .legal-page,
    .error-page {
        width: calc(100% - 28px);

        padding-top: 38px;
    }

    .legal-brand {
        margin-bottom: 54px;
    }

    .legal-footer {
        flex-direction: column;

        align-items: flex-start;
    }

}
