:root {
    --paper: #f7f2e8;
    --paper-bright: #fffdf8;
    --paper-pressed: #ede6d9;
    --ink: #181716;
    --ink-muted: #625d54;
    --line: #b9b1a4;
    --line-soft: #ddd5c8;
    --cobalt: #1550b8;
    --cobalt-dark: #0c377d;
    --cobalt-pale: #e8f0ff;
    --success: #166534;
    --success-pale: #ecfdf3;
    --shadow: 0 22px 60px rgba(63, 52, 37, 0.1);
    --content: 1120px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 92% 5%, rgba(21, 80, 184, 0.12), transparent 28rem),
        var(--paper);
    color: var(--ink);
    font-family:
        system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
    font-size: 16px;
    line-height: 1.75;
    word-break: keep-all;
    overflow-wrap: break-word;
}

a {
    color: inherit;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--ink);
    color: white;
    transform: translateY(-180%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    z-index: 20;
    top: 0;
    border-bottom: 1px solid rgba(185, 177, 164, 0.7);
    background: rgba(247, 242, 232, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.header-inner,
.footer-inner,
main {
    width: min(calc(100% - 40px), var(--content));
    margin-inline: auto;
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    text-decoration: none;
}

.brand-icon {
    width: 52px;
    height: 52px;
    border: 1px solid var(--line-soft);
    border-radius: 18px;
    background: var(--paper-bright);
    box-shadow: 0 6px 18px rgba(63, 52, 37, 0.08);
}

.brand span {
    display: grid;
    line-height: 1.3;
}

.brand strong {
    font-size: 16px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.brand small {
    margin-top: 3px;
    color: var(--ink-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.header-badge {
    flex: 0 0 auto;
    padding: 7px 12px;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    background: var(--paper-bright);
    color: var(--ink-muted);
    font-size: 12px;
    font-weight: 800;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
    padding: clamp(64px, 10vw, 116px) 0 clamp(72px, 10vw, 124px);
}

.eyebrow {
    width: fit-content;
    margin: 0 0 16px;
    padding: 6px 10px;
    border-radius: 8px;
    background: var(--cobalt-pale);
    color: var(--cobalt-dark);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    max-width: 730px;
    margin-bottom: 24px;
    font-size: clamp(42px, 6.7vw, 78px);
    line-height: 1.08;
    letter-spacing: -0.065em;
}

h1 span {
    color: var(--cobalt);
}

.hero-description {
    max-width: 700px;
    margin-bottom: 32px;
    color: var(--ink-muted);
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.75;
}

.trust-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
}

.trust-list div {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    background: rgba(255, 253, 248, 0.76);
}

.trust-list dt {
    color: var(--cobalt);
    font-size: 12px;
    font-weight: 900;
}

.trust-list dd {
    margin: 0;
    font-size: 13px;
    font-weight: 800;
}

.summary-card {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 4vw, 42px);
    border: 2px solid var(--ink);
    border-radius: 28px;
    background: var(--paper-bright);
    box-shadow: 10px 12px 0 var(--ink);
}

.summary-card::after {
    content: "";
    position: absolute;
    right: -36px;
    bottom: -50px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: var(--cobalt-pale);
}

.summary-card > * {
    position: relative;
    z-index: 1;
}

.summary-icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    margin-bottom: 28px;
    border: 2px solid var(--success);
    border-radius: 50%;
    background: var(--success-pale);
    color: var(--success);
    font-size: 24px;
    font-weight: 1000;
}

.summary-kicker {
    margin-bottom: 6px;
    color: var(--cobalt);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.summary-card h2 {
    margin-bottom: 16px;
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.3;
    letter-spacing: -0.045em;
}

.summary-card p:last-child {
    margin-bottom: 0;
    color: var(--ink-muted);
    font-size: 14px;
}

.content-layout {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: clamp(36px, 6vw, 80px);
    align-items: start;
    padding-bottom: 120px;
}

.toc {
    position: sticky;
    top: 116px;
    padding: 20px;
    border: 1px solid var(--line-soft);
    border-radius: 18px;
    background: rgba(255, 253, 248, 0.72);
}

.toc p {
    margin-bottom: 8px;
    color: var(--ink-muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.toc ol {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.toc a {
    display: block;
    padding: 5px 7px;
    border-radius: 7px;
    color: var(--ink-muted);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.toc a:hover,
.toc a:focus-visible {
    background: var(--cobalt-pale);
    color: var(--cobalt-dark);
}

.policy {
    scroll-margin-top: 88px;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: 30px;
    background: var(--paper-bright);
    box-shadow: var(--shadow);
}

.policy section {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: clamp(18px, 3vw, 32px);
    scroll-margin-top: 112px;
    padding: clamp(32px, 5vw, 58px);
    border-bottom: 1px solid var(--line-soft);
}

.policy section:last-child {
    border-bottom: 0;
}

.section-number {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--line-soft);
    border-radius: 13px;
    background: var(--paper);
    color: var(--cobalt-dark);
    font-size: 12px;
    font-weight: 900;
}

.policy h2 {
    margin-bottom: 18px;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.3;
    letter-spacing: -0.04em;
}

.policy p {
    margin-bottom: 14px;
    color: var(--ink-muted);
}

.policy p:last-child {
    margin-bottom: 0;
}

.policy strong {
    color: var(--ink);
}

.app-identity {
    display: grid;
    gap: 1px;
    margin: 24px 0 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    background: var(--line-soft);
    list-style: none;
}

.app-identity li {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 12px;
    padding: 11px 14px;
    background: var(--paper-bright);
    font-size: 14px;
    font-weight: 700;
}

.app-identity span {
    color: var(--ink-muted);
    font-size: 12px;
    font-weight: 800;
}

code {
    color: var(--cobalt-dark);
    font-family: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    font-size: 0.9em;
    word-break: break-all;
}

.contact-section {
    background: var(--cobalt-pale);
}

.contact-section .section-number {
    border-color: rgba(21, 80, 184, 0.25);
    background: var(--paper-bright);
}

.contact-email {
    display: inline-block;
    margin: 4px 0 10px;
    padding: 10px 13px;
    border: 1px solid rgba(21, 80, 184, 0.28);
    border-radius: 10px;
    background: var(--paper-bright);
    color: var(--cobalt-dark);
    font-size: 14px;
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.operator {
    font-size: 13px;
    font-weight: 700;
}

footer {
    border-top: 1px solid var(--line-soft);
    background: var(--paper-bright);
}

.footer-inner {
    display: flex;
    min-height: 150px;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand img {
    border: 1px solid var(--line-soft);
    border-radius: 12px;
}

.footer-brand p {
    display: grid;
    margin: 0;
    line-height: 1.35;
}

.footer-brand strong {
    font-size: 14px;
}

.footer-brand span {
    color: var(--ink-muted);
    font-size: 12px;
}

.hosting-note {
    max-width: 440px;
    margin: 0;
    color: var(--ink-muted);
    font-size: 12px;
    text-align: right;
}

.hosting-note a {
    color: var(--cobalt-dark);
    font-weight: 800;
}

:focus-visible {
    outline: 3px solid #1550b8;
    outline-offset: 3px;
}

@media (max-width: 820px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .summary-card {
        max-width: 520px;
    }

    .content-layout {
        grid-template-columns: 1fr;
    }

    .toc {
        position: static;
    }

    .toc ol {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 560px) {
    body {
        font-size: 15px;
    }

    .header-inner,
    .footer-inner,
    main {
        width: min(calc(100% - 28px), var(--content));
    }

    .header-inner {
        min-height: 72px;
    }

    .brand-icon {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .brand strong {
        font-size: 14px;
    }

    .header-badge {
        display: none;
    }

    .hero {
        padding: 52px 0 72px;
    }

    h1 {
        font-size: clamp(37px, 12vw, 54px);
    }

    .hero-description {
        font-size: 16px;
    }

    .trust-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .trust-list div:last-child {
        grid-column: 1 / -1;
    }

    .summary-card {
        border-radius: 22px;
        box-shadow: 7px 8px 0 var(--ink);
    }

    .toc {
        padding: 16px;
    }

    .toc ol {
        grid-template-columns: 1fr 1fr;
    }

    .policy {
        border-radius: 22px;
    }

    .policy section {
        grid-template-columns: 1fr;
        padding: 28px 22px 32px;
    }

    .section-number {
        width: 38px;
        height: 38px;
    }

    .app-identity li {
        grid-template-columns: 78px minmax(0, 1fr);
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding-block: 32px;
    }

    .hosting-note {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

@media print {
    body {
        background: white;
    }

    .site-header,
    .toc,
    footer {
        display: none;
    }

    main {
        width: 100%;
    }

    .hero {
        padding-block: 30px;
    }

    .summary-card {
        box-shadow: none;
    }

    .content-layout {
        display: block;
        padding-bottom: 0;
    }

    .policy {
        border: 0;
        box-shadow: none;
    }

    .policy section {
        break-inside: avoid;
    }
}
