:root {
    --ink: #111827;
    --muted: #6b7280;
    --line: #e6e8ec;
    --canvas: #f3f4f6;
    --sheet: #ffffff;
    --measure: 720px;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: Onest, "SUIT Variable", SUIT, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    font-size: 15px;
    color: var(--ink);
    background: var(--canvas);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

.legal-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    max-width: none;
    height: 56px;
    margin: 0;
    padding: 0 max(20px, calc((100% - var(--measure)) / 2));
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.legal-logo {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.04em;
    text-transform: lowercase;
    text-decoration: none;
    color: #0f172a;
}

.legal-lang {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #111827;
    text-decoration: none;
}

.legal-lang:hover {
    background: #f8fafc;
}

.legal-main {
    flex: 1;
    width: min(var(--measure), calc(100% - 32px));
    max-width: var(--measure);
    margin: 28px auto 40px;
    padding: 44px 40px 48px;
    background: var(--sheet);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 12px 32px -24px rgba(17, 24, 39, 0.28);
}

.legal-main h1 {
    margin: 0 0 18px;
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.035em;
}

.legal-meta {
    margin: 0 0 8px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.legal-meta br {
    display: inline-block;
    width: 1.1em;
    height: 0;
}

.legal-meta br::before {
    content: "·";
    color: #c4c8d0;
}

html[lang="ko"] .legal-main {
    word-break: keep-all;
}

.legal-main h2 {
    margin: 28px 0 8px;
    padding-top: 22px;
    border-top: 1px solid #f0f1f4;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.35;
}

.legal-main h2:first-of-type {
    margin-top: 22px;
    border-top: 0;
    padding-top: 0;
}

.legal-main p {
    margin: 0 0 12px;
    color: #1f2937;
}

.legal-main ul {
    margin: 4px 0 8px;
    padding: 0;
    list-style: none;
}

.legal-main li {
    position: relative;
    margin: 0;
    padding: 9px 0 9px 16px;
    border-bottom: 1px solid #f3f4f6;
    color: #1f2937;
}

.legal-main li:last-child {
    border-bottom: 0;
}

.legal-main li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.05em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #111827;
}

.legal-main a {
    color: #111827;
    text-decoration-color: rgba(17, 24, 39, 0.35);
    text-underline-offset: 3px;
}

.legal-main a:hover {
    text-decoration-color: #111827;
}

.legal-footer {
    margin-top: auto;
    border-top: 0;
    background: #111111;
}

.legal-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 22px;
    max-width: none;
    margin: 0;
    padding: 22px max(20px, calc((100% - var(--measure)) / 2)) 26px;
}

.legal-footer a {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    text-decoration: none;
}

.legal-footer a:hover {
    color: #fff;
}

@media (max-width: 640px) {
    .legal-main {
        width: calc(100% - 20px);
        margin-top: 16px;
        padding: 28px 20px 32px;
        border-radius: 12px;
    }

    .legal-main h1 {
        font-size: 28px;
    }
}
