:root {
    color-scheme: light;
    --page: #f7f7f8;
    --surface: #fff;
    --sunken: #f1f2f5;
    --sunken-strong: #e7e9ed;
    --ink: #15171c;
    --ink-secondary: #5c6371;
    --ink-muted: #9299a6;
    --brand: #f4d000;
    --brand-soft: #fff8d6;
    --brand-ink: #796300;
    --danger: #d93b40;
    --danger-soft: #fdecec;
    --info: #1b6fd1;
    --info-soft: #eaf2fc;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(21, 23, 28, .04), 0 10px 30px rgba(21, 23, 28, .06);
}

* { box-sizing: border-box; }

html {
    min-height: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 86px;
    background: var(--page);
}

body {
    min-height: 100%;
    margin: 0;
    color: var(--ink);
    background: var(--page);
    font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.72;
    word-break: keep-all;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }

:focus-visible {
    outline: 2px solid var(--info);
    outline-offset: 2px;
    border-radius: 6px;
}

.public-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #fff;
    background: var(--ink);
}

.public-header__inner,
.public-main,
.public-footer__inner {
    width: min(1000px, calc(100% - 48px));
    margin: 0 auto;
}

.public-header__inner {
    display: flex;
    min-height: 60px;
    align-items: center;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-family: Montserrat, Pretendard, sans-serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .02em;
    text-decoration: none;
}

.brand::before {
    width: 9px;
    height: 9px;
    margin-right: 9px;
    border-radius: 3px;
    background: var(--brand);
    content: "";
}

.public-nav {
    display: flex;
    gap: 2px;
    margin-left: auto;
}

.public-nav a {
    display: inline-flex;
    height: 34px;
    align-items: center;
    padding: 0 13px;
    border-radius: 9px;
    color: rgba(255, 255, 255, .62);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: color .15s, background-color .15s;
}

.public-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.public-nav a[aria-current="page"] {
    color: var(--ink);
    background: var(--brand);
}

.public-main { padding: 38px 0 60px; }

.eyebrow {
    margin: 0 0 9px;
    color: var(--brand-ink);
    font-family: Montserrat, Pretendard, sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .14em;
}

h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1.25;
    letter-spacing: -1px;
}

.lead {
    max-width: 680px;
    margin: 12px 0 0;
    color: var(--ink-secondary);
    font-size: 15.5px;
}

.meta {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.pill {
    display: inline-flex;
    min-height: 27px;
    align-items: center;
    padding: 3px 11px;
    border-radius: 999px;
    color: var(--ink-secondary);
    background: var(--sunken);
    font-size: 12px;
    font-weight: 600;
}

.page-toc {
    margin-top: 20px;
    padding: 16px 18px;
    border-radius: 12px;
    background: var(--sunken);
}

.page-toc__title {
    margin-bottom: 10px;
    color: var(--ink-muted);
    font-size: 12.5px;
    font-weight: 700;
}

.page-toc ol {
    margin: 0;
    padding-left: 19px;
    column-count: 2;
    column-gap: 28px;
}

.page-toc li {
    margin-bottom: 5px;
    color: var(--ink-secondary);
    font-size: 14px;
}

.page-toc a {
    color: var(--ink-secondary);
    font-weight: 600;
    text-decoration: none;
}

.page-toc a:hover { color: var(--ink); text-decoration: underline; }

.card {
    margin-top: 22px;
    padding: 26px 28px;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.section { scroll-margin-top: 82px; }
.section + .section {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--sunken-strong);
}

.section h2 {
    margin: 0 0 12px;
    font-size: 19px;
    line-height: 1.4;
    letter-spacing: -.4px;
}

.section h3 {
    margin: 26px 0 10px;
    font-size: 15px;
    line-height: 1.5;
}

.section p,
.section li {
    color: var(--ink-secondary);
    font-size: 14px;
    line-height: 1.72;
}

.section p { margin: 0 0 12px; }
.section ul,
.section ol { margin: 0 0 12px; padding-left: 20px; }
.section li + li { margin-top: 6px; }
.section strong { color: var(--ink); }

.policy-body {
    margin: 0;
    color: var(--ink-secondary);
    font: inherit;
    font-size: 14px;
    line-height: 1.85;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.note {
    display: flex;
    gap: 11px;
    margin: 16px 0;
    padding: 14px 16px;
    border-radius: 12px;
    color: var(--brand-ink);
    background: var(--brand-soft);
    font-size: 14px;
    line-height: 1.66;
}

.note--hero { margin-top: 22px; margin-bottom: 0; }
.note__icon {
    display: grid;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    place-items: center;
    border-radius: 6px;
    color: var(--brand-ink);
    background: rgba(122, 100, 0, .12);
    font-size: 12px;
    font-weight: 700;
}

.note strong { font-weight: 700; }
.note--danger { color: #8e2226; background: var(--danger-soft); }
.note--danger .note__icon { color: var(--danger); background: rgba(217, 59, 64, .14); }
.note--info { color: #144b8f; background: var(--info-soft); }
.note--info .note__icon { color: var(--info); background: rgba(27, 111, 209, .12); }

.info-grid,
.data-delete-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.info-box,
.data-delete-item {
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--sunken);
}

.info-box strong,
.data-delete-item > strong {
    display: block;
    margin-bottom: 5px;
    color: var(--ink);
    font-size: 13.5px;
}

.info-box p,
.data-delete-item p {
    margin: 0;
    color: var(--ink-secondary);
    font-size: 13px;
    line-height: 1.66;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.contact-grid--single { grid-template-columns: minmax(0, 420px); }

.contact-item {
    min-width: 0;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--sunken);
}

.contact-item span {
    display: block;
    margin-bottom: 4px;
    color: var(--ink-muted);
    font-size: 11.5px;
}

.contact-item a,
.contact-item strong {
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.contact-item a:hover { text-decoration: underline; }

.retention-table {
    width: 100%;
    margin: 0 0 14px;
    border-collapse: collapse;
    font-size: 14px;
}

.retention-table th {
    padding: 0 14px 9px;
    color: var(--ink-muted);
    font-size: 12px;
    font-weight: 600;
    text-align: left;
}

.retention-table th:last-child { text-align: right; }
.retention-table td {
    padding: 13px 14px;
    color: var(--ink-secondary);
    background: var(--sunken);
    vertical-align: top;
}

.retention-table td:first-child {
    border-radius: 10px 0 0 10px;
    color: var(--ink);
    font-weight: 700;
}

.retention-table td:last-child {
    border-radius: 0 10px 10px 0;
    color: var(--ink);
    font-family: Montserrat, Pretendard, sans-serif;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.retention-table tr + tr td { border-top: 6px solid var(--surface); }

.steps { counter-reset: step; margin: 0; padding: 0 !important; list-style: none; }
.steps li {
    position: relative;
    min-height: 26px;
    margin: 0 0 13px;
    padding-left: 38px;
    counter-increment: step;
}

.steps li::before {
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: var(--ink);
    content: counter(step);
    font-family: Montserrat, Pretendard, sans-serif;
    font-size: 12px;
    font-weight: 700;
}

/* 각 화면의 주요 행동(문의 메일 쓰기 등) — 브랜드 색을 쓰는 단 하나의 버튼 */
.primary-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
    padding: 0 22px;
    border: 0;
    border-radius: 12px;
    color: var(--ink);
    background: var(--brand);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    overflow-wrap: anywhere;
    transition: filter .15s;
}

.primary-button:hover { filter: brightness(1.04); }

.button-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.secondary-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border: 0;
    border-radius: 12px;
    color: var(--ink-secondary);
    background: var(--sunken);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: color .15s, background-color .15s;
}

.secondary-button:hover { color: var(--ink); background: var(--sunken-strong); }

.small-copy {
    margin: 12px 0 0 !important;
    color: var(--ink-muted) !important;
    font-size: 13px !important;
}

.public-footer {
    margin-top: 40px;
    border-top: 1px solid var(--sunken-strong);
    color: var(--ink-muted);
    background: var(--surface);
    font-size: 13px;
}

.public-footer__inner {
    display: flex;
    min-height: 72px;
    align-items: center;
    gap: 16px;
}

.public-footer strong {
    color: var(--ink-secondary);
    font-family: Montserrat, Pretendard, sans-serif;
    font-weight: 700;
}

.footer-contact { display: flex; gap: 16px; flex-wrap: wrap; margin-left: auto; }
.footer-contact a,
.footer-contact span { color: var(--ink-muted); overflow-wrap: anywhere; text-decoration: none; }
.footer-contact a:hover { color: var(--ink-secondary); }

[hidden] { display: none !important; }

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 720px) {
    .public-header__inner,
    .public-main,
    .public-footer__inner { width: min(100% - 32px, 1000px); }
    .public-header__inner { gap: 10px; }
    .public-nav a { padding: 0 9px; font-size: 12.5px; }
    .public-main { padding: 28px 0 44px; }
    h1 { font-size: 26px; }
    .card { padding: 20px 18px; border-radius: 12px; }
    .page-toc ol { column-count: 1; }
    .info-grid,
    .data-delete-list,
    .contact-grid { grid-template-columns: 1fr; }
    .retention-table th:nth-child(2),
    .retention-table td:nth-child(2) { display: none; }
}

@media (max-width: 560px) {
    .public-header__inner { align-items: flex-start; flex-direction: column; padding: 13px 0; }
    .public-nav { width: 100%; margin-left: 0; overflow-x: auto; }
    .public-nav a { flex: 1 0 auto; justify-content: center; }
    .public-footer__inner { align-items: flex-start; flex-direction: column; padding: 20px 0; }
    .footer-contact { flex-direction: column; gap: 6px; margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
