:root {
    --background: #f8f8f3;
    --text: #242b26;
    --muted: #657067;
    --green: #315747;
    --green-dark: #243e32;
    --border: #dce1d9;
    --notice: #e9eee7;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.8;
    background: var(--background);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

.container {
    width: min(100% - 48px, 780px);
    margin-inline: auto;
}

header {
    border-bottom: 1px solid var(--border);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 20px;
}

.brand {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -1.5px;
    color: var(--green-dark);
    text-decoration: none;
}

.brand span {
    color: #73927b;
}

.back-link {
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
}

.back-link:hover {
    color: var(--green);
}

.legal-content {
    flex: 1;
    padding-top: 64px;
    padding-bottom: 80px;
}

.eyebrow {
    display: block;
    margin-bottom: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--green);
}

h1 {
    margin: 0 0 12px;
    font-size: clamp(32px, 5vw, 46px);
    line-height: 1.2;
    letter-spacing: -1.5px;
    color: var(--green-dark);
}

h2 {
    margin: 36px 0 12px;
    font-size: 20px;
    line-height: 1.4;
    color: var(--green-dark);
}

h3 {
    margin: 0 0 6px;
    font-size: 16px;
    color: var(--green-dark);
}

p {
    margin: 0 0 16px;
    overflow-wrap: break-word;
}

.updated {
    margin-bottom: 32px;
    font-size: 13px;
    color: var(--muted);
}

.intro {
    max-width: 620px;
    margin-top: 20px;
    color: var(--muted);
    font-size: 16px;
}

ul {
    margin: 12px 0 20px;
    padding-left: 22px;
}

li {
    margin-bottom: 7px;
}

a {
    color: var(--green);
    text-underline-offset: 3px;
}

a:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 4px;
}

.notice {
    margin: 26px 0;
    padding: 20px 24px;
    background: var(--notice);
    border-left: 3px solid var(--green);
    border-radius: 3px;
}

.notice strong {
    color: var(--green-dark);
}

.notice p {
    margin: 6px 0 0;
    font-size: 14px;
}

.notice ul {
    margin-bottom: 0;
}

.contact-card {
    margin: 32px 0;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #ffffff;
}

.contact-card p {
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--muted);
}

.contact-email {
    font-size: 20px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.contact-topic {
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.contact-topic p {
    margin: 0;
    color: var(--muted);
}

.primary-button {
    display: inline-block;
    padding: 12px 24px;
    margin-top: 12px;
    border-radius: 4px;
    background: var(--green);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.primary-button:hover {
    background: var(--green-dark);
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-block: 24px;
    font-size: 12px;
    color: var(--muted);
}

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

.footer-links a {
    color: var(--muted);
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
    color: var(--green);
}

@media (max-width: 600px) {
    .container {
        width: calc(100% - 36px);
    }

    nav {
        min-height: 64px;
    }

    .legal-content {
        padding-top: 40px;
        padding-bottom: 48px;
    }

    .notice,
    .contact-card {
        padding: 18px;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .footer-links {
        gap: 16px;
    }
}