:root {
    --ink: #25212f;
    --text: #504a5c;
    --muted: #7d7688;
    --line: #e5e0eb;
    --paper: #f7f5fa;
    --white: #ffffff;
    --purple: #7354bd;
    --purple-dark: #533891;
    --purple-pale: #eee8fa;
    --radius-large: 28px;
    --radius-small: 15px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 4%, rgba(239, 151, 187, 0.14), transparent 25rem),
        radial-gradient(circle at 92% 12%, rgba(115, 84, 189, 0.13), transparent 28rem),
        var(--paper);
    font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
    line-height: 1.7;
    word-break: keep-all;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    display: flex;
    align-items: center;
    gap: 24px;
    width: min(1120px, calc(100% - 40px));
    height: 76px;
    margin: 0 auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.brand img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(62, 44, 96, 0.12);
}

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin-left: auto;
    padding: 0 17px;
    color: var(--purple-dark);
    border: 1px solid rgba(115, 84, 189, 0.2);
    background: rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 750;
    backdrop-filter: blur(12px);
    transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.header-cta:hover {
    color: var(--white);
    background: var(--purple);
    transform: translateY(-1px);
}

.legal-shell {
    width: min(940px, calc(100% - 40px));
    margin: 42px auto 100px;
}

.legal-intro {
    position: relative;
    padding: clamp(40px, 7vw, 72px);
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(circle at 88% 16%, rgba(255, 255, 255, 0.18) 0 5rem, transparent 5.1rem),
        radial-gradient(circle at 96% 78%, rgba(239, 151, 187, 0.42) 0 8rem, transparent 8.1rem),
        linear-gradient(135deg, #6749ad, #7d5bc8);
    border-radius: var(--radius-large);
    box-shadow: 0 28px 70px rgba(70, 48, 112, 0.2);
}

.legal-intro::after {
    position: absolute;
    right: 12%;
    bottom: -48px;
    width: 120px;
    height: 120px;
    border: 22px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    content: "";
}

.eyebrow {
    position: relative;
    z-index: 1;
    margin: 0 0 22px;
}

.eyebrow span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 11px;
    color: #eee8ff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.legal-intro h1 {
    position: relative;
    z-index: 1;
    margin: 0 0 18px;
    font-size: clamp(38px, 6vw, 60px);
    line-height: 1.12;
    letter-spacing: -0.06em;
}

.legal-intro > p:last-child {
    position: relative;
    z-index: 1;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
}

.legal-content {
    margin-top: 24px;
    padding: clamp(36px, 7vw, 70px);
    border: 1px solid rgba(229, 224, 235, 0.9);
    background: rgba(255, 255, 255, 0.94);
    border-radius: var(--radius-large);
    box-shadow: 0 24px 60px rgba(53, 42, 74, 0.08);
}

.legal-content section {
    scroll-margin-top: 30px;
}

.legal-content section + section {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--line);
}

.legal-content h2 {
    display: flex;
    gap: 12px;
    align-items: baseline;
    margin: 0 0 18px;
    color: var(--ink);
    font-size: clamp(20px, 2.5vw, 25px);
    line-height: 1.4;
    letter-spacing: -0.045em;
}

.legal-content h2::before {
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    margin-top: 0.7em;
    background: var(--purple);
    border-radius: 50%;
    content: "";
}

.legal-content h3 {
    margin: 30px 0 10px;
    color: var(--ink);
    font-size: 17px;
    letter-spacing: -0.025em;
}

.legal-content p,
.legal-content li {
    color: var(--text);
    font-size: 15px;
    line-height: 1.9;
}

.legal-content p {
    margin: 0 0 14px;
}

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

.legal-content ul,
.legal-content ol {
    margin: 16px 0 0;
    padding-left: 23px;
}

.legal-content li + li {
    margin-top: 7px;
}

.legal-content a {
    color: var(--purple-dark);
    font-weight: 650;
    text-decoration: underline;
    text-decoration-color: rgba(115, 84, 189, 0.35);
    text-underline-offset: 4px;
}

.legal-content a:hover {
    text-decoration-color: var(--purple);
}

.policy-table {
    width: 100%;
    margin: 24px 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius-small);
    font-size: 14px;
}

.policy-table th,
.policy-table td {
    padding: 16px 17px;
    color: var(--text);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.policy-table th {
    color: var(--purple-dark);
    background: var(--purple-pale);
    font-size: 13px;
    font-weight: 800;
}

.policy-table th:last-child,
.policy-table td:last-child {
    border-right: 0;
}

.policy-table tr:last-child td {
    border-bottom: 0;
}

footer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px 48px;
    align-items: center;
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 52px 0 32px;
    border-top: 1px solid var(--line);
}

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

.footer-brand img {
    width: 46px;
    height: 46px;
    border-radius: 13px;
}

.footer-brand strong,
.footer-brand span {
    display: block;
}

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

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    justify-content: flex-end;
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
}

.footer-links a:hover {
    color: var(--purple);
}

.copyright {
    grid-column: 1 / -1;
    margin: 0;
    color: #9992a1;
    font-size: 11px;
}

@media (max-width: 700px) {
    body {
        word-break: normal;
        overflow-wrap: anywhere;
    }

    .site-header,
    footer {
        width: min(100% - 30px, 1120px);
    }

    .site-header {
        height: 68px;
    }

    .brand {
        font-size: 15px;
    }

    .brand img {
        width: 36px;
        height: 36px;
    }

    .legal-shell {
        width: min(100% - 24px, 940px);
        margin-top: 22px;
        margin-bottom: 72px;
    }

    .legal-intro {
        padding: 38px 25px;
        border-radius: 22px;
    }

    .legal-intro h1 {
        font-size: clamp(35px, 11vw, 46px);
    }

    .legal-intro > p:last-child {
        max-width: 220px;
        line-height: 1.65;
    }

    .legal-content {
        margin-top: 14px;
        padding: 34px 23px;
        border-radius: 22px;
    }

    .legal-content section + section {
        margin-top: 38px;
        padding-top: 38px;
    }

    .legal-content h2 {
        align-items: flex-start;
        font-size: 20px;
    }

    .legal-content h2::before {
        margin-top: 0.58em;
    }

    .legal-content p,
    .legal-content li {
        font-size: 14px;
        line-height: 1.85;
    }

    .policy-table,
    .policy-table thead,
    .policy-table tbody,
    .policy-table tr,
    .policy-table th,
    .policy-table td {
        display: block;
        width: 100%;
    }

    .policy-table {
        border: 0;
        border-radius: 0;
    }

    .policy-table thead {
        display: none;
    }

    .policy-table tr {
        margin-bottom: 12px;
        overflow: hidden;
        border: 1px solid var(--line);
        border-radius: 13px;
    }

    .policy-table td {
        padding: 12px 14px;
        border-right: 0;
    }

    .policy-table td:first-child {
        color: var(--purple-dark);
        background: var(--purple-pale);
        font-weight: 800;
    }

    .policy-table tr:last-child td {
        border-bottom: 1px solid var(--line);
    }

    .policy-table tr td:last-child {
        border-bottom: 0;
    }

    footer {
        grid-template-columns: 1fr;
        padding-top: 42px;
    }

    .footer-links {
        gap: 17px;
        justify-content: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
