html, body {
    margin: 0;
    padding: 0;
    background: #ffffff;
    color: #213227;
    font-family: "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
}

.legal-shell {
    min-height: 100vh;
    padding: 24px;
    display: flex;
    justify-content: center;
}

.legal-card {
    width: 100%;
    max-width: 860px;
    background: #ffffff;
    border: 1px solid #2d4332;
    border-radius: 12px;
    padding: 36px;
}

.legal-header {
    position: relative;
    margin-bottom: 32px;
    padding-top: 4px;
}

.legal-header h1 {
    margin: 0;
    font-size: 32px;
    color: #213227;
    font-weight: 700;
    text-align: center;
}

.legal-close {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 999px;
    border: 0;
    background: transparent;
    color: #213227;
    text-decoration: none;
    cursor: pointer;
}

.legal-close__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.legal-close__icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

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

.legal-close:hover,
.legal-close:focus-visible {
    background: #f3f4f6;
}

.legal-close:focus-visible {
    outline: 2px solid #2d4332;
    outline-offset: 2px;
}

.legal-content {
    line-height: 1.8;
    font-size: 14px;
    color: #374151;
}

.legal-content h2,
.legal-content h3 {
    color: #213227;
}

.legal-content h2 {
    font-size: 18px;
    margin: 0 0 16px;
}

.legal-content h3 {
    font-size: 16px;
    margin-top: 24px;
}

.legal-content p,
.legal-content ol,
.legal-content ul {
    margin: 0 0 16px;
}

.legal-content ol,
.legal-content ul {
    padding-left: 20px;
}

@media (max-width: 768px) {
    .legal-shell {
        padding: 24px 16px;
    }

    .legal-card {
        padding: 24px;
    }

    .legal-header {
        margin-bottom: 24px;
        padding-top: 56px;
    }

    .legal-header h1 {
        font-size: 24px;
    }
}
