:root {
    --primary: #3a7d44;
    --primary-light: #e8f5ea;
    --text: #1a1a1a;
    --text-muted: #555;
    --border: #dde3e0;
    --bg: #ffffff;
    --surface: #f7faf8;
    --radius: 8px;
    --max-width: 860px;
}

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

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

/* ── Header ─────────────────────────────────────────────── */
header {
    background: var(--primary);
    color: #fff;
    padding: 40px 24px 32px;
    text-align: center;
}

header .app-name {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.85;
    margin-bottom: 12px;
}

header h1 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 8px;
}

header .subtitle {
    font-size: 14px;
    opacity: 0.75;
}

/* ── Navigation ─────────────────────────────────────────── */
nav {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 0;
    max-width: var(--max-width);
    margin: 0 auto;
}

nav ul li a {
    display: block;
    padding: 14px 24px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* ── Main content ───────────────────────────────────────── */
main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.last-updated {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 36px;
}

/* ── Sections ───────────────────────────────────────────── */
section {
    margin-bottom: 48px;
}

section h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 8px;
    margin-bottom: 16px;
}

section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 20px 0 8px;
}

section p {
    margin-bottom: 12px;
    color: var(--text);
}

section ul,
section ol {
    padding-left: 20px;
    margin-bottom: 12px;
}

section li {
    margin-bottom: 6px;
}

/* ── Callout boxes ──────────────────────────────────────── */
.callout {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 14px 18px;
    margin: 16px 0;
    font-size: 14px;
}

.callout.warning {
    background: #fff8e1;
    border-color: #f59e0b;
}

.callout strong {
    display: block;
    margin-bottom: 4px;
}

/* ── Third-party table ──────────────────────────────────── */
.services-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin: 16px 0;
}

.services-table th {
    background: var(--primary);
    color: #fff;
    text-align: left;
    padding: 10px 14px;
    font-weight: 600;
}

.services-table th:first-child { border-radius: var(--radius) 0 0 0; }
.services-table th:last-child  { border-radius: 0 var(--radius) 0 0; }

.services-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.services-table tr:nth-child(even) td {
    background: var(--surface);
}

.services-table a {
    color: var(--primary);
}

/* ── Footer ─────────────────────────────────────────────── */
footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 28px 24px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

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

footer a:hover {
    text-decoration: underline;
}

footer .footer-links {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 600px) {
    header {
        padding: 28px 16px 24px;
    }

    main {
        padding: 32px 16px 60px;
    }

    nav ul li a {
        padding: 12px 14px;
        font-size: 13px;
    }

    .services-table {
        display: block;
        overflow-x: auto;
    }
}
