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

:root {
    --color-bg: #f9f9f7;
    --color-surface: #ffffff;
    --color-text: #1a1a1a;
    --color-muted: #666666;
    --color-accent: #2d6a4f;
    --color-accent-hover: #1b4332;
    --color-border: #e0e0d8;
    --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --max-width: 680px;
    --radius: 4px;
}

body {
    font-family: var(--font);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    font-size: 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--color-accent);
    text-decoration: none;
}

a:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}

/* ── Header ── */

header {
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1.25rem 1.5rem;
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.brand-link:hover {
    text-decoration: none;
}

.brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
    object-fit: contain;
}

.header-brand h1 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.header-brand p {
    font-size: 0.875rem;
    color: var(--color-muted);
    margin-top: 0.1rem;
}

nav {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-muted);
    transition: color 0.15s;
}

nav a:hover,
nav a.active {
    color: var(--color-accent);
    text-decoration: none;
}

/* ── Main ── */

main {
    flex: 1;
    padding: 2.5rem 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
}

h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--color-text);
}

ul {
    margin: 0.5rem 0 1rem 1.25rem;
}

ul li {
    margin-bottom: 0.35rem;
}

/* ── Page sections ── */

.page-intro {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.page-intro p {
    color: var(--color-muted);
    font-size: 0.95rem;
}

.feature-list {
    list-style: none;
    margin-left: 0;
    margin-bottom: 1.5rem;
}

.feature-list li {
    padding: 0.4rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.feature-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-size: 0.85rem;
    top: 0.45rem;
}

.link-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.link-group a {
    font-size: 0.9rem;
    font-weight: 500;
}

/* ── Contact block ── */

.contact-block {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-top: 1.25rem;
    line-height: 2;
}

.contact-block strong {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/* ── Policy content ── */

.policy-section {
    margin-bottom: 2rem;
}

.policy-section p,
.policy-section ul {
    font-size: 0.95rem;
    color: #333;
}

.last-updated {
    font-size: 0.8rem;
    color: var(--color-muted);
    margin-bottom: 2rem;
    margin-top: -0.5rem;
}

/* ── Footer ── */

footer {
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 1.25rem 1.5rem;
    font-size: 0.85rem;
    color: var(--color-muted);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--color-muted);
    font-size: 0.85rem;
}

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

/* ── Responsive ── */

@media (min-width: 600px) {
    .header-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}
