:root {
    --bg: #f6f7f4;
    --surface: #ffffff;
    --text: #182019;
    --muted: #667067;
    --line: #e4e8e2;
    --accent: #2f6b46;
    --accent-soft: #edf5ef;
    --max-width: 900px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

.site-header {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    width: min(calc(100% - 40px), 1180px);
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 17px;
    font-weight: 750;
    letter-spacing: -0.02em;
    text-decoration: none;
}



.logo-mark {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    display: block;
    object-fit: contain;
}

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

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

.legal-wrap {
    width: min(calc(100% - 40px), var(--max-width));
    margin: 64px auto 80px;
}

.legal-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: clamp(30px, 6vw, 64px);
    box-shadow: 0 16px 50px rgba(20, 35, 24, 0.05);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    color: var(--text);
    line-height: 1.18;
    letter-spacing: -0.025em;
}

h1 {
    margin: 0 0 18px;
    font-size: clamp(34px, 6vw, 52px);
}

h2 {
    margin: 46px 0 14px;
    font-size: clamp(22px, 3vw, 28px);
}

h3 {
    margin: 26px 0 8px;
    font-size: 18px;
}

p,
li {
    color: #414a42;
}

p {
    margin: 0 0 16px;
}

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

li + li {
    margin-top: 6px;
}

.intro {
    max-width: 720px;
    color: var(--muted);
    font-size: 17px;
}

.info-box {
    margin: 28px 0;
    padding: 20px 22px;
    background: var(--accent-soft);
    border: 1px solid #dce9df;
    border-radius: 16px;
}

.info-box p:last-child {
    margin-bottom: 0;
}

.address {
    font-style: normal;
    color: #414a42;
}

.text-link {
    color: var(--accent);
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.text-link:hover {
    text-decoration-thickness: 2px;
}

.small-note {
    color: var(--muted);
    font-size: 14px;
}

.legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 52px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.legal-nav a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}

.legal-nav a:hover,
.legal-nav a[aria-current="page"] {
    color: var(--text);
}

.site-footer {
    padding: 27px 0;
    border-top: 1px solid var(--line);
    background: #fafbf9;
}

.site-footer .footer-inner {
    width: min(1380px, calc(100% - 64px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr auto auto;
    align-items: center;
    gap: 52px;
    color: var(--muted);
    font-size: 13px;
}

.site-footer .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.site-footer .footer-brand .logo {
    font-size: 15px;
}

.site-footer .footer-brand p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    white-space: nowrap;
}

.site-footer .footer-links {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 26px;
}

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

.site-footer .footer-links a:hover {
    color: var(--text);
}

.site-footer .footer-copyright {
    color: var(--muted);
    white-space: nowrap;
}

@media (max-width: 700px) {
    .header-inner {
        width: min(calc(100% - 28px), 1180px);
        min-height: 64px;
    }

    .logo {
        font-size: 15px;
    }

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

    .legal-wrap {
        width: min(calc(100% - 24px), var(--max-width));
        margin: 28px auto 48px;
    }

    .legal-card {
        border-radius: 18px;
        padding: 28px 22px;
    }

    h2 {
        margin-top: 38px;
    }
    .site-footer {
        padding: 28px 0 24px;
    }

    .site-footer .footer-inner {
        width: min(calc(100% - 28px), 1380px);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .site-footer .footer-brand p {
        white-space: normal;
    }

    .site-footer .footer-links {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px 20px;
        padding-top: 16px;
        border-top: 1px solid var(--line);
    }

    .site-footer .footer-copyright {
        width: 100%;
        padding-top: 15px;
        white-space: normal;
        border-top: 1px solid var(--line);
    }
}