:root {
    color-scheme: light;
    --tq-burgundy: #8f2d2d;
    --tq-burgundy-dark: #682020;
    --tq-cream: #fffaf2;
    --tq-paper: #ffffff;
    --tq-ink: #2e2925;
    --tq-muted: #6f665e;
    --tq-line: #eadfd2;
    --tq-soft: #f7eee5;
    --tq-link: #7f2727;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--tq-ink);
    background:
        radial-gradient(circle at top left, rgba(159, 47, 47, 0.08), transparent 34rem),
        var(--tq-cream);
    font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    font-size: 16px;
    line-height: 1.75;
    word-break: keep-all;
    overflow-wrap: break-word;
}

a {
    color: var(--tq-link);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--tq-burgundy-dark);
}

a:focus-visible {
    outline: 3px solid rgba(143, 45, 45, 0.28);
    outline-offset: 3px;
    border-radius: 4px;
}

.legal-site-header {
    border-bottom: 1px solid var(--tq-line);
    background: rgba(255, 250, 242, 0.94);
}

.legal-header-inner {
    width: min(100% - 32px, 920px);
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.legal-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--tq-burgundy-dark);
    font-size: 21px;
    font-weight: 900;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.legal-brand img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
}

.legal-home-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 7px 14px;
    border: 1px solid var(--tq-line);
    border-radius: 999px;
    color: var(--tq-muted);
    background: var(--tq-paper);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.legal-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-language-picker {
    display: inline-flex;
}

.content-language-picker select {
    min-height: 40px;
    max-width: 150px;
    padding: 7px 30px 7px 12px;
    border: 1px solid var(--tq-line);
    border-radius: 999px;
    color: var(--tq-ink);
    background: var(--tq-paper);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
}

.content-language-picker select:focus-visible {
    outline: 3px solid rgba(143, 45, 45, 0.28);
    outline-offset: 2px;
}

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

.legal-main {
    width: min(100% - 32px, 920px);
    margin: 36px auto 52px;
}

.legal-document {
    padding: clamp(26px, 5vw, 54px);
    border: 1px solid var(--tq-line);
    border-radius: 24px;
    background: var(--tq-paper);
    box-shadow: 0 18px 50px rgba(84, 50, 30, 0.08);
}

.legal-document header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--tq-soft);
}

.legal-document h1 {
    margin: 0 0 8px;
    color: var(--tq-burgundy-dark);
    font-size: clamp(29px, 5vw, 42px);
    line-height: 1.25;
    letter-spacing: -0.04em;
}

.legal-effective-date {
    margin: 0;
    color: var(--tq-muted);
    font-size: 14px;
}

.legal-intro {
    margin: 0 0 30px;
    padding: 18px 20px;
    border-left: 4px solid var(--tq-burgundy);
    border-radius: 0 12px 12px 0;
    background: var(--tq-soft);
}

.legal-document section {
    margin-top: 34px;
    scroll-margin-top: 18px;
}

.legal-document h2 {
    margin: 0 0 10px;
    color: var(--tq-burgundy-dark);
    font-size: 21px;
    line-height: 1.4;
    letter-spacing: -0.02em;
}

.legal-document h3 {
    margin: 24px 0 8px;
    color: var(--tq-ink);
    font-size: 17px;
    line-height: 1.5;
}

.legal-document p {
    margin: 10px 0;
}

.legal-document ul {
    margin: 12px 0;
    padding-left: 23px;
}

.legal-document li + li {
    margin-top: 8px;
}

.legal-highlight {
    padding: 17px 19px;
    border: 1px solid #e3c7c2;
    border-radius: 14px;
    background: #fff8f6;
}

.legal-contact {
    padding: 18px 20px;
    border-radius: 14px;
    background: var(--tq-soft);
}

.guide-toc {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 34px;
}

.guide-toc a {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 9px 10px;
    border: 1px solid var(--tq-line);
    border-radius: 12px;
    background: var(--tq-cream);
    font-size: 14px;
    font-weight: 750;
    text-align: center;
    text-decoration: none;
}

.guide-step-list {
    padding-left: 26px;
}

.guide-step-list li {
    padding: 12px 14px;
    border: 1px solid var(--tq-line);
    border-radius: 12px;
    background: #fffdfa;
}

.guide-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0 28px;
}

.guide-summary-card {
    display: flex;
    min-height: 100px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border: 1px solid #e3c7c2;
    border-radius: 16px;
    background: #fff8f6;
    text-align: center;
}

.guide-summary-card strong {
    color: var(--tq-burgundy-dark);
    font-size: 24px;
    line-height: 1.25;
}

.guide-summary-card span {
    margin-top: 5px;
    color: var(--tq-muted);
    font-size: 13px;
}

.guide-topic-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 24px;
    padding-left: 0 !important;
    list-style: none;
}

.support-email-card {
    margin-top: 0 !important;
    padding: 24px;
    border: 1px solid #c9ded7;
    border-radius: 18px;
    background: #f3faf7;
    text-align: center;
}

.support-email-card h2 {
    margin-bottom: 4px;
}

.support-email-link {
    font-size: clamp(18px, 4vw, 24px);
    font-weight: 800;
}

.support-email-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding: 10px 24px;
    border-radius: 999px;
    color: #fff;
    background: #26745a;
    font-weight: 800;
    text-decoration: none;
}

.support-email-button:hover {
    color: #fff;
    background: #1e6049;
}

.support-checklist li::marker {
    color: #26745a;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.legal-document .support-card {
    margin-top: 0;
    padding: 18px;
    border: 1px solid var(--tq-line);
    border-radius: 14px;
    background: #fffdfa;
}

.support-card h3 {
    margin-top: 0;
    color: var(--tq-burgundy-dark);
}

.support-card p:last-child {
    margin-bottom: 0;
    color: var(--tq-muted);
    font-size: 14px;
}

.legal-site-footer {
    width: min(100% - 32px, 920px);
    margin: 0 auto 36px;
    color: var(--tq-muted);
    font-size: 13px;
    text-align: center;
}

.legal-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
    margin-bottom: 8px;
}

.google-privacy-settings-button {
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.legal-site-footer p {
    margin: 4px 0;
}

@media (max-width: 600px) {
    body {
        font-size: 15px;
        line-height: 1.7;
        word-break: normal;
    }

    .legal-header-inner,
    .legal-main,
    .legal-site-footer {
        width: min(100% - 24px, 920px);
    }

    .legal-header-inner {
        min-height: 64px;
    }

    .legal-brand {
        font-size: 19px;
    }

    .legal-brand img {
        width: 34px;
        height: 34px;
    }

    .legal-home-link {
        min-height: 38px;
        padding: 6px 11px;
        font-size: 13px;
    }

    .legal-header-actions {
        gap: 6px;
    }

    .content-language-picker select {
        width: 48px;
        max-width: 48px;
        padding: 6px 8px;
        font-size: 13px;
    }

    .legal-main {
        margin-top: 20px;
        margin-bottom: 34px;
    }

    .legal-document {
        padding: 24px 20px 30px;
        border-radius: 18px;
    }

    .legal-document header {
        margin-bottom: 24px;
        padding-bottom: 18px;
    }

    .legal-document h2 {
        font-size: 19px;
    }

    .legal-document h3 {
        font-size: 16px;
    }

    .legal-intro,
    .legal-highlight,
    .legal-contact {
        padding: 15px 16px;
    }

    .guide-toc,
    .guide-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .guide-topic-list {
        grid-template-columns: 1fr;
    }

    .support-grid {
        grid-template-columns: 1fr;
    }

    .support-email-card {
        padding: 20px 16px;
    }
}

@media print {
    body {
        background: #fff;
        font-size: 11pt;
    }

    .legal-site-header,
    .legal-site-footer {
        display: none;
    }

    .legal-main {
        width: 100%;
        margin: 0;
    }

    .legal-document {
        padding: 0;
        border: 0;
        box-shadow: none;
    }

    a {
        color: inherit;
    }
}
