:root {
    --ink: #102a43;
    --muted: #5e7182;
    --line: #dbe5ec;
    --surface: #f5f8fa;
    --navy: #0b2d45;
    --blue: #246b8e;
    --teal: #0f766e;
    --white: #fff;
    font-family: Pretendard, "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--surface);
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 8% 8%, rgba(36, 107, 142, .1), transparent 28rem),
        var(--surface);
}

a {
    color: inherit;
}

.legal-header {
    position: sticky;
    z-index: 10;
    top: 0;
    border-bottom: 1px solid rgba(219, 229, 236, .9);
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(18px);
}

.legal-header__inner,
.legal-shell,
.legal-footer__inner {
    width: min(100% - 40px, 960px);
    margin-inline: auto;
}

.legal-header__inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.legal-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
}

.legal-brand__mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(145deg, var(--navy), var(--blue));
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: -.04em;
    box-shadow: 0 9px 22px rgba(11, 45, 69, .2);
}

.legal-brand strong {
    display: block;
    font-size: 14px;
    letter-spacing: .04em;
}

.legal-brand small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
}

.legal-nav {
    display: flex;
    gap: 8px;
}

.legal-nav a {
    padding: 10px 13px;
    border-radius: 11px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.legal-nav a:hover,
.legal-nav a[aria-current="page"] {
    background: #e7f0f5;
    color: var(--navy);
}

.legal-shell {
    padding: clamp(52px, 8vw, 92px) 0 100px;
}

.legal-hero {
    margin-bottom: 32px;
}

.legal-hero p {
    margin: 0 0 12px;
    color: var(--blue);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .15em;
}

.legal-hero h1 {
    margin: 0;
    font-size: clamp(34px, 7vw, 56px);
    line-height: 1.08;
    letter-spacing: -.06em;
}

.legal-hero > span {
    display: block;
    margin-top: 18px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.75;
}

.legal-card {
    padding: clamp(24px, 5vw, 48px);
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 22px 64px rgba(11, 45, 69, .08);
}

.legal-summary {
    margin: 0 0 30px;
    padding: 18px 20px;
    border-radius: 16px;
    background: #e8f3f2;
    color: #164b49;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.7;
}

.legal-section {
    padding: 30px 0;
    border-top: 1px solid var(--line);
}

.legal-section:first-of-type {
    padding-top: 0;
    border-top: 0;
}

.legal-section:last-child {
    padding-bottom: 0;
}

.legal-section h2 {
    margin: 0 0 15px;
    font-size: clamp(18px, 3vw, 23px);
    letter-spacing: -.035em;
}

.legal-section h3 {
    margin: 20px 0 8px;
    font-size: 14px;
}

.legal-section p,
.legal-section li,
.legal-table th,
.legal-table td {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.legal-section p {
    margin: 9px 0 0;
}

.legal-section ul,
.legal-section ol {
    margin: 10px 0 0;
    padding-left: 22px;
}

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

.legal-table-wrap {
    overflow-x: auto;
    margin-top: 15px;
    border: 1px solid var(--line);
    border-radius: 16px;
}

.legal-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
}

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

.legal-table th {
    width: 21%;
    background: #f5f8fa;
    color: var(--ink);
    font-weight: 850;
}

.legal-table tr:last-child th,
.legal-table tr:last-child td {
    border-bottom: 0;
}

.legal-contact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.legal-contact div {
    padding: 16px;
    border-radius: 14px;
    background: var(--surface);
}

.legal-contact dt {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
}

.legal-contact dd {
    margin: 6px 0 0;
    font-size: 13px;
    font-weight: 800;
    word-break: break-all;
}

.legal-footer {
    border-top: 1px solid var(--line);
    background: var(--white);
}

.legal-footer__inner {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: var(--muted);
    font-size: 11px;
}

.legal-footer nav {
    display: flex;
    gap: 14px;
}

.legal-footer a {
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 640px) {
    .legal-header__inner,
    .legal-shell,
    .legal-footer__inner {
        width: min(100% - 28px, 960px);
    }

    .legal-header__inner {
        min-height: 64px;
    }

    .legal-brand small,
    .legal-nav a:first-child {
        display: none;
    }

    .legal-nav a {
        padding: 9px;
        font-size: 11px;
    }

    .legal-card {
        border-radius: 22px;
    }

    .legal-contact {
        grid-template-columns: 1fr;
    }

    .legal-footer__inner {
        padding: 22px 0;
        align-items: flex-start;
        flex-direction: column;
    }
}

