:root {
    color-scheme: dark;
    --background: #111216;
    --surface: #1a1c22;
    --border: #353842;
    --text: #f4f4f5;
    --muted: #b3b5bd;
    --blue: #8eb6df;
    --red: #f2a0a6;
    --accent: #ffcc00;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--background);
}

body {
    min-width: 280px;
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: Arial, "Noto Sans KR", sans-serif;
    line-height: 1.7;
}

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

a:hover,
a:focus-visible {
    color: var(--accent);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--border);
    background: rgba(17, 18, 22, 0.96);
}

.site-header-inner,
.legal-main,
.site-footer-inner {
    width: min(760px, calc(100% - 36px));
    margin: 0 auto;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    gap: 16px;
}

.brand {
    color: var(--text);
    font-size: 16px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

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

.legal-main {
    padding: 54px 0 72px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
}

h1 {
    margin: 0;
    font-size: clamp(30px, 8vw, 48px);
    line-height: 1.18;
}

.lead {
    max-width: 680px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 17px;
}

.effective-date {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.legal-section {
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
}

.legal-section h2 {
    margin: 0 0 12px;
    font-size: 21px;
    line-height: 1.35;
}

.legal-section h3 {
    margin: 24px 0 8px;
    font-size: 16px;
}

.legal-section p {
    margin: 10px 0;
}

.legal-section ul,
.legal-section ol {
    margin: 12px 0;
    padding-left: 22px;
}

.legal-section li + li {
    margin-top: 8px;
}

.notice {
    margin: 24px 0 0;
    padding: 16px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 6px;
    background: var(--surface);
    color: var(--muted);
}

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

.data-table {
    width: 100%;
    margin-top: 16px;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th,
.data-table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.data-table th {
    color: var(--muted);
    font-size: 12px;
}

.site-footer {
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 13px;
}

.site-footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    padding: 24px 0 36px;
}

.site-footer a {
    color: var(--muted);
}

@media (max-width: 560px) {
    .site-header-inner,
    .legal-main,
    .site-footer-inner {
        width: min(100% - 28px, 760px);
    }

    .legal-main {
        padding-top: 38px;
    }

    .lead {
        font-size: 16px;
    }

    .data-table,
    .data-table tbody,
    .data-table tr,
    .data-table th,
    .data-table td {
        display: block;
    }

    .data-table thead {
        display: none;
    }

    .data-table tr {
        padding: 10px 0;
        border-bottom: 1px solid var(--border);
    }

    .data-table td {
        padding: 4px 0;
        border: 0;
    }

    .data-table td::before {
        display: block;
        color: var(--muted);
        font-size: 11px;
        font-weight: 900;
        content: attr(data-label);
    }
}
