:root {
    --bg: #f4f6f8;
    --surface: #ffffff;
    --ink: #1f2937;
    --muted: #64748b;
    --line: #d9e0ea;
    --accent: #2f6f73;
    --accent-soft: #e3f0ee;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", Arial, sans-serif;
    line-height: 1.7;
}

.page {
    width: min(980px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 72px;
}

.top-link {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

header {
    display: grid;
    gap: 12px;
    margin: 28px 0 32px;
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1 {
    font-size: clamp(34px, 6vw, 54px);
    line-height: 1.1;
}

h2 {
    margin-bottom: 14px;
    font-size: 24px;
    line-height: 1.3;
}

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

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

.section {
    margin-top: 18px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.notice {
    border-color: #b8d8d2;
    background: var(--accent-soft);
}

ul,
ol {
    margin: 10px 0 0;
    padding-left: 22px;
}

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

table {
    width: 100%;
    margin-top: 10px;
    border-collapse: collapse;
    overflow-wrap: anywhere;
}

th,
td {
    padding: 12px;
    border: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    width: 30%;
    background: #f8fafc;
}

a {
    color: var(--accent);
}

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

footer {
    margin-top: 28px;
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 720px) {
    .page {
        width: min(100% - 20px, 980px);
        padding: 28px 0 48px;
    }

    .section {
        padding: 18px;
    }

    table,
    tbody,
    tr,
    th,
    td {
        display: block;
        width: 100%;
    }

    th {
        border-bottom: 0;
    }
}
