:root {
    color-scheme: light;
    --join-primary: #5657e8;
    --join-primary-dark: #4142c6;
    --join-text: #191a2b;
    --join-muted: #74778c;
    --join-border: #e7e8ef;
    --join-surface: #ffffff;
    --join-background: #f5f6fb;
}

* { box-sizing: border-box; }

body {
    background:
        radial-gradient(circle at 20% 0%, rgba(86, 87, 232, 0.1), transparent 35%),
        var(--join-background);
    color: var(--join-text);
    font-family: Inter, Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
    min-height: 100vh;
}

.join-shell {
    margin: 0 auto;
    max-width: 520px;
    padding: 28px 18px 48px;
}

.join-brand {
    align-items: center;
    display: flex;
    gap: 11px;
    margin: 0 4px 22px;
}

.join-brand__mark {
    align-items: center;
    background: linear-gradient(135deg, #494ae1, #7778f3);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(73, 74, 225, 0.22);
    color: #fff;
    display: flex;
    font-size: 17px;
    font-weight: 900;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.join-brand > span:last-child { display: flex; flex-direction: column; }
.join-brand strong { font-size: 16px; }
.join-brand small { color: var(--join-muted); font-size: 11px; margin-top: 2px; }

.join-card {
    background: var(--join-surface);
    border: 1px solid rgba(226, 227, 237, 0.9);
    border-radius: 24px;
    box-shadow: 0 28px 70px rgba(42, 44, 93, 0.1);
    overflow: hidden;
    padding: 30px;
}

.join-progress {
    background: #ececf4;
    border-radius: 99px;
    height: 4px;
    margin: -4px 0 27px;
    overflow: hidden;
}

.join-progress span { background: var(--join-primary); display: block; height: 100%; width: 72%; }
.join-progress span.is-complete { width: 100%; }

.join-eyebrow {
    color: var(--join-primary);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.13em;
    margin: 0 0 8px;
}

h1 { font-size: 27px; letter-spacing: -0.045em; line-height: 1.25; margin: 0; }

.join-description {
    color: var(--join-muted);
    font-size: 13px;
    line-height: 1.65;
    margin: 10px 0 28px;
}

.join-field { margin-top: 21px; }
.join-field label { display: block; font-size: 13px; font-weight: 750; margin-bottom: 8px; }

.join-field input {
    background: #fafafe;
    border: 1px solid var(--join-border);
    border-radius: 12px;
    color: var(--join-text);
    font: inherit;
    font-size: 15px;
    height: 51px;
    outline: none;
    padding: 0 15px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    width: 100%;
}

.join-field input:focus {
    border-color: var(--join-primary);
    box-shadow: 0 0 0 4px rgba(86, 87, 232, 0.1);
}

.join-field > small { color: var(--join-muted); display: block; font-size: 10px; line-height: 1.5; margin-top: 7px; }
.field-error { color: #d44752; font-size: 11px; margin: 6px 0 0; }

.join-error {
    background: #fff0f1;
    border: 1px solid #f4cdd1;
    border-radius: 12px;
    color: #b52d3a;
    font-size: 11px;
    line-height: 1.55;
    margin: 18px 0;
    padding: 13px 14px;
}

.join-error ul { list-style: none; margin: 0; padding: 0; }

.join-sync-guide { border-bottom: 1px solid var(--join-border); margin: 2px 0 23px; padding-bottom: 8px; }
.join-sync-guide > div { align-items: center; display: flex; gap: 12px; margin: 0 0 15px; }
.join-sync-guide > div > span {
    align-items: center;
    background: #eeeeff;
    border-radius: 50%;
    color: var(--join-primary);
    display: flex;
    flex: 0 0 28px;
    font-size: 11px;
    font-weight: 850;
    height: 28px;
    justify-content: center;
}
.join-sync-guide p { display: flex; flex-direction: column; margin: 0; }
.join-sync-guide strong { font-size: 12px; }
.join-sync-guide small { color: var(--join-muted); font-size: 10px; line-height: 1.5; margin-top: 2px; }

.join-kakao {
    align-items: center;
    background: #fee500;
    border-radius: 13px;
    color: #191919;
    display: flex;
    font-size: 14px;
    font-weight: 800;
    height: 54px;
    justify-content: center;
    text-decoration: none;
    width: 100%;
}
.join-kakao span { font-size: 9px; margin-right: 9px; }
.join-kakao.is-disabled { background: #ececf2; color: #999baa; }

.join-channel-action {
    background: #fffbea;
    border: 1px solid #f4e6a5;
    border-radius: 16px;
    display: grid;
    gap: 13px;
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 16px;
}

.join-channel-action__icon {
    align-items: center;
    background: #fee500;
    border-radius: 12px;
    color: #191919;
    display: flex;
    font-size: 22px;
    font-weight: 800;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.join-channel-action > div { display: flex; flex-direction: column; justify-content: center; }
.join-channel-action strong { font-size: 13px; }
.join-channel-action small { color: #756d4a; font-size: 10px; line-height: 1.55; margin-top: 3px; }

.join-channel-add,
.join-channel-recheck {
    align-items: center;
    border-radius: 12px;
    display: flex;
    font-size: 12px;
    font-weight: 800;
    grid-column: 1 / -1;
    height: 48px;
    justify-content: center;
    text-decoration: none;
}

.join-channel-add { background: #fee500; color: #191919; }
.join-channel-recheck { background: #fff; border: 1px solid #ded6ad; color: #655c35; margin-top: -4px; }

.join-verified {
    align-items: center;
    background: #effaf4;
    border: 1px solid #d1eddd;
    border-radius: 14px;
    display: flex;
    gap: 12px;
    padding: 14px;
}
.join-verified > span {
    align-items: center;
    background: #d9f3e4;
    border-radius: 50%;
    color: #168953;
    display: flex;
    flex: 0 0 31px;
    font-size: 13px;
    font-weight: 900;
    height: 31px;
    justify-content: center;
}
.join-verified div { display: flex; flex-direction: column; }
.join-verified strong { font-size: 12px; }
.join-verified small { color: #54806a; font-size: 10px; margin-top: 3px; }

.join-consents {
    border: 0;
    border-top: 1px solid var(--join-border);
    margin: 26px 0 0;
    padding: 23px 0 0;
}

.join-consents legend { font-size: 13px; font-weight: 800; padding: 0; }
.join-consents legend span { color: var(--join-muted); font-size: 10px; font-weight: 500; }

.join-check {
    align-items: center;
    display: grid;
    gap: 9px;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    margin-top: 15px;
}

.join-check input { accent-color: var(--join-primary); height: 18px; margin: 0; width: 18px; }
.join-check span { color: #55586b; font-size: 11px; line-height: 1.4; }
.join-check b { color: var(--join-primary); font-size: 9px; margin-right: 4px; }
.join-check a { color: var(--join-muted); font-size: 10px; text-underline-offset: 3px; }

.join-submit {
    background: linear-gradient(135deg, var(--join-primary-dark), #6869ec);
    border: 0;
    border-radius: 13px;
    box-shadow: 0 12px 24px rgba(65, 66, 198, 0.22);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    height: 54px;
    margin-top: 27px;
    width: 100%;
}

.join-footnote { color: #9597a7; font-size: 10px; line-height: 1.5; margin: 14px 0 0; text-align: center; }

.join-shell--complete { align-items: center; display: flex; min-height: 100vh; }
.join-complete { text-align: center; width: 100%; }

.join-complete__icon {
    align-items: center;
    background: #eaf9f1;
    border-radius: 50%;
    color: #15945b;
    display: flex;
    font-size: 28px;
    font-weight: 800;
    height: 66px;
    justify-content: center;
    margin: 0 auto 24px;
    width: 66px;
}
.join-complete__icon--error { background: #fff0f1; color: #c63c49; }

.join-summary { background: #f8f8fc; border-radius: 15px; margin: 25px 0 0; padding: 7px 17px; text-align: left; }
.join-summary div { align-items: center; border-top: 1px solid var(--join-border); display: flex; justify-content: space-between; padding: 13px 0; }
.join-summary div:first-child { border-top: 0; }
.join-summary dt { color: var(--join-muted); font-size: 11px; }
.join-summary dd { font-size: 12px; font-weight: 750; margin: 0; text-align: right; }
.join-status { background: #fff3d8; border-radius: 99px; color: #b46a00; font-size: 9px; padding: 5px 8px; }
.join-status--verified { background: #e4f7ed; color: #168953; }

.policy-page { background: #f6f7fb; }

.policy-header {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--join-border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.policy-brand {
    align-items: center;
    color: var(--join-text);
    display: flex;
    gap: 10px;
    margin: 0 auto;
    max-width: 920px;
    padding: 13px 24px;
    text-decoration: none;
}

.policy-brand .join-brand__mark { border-radius: 9px; height: 34px; width: 34px; }
.policy-brand > span:last-child { display: flex; flex-direction: column; }
.policy-brand strong { font-size: 14px; }
.policy-brand small { color: var(--join-muted); font-size: 9px; margin-top: 1px; }

.policy-shell {
    display: grid;
    gap: 30px;
    grid-template-columns: 180px minmax(0, 1fr);
    margin: 0 auto;
    max-width: 920px;
    padding: 44px 24px 80px;
}

.policy-tabs { align-self: start; display: flex; flex-direction: column; gap: 5px; position: sticky; top: 105px; }
.policy-tabs a { border-radius: 10px; color: #66697b; font-size: 12px; font-weight: 700; padding: 11px 13px; text-decoration: none; }
.policy-tabs a:hover { background: #ececf5; color: var(--join-text); }
.policy-tabs a.is-active { background: #e9e9ff; color: var(--join-primary-dark); }

.policy-document {
    background: #fff;
    border: 1px solid var(--join-border);
    border-radius: 20px;
    box-shadow: 0 18px 50px rgba(42, 44, 93, 0.07);
    min-width: 0;
    overflow: hidden;
    padding: 44px 48px 0;
}

.policy-title { border-bottom: 1px solid var(--join-border); padding-bottom: 30px; }
.policy-title h1 { font-size: 30px; }
.policy-title > p:not(.join-eyebrow) { color: var(--join-muted); font-size: 13px; line-height: 1.7; margin: 12px 0 0; }
.policy-meta { display: flex; gap: 18px; margin: 20px 0 0; }
.policy-meta div { display: flex; gap: 6px; }
.policy-meta dt { color: #989aaa; font-size: 10px; }
.policy-meta dd { color: #5c5f71; font-size: 10px; font-weight: 700; margin: 0; }

.policy-content { padding: 8px 0 48px; }
.policy-content section { scroll-margin-top: 90px; }
.policy-content h2 { font-size: 16px; letter-spacing: -0.025em; margin: 32px 0 10px; }
.policy-content p,
.policy-content li { color: #55586a; font-size: 12px; line-height: 1.85; }
.policy-content p { margin: 0; }
.policy-content ol,
.policy-content ul { margin: 8px 0 0; padding-left: 21px; }
.policy-content li + li { margin-top: 5px; }
.policy-content a,
.policy-footer a { color: var(--join-primary-dark); text-underline-offset: 3px; }
.policy-lead { background: #f5f5fc; border-radius: 12px; margin-top: 24px !important; padding: 15px 17px; }

.policy-table-wrap { border: 1px solid var(--join-border); border-radius: 12px; margin: 12px 0; overflow-x: auto; }
.policy-content table { border-collapse: collapse; min-width: 520px; width: 100%; }
.policy-content th,
.policy-content td { border-bottom: 1px solid var(--join-border); font-size: 11px; line-height: 1.65; padding: 12px 13px; text-align: left; vertical-align: top; }
.policy-content th { background: #f8f8fc; color: #424557; font-weight: 800; }
.policy-content td { color: #646778; }
.policy-content tr:last-child td { border-bottom: 0; }

.policy-contact { border: 1px solid var(--join-border); border-radius: 12px; margin: 12px 0; overflow: hidden; }
.policy-contact div { display: grid; grid-template-columns: 125px minmax(0, 1fr); }
.policy-contact div + div { border-top: 1px solid var(--join-border); }
.policy-contact dt,
.policy-contact dd { font-size: 11px; line-height: 1.6; margin: 0; padding: 11px 13px; }
.policy-contact dt { background: #f8f8fc; color: #55586a; font-weight: 750; }
.policy-contact dd { color: #66697a; }

.policy-addendum { background: #f8f8fc; border-radius: 12px; margin-top: 34px; padding: 16px 18px; }
.policy-addendum strong { font-size: 12px; }
.policy-addendum p { font-size: 11px; margin-top: 5px; }

.policy-footer { background: #f8f8fc; margin: 0 -48px; padding: 22px 48px; }
.policy-footer strong { font-size: 11px; }
.policy-footer p { color: #797c8d; font-size: 10px; line-height: 1.6; margin: 5px 0 0; }
.policy-business-info { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 8px 0; }
.policy-business-info div { display: flex; gap: 6px; }
.policy-business-info div:last-child { flex-basis: 100%; }
.policy-business-info dt,
.policy-business-info dd { color: #797c8d; font-size: 10px; line-height: 1.6; margin: 0; }
.policy-business-info dt { color: #646778; font-weight: 750; white-space: nowrap; }

@media (max-width: 420px) {
    .join-shell { padding: 20px 12px 35px; }
    .join-card { border-radius: 20px; padding: 25px 20px; }
    h1 { font-size: 24px; }
}

@media (max-width: 720px) {
    .policy-brand { padding-left: 18px; padding-right: 18px; }
    .policy-shell { display: block; padding: 20px 12px 45px; }
    .policy-tabs { background: #f6f7fb; flex-direction: row; margin: 0 2px 14px; overflow-x: auto; padding-bottom: 2px; position: static; }
    .policy-tabs a { flex: 1 0 auto; text-align: center; }
    .policy-document { border-radius: 16px; padding: 30px 20px 0; }
    .policy-title h1 { font-size: 25px; }
    .policy-meta { flex-direction: column; gap: 5px; }
    .policy-footer { margin: 0 -20px; padding: 20px; }
    .policy-contact div { grid-template-columns: 100px minmax(0, 1fr); }
}

@media print {
    .policy-page { background: #fff; }
    .policy-header,
    .policy-tabs { display: none; }
    .policy-shell { display: block; max-width: none; padding: 0; }
    .policy-document { border: 0; box-shadow: none; padding: 0; }
    .policy-footer { margin-left: 0; margin-right: 0; }
}
