/* 약관·방침 페이지 */
.legal-page-body {
    background: #f5f5f5;
    margin: 0;
    min-height: 100vh;
    font-family: "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
    color: #333;
    line-height: 1.65;
}

.legal-page-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 28px 20px 48px;
    background: #fff;
    min-height: 100vh;
    box-sizing: border-box;
}

.legal-page-wrap h1 {
    font-size: 1.5rem;
    margin: 0 0 8px;
}

.legal-meta {
    color: #666;
    font-size: 0.88rem;
    margin-bottom: 28px;
}

.legal-page-wrap h2 {
    font-size: 1.05rem;
    margin: 24px 0 8px;
}

.legal-page-wrap p,
.legal-page-wrap li {
    font-size: 0.95rem;
}

.legal-page-wrap ul {
    padding-left: 1.2rem;
}

.legal-back-link {
    display: inline-block;
    margin-top: 32px;
    color: #1565c0;
    text-decoration: none;
    font-weight: bold;
}

.legal-back-link:hover { text-decoration: underline; }

/* 로그인 동의 모달 */
.consent-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 5000;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.consent-overlay.is-open { display: flex; }

.consent-dialog {
    background: #fff;
    border-radius: 16px;
    width: min(100%, 420px);
    padding: 22px 20px 18px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    color: #333;
}

.consent-dialog h2 {
    margin: 0 0 6px;
    font-size: 1.15rem;
}

.consent-dialog p {
    margin: 0 0 16px;
    font-size: 0.88rem;
    color: #555;
}

.consent-check-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.consent-check-row input { margin-top: 3px; flex-shrink: 0; }

.consent-check-row a {
    color: #1565c0;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
}

.consent-check-row a:hover { text-decoration: underline; }

.consent-required {
    color: #e53935;
    font-size: 0.78rem;
    font-weight: bold;
    margin-right: 4px;
}

.consent-actions {
    display: flex;
    gap: 8px;
    margin-top: 18px;
}

.consent-actions button {
    flex: 1;
    border: none;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.92rem;
    font-weight: bold;
    cursor: pointer;
}

.consent-btn-primary {
    background: #5c6bc0;
    color: #fff;
}

.consent-btn-primary:disabled {
    background: #b0b8d9;
    cursor: not-allowed;
}

.consent-btn-secondary {
    background: #eee;
    color: #444;
}
