/* 기본 스타일 설정 */
:root {
    /* 로고 기반 색상 팔레트 */
    --primary-color: #FFD166;
    /* 노란색 (로고 머리카락) */
    --primary-dark: #F4C14E;
    --primary-light: #FFDE8A;
    --secondary-color: #A8E6CF;
    /* 민트색 (로고 옷) */
    --secondary-dark: #8CD9B9;
    --secondary-light: #C4F0E0;
    --accent-color: #FF8B94;
    /* 분홍색 (로고 하트) */
    --accent-dark: #FF6B76;
    --accent-light: #FFADB3;
    --background-color: #FFF9DE;
    /* 매우 밝은 노란색 배경 */
    --background-alt: #FFF5C6;
    --text-color: #000000;
    /* 검은색 */
    --text-secondary: #222222;
    --text-light: #444444;
    --white: #ffffff;
    --error-color: #FF6B76;
    --success-color: #8CD9B9;
    --warning-color: #FFD166;
    --info-color: #A8E6CF;
    --shadow-sm: 0 2px 10px rgba(93, 64, 55, 0.1);
    --shadow-md: 0 4px 12px rgba(93, 64, 55, 0.15);
    --shadow-lg: 0 8px 20px rgba(93, 64, 55, 0.2);

    /* 간격 */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;

    /* 반응형 크기 */
    --mobile-width: 480px;
    --tablet-width: 768px;
    --desktop-width: 1024px;

    /* 테두리 */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 20px;
    --border-radius-circle: 50%;

    /* 접근성 변수 */
    --focus-outline-color: #2A9D8F;
    --focus-outline-width: 3px;
    --focus-outline-style: solid;
}

/* 리셋 및 기본 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

html,
body {
    font-family: 'Pretendard', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    background: linear-gradient(to bottom, #FFF9DE, #FFE9A8, #FFD166, #FFCB5C) !important;
    background-attachment: fixed !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
}

/* 추가 배경 효과 제거 */
body::before {
    display: none;
}

/* 배경 패턴 제거하고 깔끔한 그라데이션 효과만 사용 */
body::after {
    display: none;
}

/* 컨테이너 */
.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: rgba(255, 249, 222, 0.98);
    /* :root의 #FFF9DE에 투명도 살짝 */
    backdrop-filter: none;
    /* 블러 효과 제거 */
    -webkit-backdrop-filter: none;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 32px rgba(93, 64, 55, 0.15);
    /* 그림자 약하게 */
    border: 2px solid var(--primary-color);
}

/* 헤더 */
.header {
    text-align: center;
    padding: var(--spacing-lg) 0;
}

.logo-container {
    margin-bottom: var(--spacing-lg);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.logo-container::before {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    background-color: rgba(255, 209, 102, 0.2);
    border-radius: 50%;
    z-index: -1;
}

.logo-container::after {
    content: '✨';
    position: absolute;
    top: -10px;
    right: 30%;
    font-size: 24px;
    animation: twinkle 2s infinite ease-in-out;
}

.logo {
    max-width: 120px;
    height: auto;
    animation: logoFloat 4s infinite ease-in-out;
    filter: drop-shadow(0 4px 8px rgba(93, 64, 55, 0.3));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 6px 12px rgba(93, 64, 55, 0.4));
}

.title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-color);
    animation: fadeIn 0.8s ease-out;
    text-shadow: 2px 2px 0px var(--accent-color), 0 0 5px rgba(255, 255, 255, 0.8);
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--accent-color), var(--secondary-color), var(--primary-color));
    border-radius: 3px;
}

/* 메인 콘텐츠 */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 인트로 섹션 */
.intro-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.intro-content {
    /* margin-bottom: var(--spacing-lg);
    position: relative;
    z-index: 2; */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.intro-heading {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
    animation: fadeIn 1s ease-out 0.2s both;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.8), 0 0 3px rgba(255, 255, 255, 0.5);
}

.intro-text {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
    color: var(--text-color);
    animation: fadeIn 1s ease-out 0.4s both;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.intro-note {
    font-size: 1rem;
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 500;
    animation: fadeIn 1s ease-out 0.6s both;
}

.intro-image {
    margin-top: var(--spacing-lg);
    max-width: 100%;
}

.illustration {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    animation: float 6s infinite ease-in-out;
    transition: transform 0.3s;
}

.illustration:hover {
    transform: scale(1.03);
}

/* 특징 목록 */
.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    animation: fadeIn 1s ease-out 0.6s both;
}

.feature-item {
    display: flex;
    align-items: center;
    background-color: var(--white);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 1.2rem;
    margin-right: var(--spacing-xs);
}

.feature-text {
    font-size: 0.9rem;
    font-weight: 500;
}

/* 버튼 스타일 */
.btn {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-lg);
    border: none;
    border-radius: 50px;
    font-family: 'Pretendard', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, background-color 0.3s, box-shadow 0.3s;
    box-shadow: var(--shadow-sm);
    letter-spacing: 0.5px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(45deg, var(--accent-dark), var(--accent-color));
    color: #FFFFFF;
    padding: var(--spacing-lg) var(--spacing-xxl);
    animation: fadeIn 1s ease-out 0.8s both;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(93, 64, 55, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-weight: 700;
    font-size: 1.1rem;
    border: 2px solid var(--text-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    margin-top: var(--spacing-md);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    transition: all 0.6s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(45deg, var(--accent-dark), var(--accent-color));
    box-shadow: 0 6px 20px rgba(93, 64, 55, 0.5);
    transform: translateY(-3px) scale(1.02);
}

.btn-primary:focus,
.btn-primary.focused {
    outline: none;
    box-shadow: 0 0 0 3px rgba(127, 90, 240, 0.3), 0 4px 15px rgba(127, 90, 240, 0.3);
}

.btn-primary:disabled {
    background: linear-gradient(45deg, var(--text-light), #A0AEC0);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 10px rgba(160, 174, 192, 0.3);
}

.btn-primary.clicked {
    background: linear-gradient(45deg, var(--primary-dark), var(--primary-color));
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(127, 90, 240, 0.4);
}

.btn-secondary {
    background: linear-gradient(45deg, var(--secondary-color), var(--secondary-light));
    color: white;
    box-shadow: 0 4px 15px rgba(121, 179, 244, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    transition: all 0.6s ease;
    z-index: -1;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover {
    background: linear-gradient(45deg, var(--secondary-dark), var(--secondary-color));
    box-shadow: 0 6px 20px rgba(121, 179, 244, 0.5);
    transform: translateY(-3px) scale(1.02);
}

.btn-share {
    background-color: var(--accent-color);
    color: var(--text-color);
    font-size: 0.9rem;
    padding: var(--spacing-sm) var(--spacing-md);
    margin: var(--spacing-xs);
    font-weight: 500;
}

.btn-share:hover {
    background-color: var(--accent-dark);
}

/* 버튼 리플 효과 */
.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

/* 테스트 섹션 */
.test-section {
    width: 100%;
}

.progress-container {
    margin-bottom: var(--spacing-lg);
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: right;
    font-size: 0.9rem;
    margin-top: var(--spacing-xs);
}

.question-container {
    background-color: #FFF9DE;
    /* 직접 밝은 노란색 지정 */
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px #FFE9A8;
    /* 밝은 노란색 그림자 */
    border: 1px solid #FFE9A8;
    /* 밝은 노란색 테두리 */
    transition: opacity 0.3s, transform 0.3s;
}

.question-text {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: var(--text-color);
    line-height: 1.4;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.options-container button {
    border: 2px solid var(--primary-light);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    text-align: left;
    font-family: 'Pretendard', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.options-container button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 209, 102, 0.3);
}

.options-container button.selected {
    background: linear-gradient(45deg, var(--secondary-color), var(--secondary-light));
    color: white;
    border-color: var(--secondary-dark);
    box-shadow: 0 5px 15px rgba(168, 230, 207, 0.4);
}

.options-container button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.3);
}



/* 질문 페이지 애니메이션 */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.fade-out {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.3s;
}

/* 결과 섹션 */
.result-section {
    width: 100%;
}

.result-container {
    background-color: #FFF9DE;
    /* 직접 밝은 노란색 지정 */
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px #FFE9A8;
    /* 밝은 노란색 그림자 */
    border: 1px solid #FFE9A8;
    /* 밝은 노란색 테두리 */
    transition: opacity 0.3s, transform 0.3s;
}

.share-container {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: var(--spacing-md);
}

/* 푸터 */
.footer {
    padding: var(--spacing-lg) 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: var(--spacing-xl);
    background: linear-gradient(to right, rgba(209, 107, 165, 0.05), rgba(121, 179, 244, 0.05));
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.copyright {
    margin-bottom: var(--spacing-sm);
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--white);
}

/* 애니메이션 정의 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes logoFloat {
    0% {
        transform: translateY(0px) rotate(0deg);
        filter: drop-shadow(0 4px 8px rgba(93, 64, 55, 0.3));
    }

    25% {
        transform: translateY(-5px) rotate(1deg);
        filter: drop-shadow(0 6px 12px rgba(93, 64, 55, 0.35));
    }

    50% {
        transform: translateY(-8px) rotate(0deg);
        filter: drop-shadow(0 8px 16px rgba(93, 64, 55, 0.4));
    }

    75% {
        transform: translateY(-5px) rotate(-1deg);
        filter: drop-shadow(0 6px 12px rgba(93, 64, 55, 0.35));
    }

    100% {
        transform: translateY(0px) rotate(0deg);
        filter: drop-shadow(0 4px 8px rgba(93, 64, 55, 0.3));
    }
}

@keyframes twinkle {
    0% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }

    100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(209, 107, 165, 0.2);
    }

    50% {
        transform: scale(1.08);
        box-shadow: 0 8px 20px rgba(209, 107, 165, 0.4);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(209, 107, 165, 0.2);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-8px) rotate(1deg);
    }

    50% {
        transform: translateY(-15px) rotate(0deg);
    }

    75% {
        transform: translateY(-8px) rotate(-1deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes colorShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.color-shift {
    background: linear-gradient(270deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    background-size: 600% 600%;
    animation: colorShift 8s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }

    20% {
        transform: scale(25, 25);
        opacity: 0.3;
    }

    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

/* 페이지 전환 효과 */
.page-transition {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.page-loaded .container {
    animation: fadeIn 0.5s ease-out;
}

/* 로딩 상태 애니메이션 */
@keyframes loading {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.btn-primary.clicked::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: loading 1s linear infinite;
    margin-right: 8px;
}

/* 접근성 개선 */
.btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* 모션 감소 설정 지원 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 스크롤바 스타일링 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* 텍스트 선택 스타일 */
::selection {
    background-color: var(--primary-light);
    color: white;
}

/* 반응형 디자인 */
@media (max-width: 480px) {
    .title {
        font-size: 1.5rem;
    }

    .intro-heading {
        font-size: 1.2rem;
    }

    .intro-text {
        font-size: 1rem;
    }

    .btn {
        padding: var(--spacing-sm) var(--spacing-lg);
    }

    .features {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .feature-item {
        width: 100%;
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 800px;
    }

    .title {
        font-size: 2.2rem;
    }

    .intro-heading {
        font-size: 1.6rem;
    }

    .intro-text {
        font-size: 1.3rem;
    }

    .intro-section {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
        align-items: center;
        gap: var(--spacing-xl);
    }

    .intro-content {
        flex: 1;
    }

    .intro-image {
        flex: 1;
        margin-top: 0;
    }

    .features {
        justify-content: flex-start;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .copyright {
        margin-bottom: 0;
    }
}

/* 알림
 스타일 */
.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--border-radius-md);
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 300px;
    max-width: 90%;
    animation: slideDown 0.3s ease-out;
}

.notification.info {
    border-left: 4px solid var(--secondary-color);
}

.notification.success {
    border-left: 4px solid #4CAF50;
}

.notification.warning {
    border-left: 4px solid #FF9800;
}

.notification.error {
    border-left: 4px solid #F44336;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: var(--spacing-md);
    color: var(--text-secondary);
}

@keyframes slideDown {
    from {
        transform: translate(-50%, -100%);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* 질문 페이지 추
가 스타일 */
.test-section {
    animation: fadeIn 0.5s ease-out;
}

/* 키보드 단축키 힌트 스타일 */
.keyboard-shortcuts {
    text-align: center;
    margin-top: var(--spacing-lg);
    font-size: 0.85rem;
    color: var(--text-light);
}

.shortcut-hint kbd {
    display: inline-block;
    padding: 2px 6px;
    font-family: monospace;
    font-size: 0.9em;
    line-height: 1;
    color: var(--text-color);
    background-color: var(--background-color);
    border: 1px solid var(--text-light);
    border-radius: 3px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .2);
    margin: 0 2px;
}

/* 옵션 버튼 향상된 스타일 */

/* 옵션 선택 시 애니메이션 효과 */
@keyframes selectPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.options-container button.selected {
    animation: selectPulse 0.3s ease-out;
}

/* 오류 메시지 스타일 */
.error-container {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background-color: rgba(244, 67, 54, 0.1);
    border-left: 4px solid #F44336;
    border-radius: var(--border-radius-md);
    color: #d32f2f;
    font-size: 0.9rem;
}

/* 테스트 네비게이션 스타일 */
.test-navigation {
    display: flex;
    justify-content: center;
    margin-top: var(--spacing-md);
}

/* 로딩 상태 표시 */
.question-container.loading .question-text::after {
    content: '...';
    animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
    0% {
        content: '.';
    }

    33% {
        content: '..';
    }

    66% {
        content: '...';
    }

    100% {
        content: '.';
    }
}

/* 질문 컨테이너 향상된 스타일 */
.question-container {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.question-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    opacity: 0.7;
}

/* 진행 상태 표시기 향상된 스타일 */
.progress-container {
    position: relative;
}

.progress-fill {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    box-shadow: 0 0 8px rgba(209, 107, 165, 0.3);
}

.progress-text {
    font-weight: 500;
    color: var(--text-secondary);
}

/* 모바일 최적화 추가 스타일 */
@media (max-width: 480px) {
    .question-text {
        font-size: 1.1rem;
    }

    .options-container button {
        padding: var(--spacing-md);
        padding-left: var(--spacing-lg);
        font-size: 0.95rem;
    }

    .options-container button::before {
        width: 16px;
        height: 16px;
        left: var(--spacing-sm);
    }

    .options-container button.selected::after {
        width: 6px;
        height: 6px;
        left: calc(var(--spacing-sm) + 5px);
    }
}

/* 
로딩 스피너 스타일 */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl) 0;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(209, 107, 165, 0.2);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: var(--spacing-lg) 0;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 결과 계산 중 애니메이션 */
@keyframes calculating {
    0% {
        content: '.';
    }

    33% {
        content: '..';
    }

    66% {
        content: '...';
    }

    100% {
        content: '.';
    }
}

.loading-container .question-text::after {
    content: '';
    animation: calculating 1.5s infinite;
}

/* 결과 페이지 향상된 스타일 */
.result-header {
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    margin-bottom: var(--spacing-md);
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.98));
    box-shadow: 0 4px 20px rgba(209, 107, 165, 0.15);
    position: relative;
    overflow: hidden;
}

.result-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            rgba(209, 107, 165, 0.05) 0%,
            rgba(121, 179, 244, 0.05) 30%,
            rgba(70, 238, 250, 0.05) 60%,
            rgba(209, 107, 165, 0.05) 100%);
    animation: gradientMove 10s linear infinite;
    z-index: 0;
}

@keyframes gradientMove {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.result-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: var(--spacing-xs);
    color: var(--text-color);
    position: relative;
    z-index: 1;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.8);
}

.result-subtitle {
    font-size: 1.3rem;
    font-weight: 500;
    color: #00796b;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.result-image-container {
    text-align: center;
    margin: var(--spacing-lg) 0;
}

.result-image {
    max-width: 200px;
    height: auto;
    border-radius: var(--border-radius-circle);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.result-image:hover {
    transform: scale(1.05);
}

.result-description {
    margin-bottom: var(--spacing-lg);
}

.result-description h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: #d32f2f;
}

.result-description p {
    line-height: 1.8;
    color: var(--text-secondary);
}

.result-strengths,
.result-weaknesses,
.result-tips {
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    background-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 5px 15px rgba(209, 107, 165, 0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.result-strengths:hover,
.result-weaknesses:hover,
.result-tips:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.result-strengths h3,
.result-weaknesses h3,
.result-tips h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    position: relative;
    display: inline-block;
}

.result-strengths h3::after,
.result-weaknesses h3::after,
.result-tips h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    border-radius: 3px;
}

.result-strengths {
    border-left: 5px solid var(--secondary-color);
    background-color: rgba(121, 179, 244, 0.1);
}

.result-strengths h3 {
    color: #00796b;
}

.result-strengths h3::after {
    background-color: var(--secondary-color);
}

.result-strengths li::before {
    content: '✓';
    color: var(--secondary-color);
    margin-right: 8px;
    font-weight: bold;
}

.result-weaknesses {
    border-left: 5px solid var(--primary-color);
    background-color: rgba(209, 107, 165, 0.1);
}

.result-weaknesses h3 {
    color: #f44336;
}

.result-weaknesses h3::after {
    background-color: var(--primary-color);
}

.result-weaknesses li::before {
    content: '!';
    color: var(--primary-color);
    margin-right: 8px;
    font-weight: bold;
}

.result-tips {
    border-left: 5px solid var(--accent-color);
    background-color: rgba(70, 238, 250, 0.1);
}

.result-tips h3 {
    color: var(--accent-color);
}

.result-tips h3::after {
    background-color: var(--accent-color);
}

.result-tips li::before {
    content: '💡';
    margin-right: 8px;
}

.result-strengths ul,
.result-weaknesses ul,
.result-tips ul {
    padding-left: var(--spacing-lg);
}

.result-strengths li,
.result-weaknesses li,
.result-tips li {
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

.result-chart {
    margin: var(--spacing-xl) 0;
}

.result-chart h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.chart-container {
    margin-top: var(--spacing-md);
}

.chart-bar-container {
    margin-bottom: var(--spacing-md);
}

.chart-label {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
}

.chart-bar-wrapper {
    height: 24px;
    background-color: #e0e0e0;
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.chart-bar {
    height: 100%;
    border-radius: var(--border-radius-md);
    opacity: 0;
    transition: opacity 0.5s ease;
    position: relative;
}

.chart-value {
    position: absolute;
    right: var(--spacing-sm);
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.error-message {
    text-align: center;
    padding: var(--spacing-xl);
}

.error-message h2 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

.error-message p {
    margin-bottom: var(--spacing-lg);
    color: var(--text-secondary);
}

/* 결과 페이지 반응형 스타일 */
@media (max-width: 480px) {
    .result-title {
        font-size: 1.5rem;
    }

    .result-subtitle {
        font-size: 1rem;
    }

    .result-image {
        max-width: 150px;
    }

    .result-description h3,
    .result-strengths h3,
    .result-weaknesses h3,
    .result-tips h3,
    .result-chart h3 {
        font-size: 1.1rem;
    }
}

@media (min-width: 768px) {
    .result-header {
        padding: var(--spacing-xl);
    }

    .result-title {
        font-size: 2rem;
    }

    .result-subtitle {
        font-size: 1.3rem;
    }

    .result-image {
        max-width: 250px;
    }

    .result-strengths,
    .result-weaknesses,
    .result-tips {
        padding: var(--spacing-lg);
    }
}

/* 결과 페이지 추가 스타일 */
.result-section {
    animation: fadeIn 0.8s ease-out;
}

/* 공유 컨테이너 스타일 */
.share-container {
    background: linear-gradient(135deg, rgba(209, 107, 165, 0.1), rgba(121, 179, 244, 0.1));
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
    text-align: center;
}

/* ===== 법적 페이지 및 정보 페이지 스타일 ===== */

/* 법적 페이지 메인 컨테이너 */
.legal-content {
    width: 100%;
    max-width: 100%;
    animation: fadeIn 0.8s ease-out;
}

/* 네비게이션 섹션 */
.navigation-section {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-md) 0;
    border-bottom: 2px solid rgba(255, 209, 102, 0.3);
    flex-wrap: wrap;
}

.navigation-section .btn {
    min-width: 140px;
    text-align: center;
}

/* 법적 섹션 스타일 */
.legal-section {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    box-shadow: 0 4px 20px rgba(93, 64, 55, 0.1);
    border: 1px solid rgba(255, 209, 102, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.legal-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(93, 64, 55, 0.15);
}

.legal-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    opacity: 0.8;
}

/* 법적 섹션 제목 스타일 */
.legal-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--primary-light);
    position: relative;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.8);
}

.legal-section h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    border-radius: 2px;
}

.legal-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: var(--spacing-lg) 0 var(--spacing-md) 0;
    position: relative;
    padding-left: var(--spacing-md);
}

.legal-section h3::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.legal-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: var(--spacing-md) 0 var(--spacing-sm) 0;
}

/* 법적 섹션 텍스트 스타일 */
.legal-section p {
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
    font-weight: 400;
    text-align: justify;
}

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

/* 법적 섹션 리스트 스타일 */
.legal-section ul,
.legal-section ol {
    margin: var(--spacing-md) 0;
    padding-left: var(--spacing-xl);
}

.legal-section li {
    line-height: 1.7;
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
    position: relative;
}

.legal-section ul li::marker {
    color: var(--secondary-color);
    font-weight: bold;
}

.legal-section ol li::marker {
    color: var(--accent-color);
    font-weight: bold;
}

/* 중첩된 리스트 스타일 */
.legal-section ul ul,
.legal-section ol ol,
.legal-section ul ol,
.legal-section ol ul {
    margin: var(--spacing-xs) 0;
    padding-left: var(--spacing-lg);
}

.legal-section ul ul li::marker,
.legal-section ol ul li::marker {
    color: var(--primary-color);
}

/* 강조 텍스트 스타일 */
.legal-section strong {
    color: var(--text-color);
    font-weight: 700;
    background: linear-gradient(120deg, rgba(255, 209, 102, 0.3) 0%, rgba(255, 209, 102, 0.1) 100%);
    padding: 0 2px;
    border-radius: 2px;
}

.legal-section em {
    font-style: italic;
    color: var(--accent-color);
    font-weight: 500;
}

/* 연락처 정보 스타일 */
.contact-info {
    background: linear-gradient(135deg, rgba(168, 230, 207, 0.1), rgba(255, 209, 102, 0.1));
    border-radius: var(--border-radius-md);
    padding: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
    border-left: 4px solid var(--secondary-color);
    position: relative;
}

.contact-info::before {
    content: '📞';
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    font-size: 1.2rem;
}

.contact-info p {
    margin-left: var(--spacing-xl);
    margin-bottom: var(--spacing-sm);
}

.contact-info p:last-child {
    margin-bottom: 0;
}

/* 경고/주의 박스 스타일 */
.legal-section .warning-box,
.legal-section .info-box,
.legal-section .tip-box {
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    margin: var(--spacing-lg) 0;
    position: relative;
    border-left: 4px solid;
}

.legal-section .warning-box {
    background-color: rgba(255, 193, 7, 0.1);
    border-left-color: var(--warning-color);
}

.legal-section .info-box {
    background-color: rgba(168, 230, 207, 0.1);
    border-left-color: var(--info-color);
}

.legal-section .tip-box {
    background-color: rgba(255, 139, 148, 0.1);
    border-left-color: var(--accent-color);
}

/* 테이블 스타일 (필요시) */
.legal-section table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--spacing-lg) 0;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(93, 64, 55, 0.1);
}

.legal-section th,
.legal-section td {
    padding: var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid rgba(255, 209, 102, 0.3);
}

.legal-section th {
    background-color: var(--primary-light);
    font-weight: 600;
    color: var(--text-color);
}

.legal-section tr:hover {
    background-color: rgba(255, 209, 102, 0.1);
}

/* 코드 블록 스타일 (필요시) */
.legal-section code {
    background-color: rgba(255, 209, 102, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--text-secondary);
}

.legal-section pre {
    background-color: rgba(255, 255, 255, 0.9);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    overflow-x: auto;
    border-left: 4px solid var(--primary-color);
    margin: var(--spacing-lg) 0;
}

.legal-section pre code {
    background: none;
    padding: 0;
}

/* 링크 스타일 */
.legal-section a {
    color: var(--secondary-dark);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}

.legal-section a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

/* 날짜 및 버전 정보 스타일 */
.legal-section .version-info,
.legal-section .date-info {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    text-align: right;
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 209, 102, 0.3);
}

/* 반응형 디자인 - 모바일 */
@media (max-width: 480px) {
    .legal-section {
        padding: var(--spacing-lg);
        margin-bottom: var(--spacing-lg);
    }

    .legal-section h2 {
        font-size: 1.2rem;
        margin-bottom: var(--spacing-md);
    }

    .legal-section h3 {
        font-size: 1.1rem;
        margin: var(--spacing-md) 0 var(--spacing-sm) 0;
    }

    .legal-section ul,
    .legal-section ol {
        padding-left: var(--spacing-lg);
    }

    .navigation-section {
        flex-direction: column;
        align-items: center;
    }

    .navigation-section .btn {
        width: 100%;
        max-width: 280px;
    }

    .contact-info {
        padding: var(--spacing-md);
    }

    .contact-info p {
        margin-left: var(--spacing-lg);
    }

    .legal-section table {
        font-size: 0.9rem;
    }

    .legal-section th,
    .legal-section td {
        padding: var(--spacing-sm);
    }
}

/* 반응형 디자인 - 태블릿 */
@media (min-width: 481px) and (max-width: 768px) {
    .legal-section {
        padding: var(--spacing-xl);
    }

    .legal-section h2 {
        font-size: 1.3rem;
    }

    .navigation-section {
        justify-content: center;
    }
}

/* 반응형 디자인 - 데스크톱 */
@media (min-width: 769px) {
    .legal-section {
        padding: var(--spacing-xxl);
    }

    .legal-section h2 {
        font-size: 1.5rem;
    }

    .legal-section h3 {
        font-size: 1.3rem;
    }

    .navigation-section {
        justify-content: space-between;
        max-width: 400px;
        margin: var(--spacing-xl) auto;
    }
}

/* 인쇄 스타일 */
@media print {
    .legal-content {
        background: white;
    }

    .legal-section {
        background: white;
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }

    .navigation-section {
        display: none;
    }

    .legal-section::before {
        display: none;
    }
}

/* 접근성 향상 */
.legal-section:focus-within {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* 스크롤 애니메이션 */
.legal-section {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.legal-section:nth-child(2) {
    animation-delay: 0.1s;
}

.legal-section:nth-child(3) {
    animation-delay: 0.2s;
}

.legal-section:nth-child(4) {
    animation-delay: 0.3s;
}

.legal-section:nth-child(5) {
    animation-delay: 0.4s;
}

.legal-section:nth-child(6) {
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.share-container {
    text-align: center;
    border: 1px solid rgba(209, 107, 165, 0.2);
    box-shadow: 0 5px 15px rgba(209, 107, 165, 0.1);
}

.share-container h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
}

.share-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-sm);
}

.btn-share {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.share-icon {
    margin-right: var(--spacing-xs);
    font-size: 1.1rem;
}

#shareTwitter {
    background: linear-gradient(45deg, #000000, #333333);
    color: white;
    box-shadow: 0 4px 10px rgba(29, 161, 242, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

#shareTwitter::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    transition: all 0.6s ease;
    z-index: -1;
}

#shareTwitter:hover::before {
    left: 100%;
}

#shareFacebook {
    background: linear-gradient(45deg, #4267B2, #5B7BD5);
    color: white;
    box-shadow: 0 4px 10px rgba(66, 103, 178, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

#shareFacebook::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    transition: all 0.6s ease;
    z-index: -1;
}

#shareFacebook:hover::before {
    left: 100%;
}

#copyLink {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: 0 4px 10px rgba(127, 90, 240, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

#copyLink::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    transition: all 0.6s ease;
    z-index: -1;
}

#copyLink:hover::before {
    left: 100%;
}

.btn-share:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.btn-share:active {
    transform: translateY(-1px) scale(0.98);
}

/* 액션 버튼 스타일 */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
    margin: var(--spacing-xl) 0;
}

.action-buttons .btn {
    min-width: 180px;
    text-align: center;
}

/* 추가 정보 섹션 스타일 */
.additional-info {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    margin-top: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
}

.additional-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: #ffffff;
}

.additional-info p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* 결과 애니메이션 효과 */
@keyframes resultFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-header,
.result-image-container,
.result-description,
.result-strengths,
.result-weaknesses,
.result-tips,
.result-chart {
    animation: resultFadeIn 0.8s ease-out forwards;
    opacity: 0;
}

.result-header {
    animation-delay: 0.1s;
}

.result-image-container {
    animation-delay: 0.3s;
}

.result-description {
    animation-delay: 0.5s;
}

.result-strengths {
    animation-delay: 0.7s;
}

.result-weaknesses {
    animation-delay: 0.9s;
}

.result-tips {
    animation-delay: 1.1s;
}

.result-chart {
    animation-delay: 1.3s;
}

/* 공유 성공 메시지 스타일 */
.share-success {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary-color);
    color: white;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    animation: shareSuccess 3s ease-in-out forwards;
}

@keyframes shareSuccess {
    0% {
        opacity: 0;
        transform: translate(-50%, 20px);
    }

    10% {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    90% {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
}

/* 결과 이미지 효과 */
.result-image {
    position: relative;
    z-index: 1;
}

.result-image::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius-circle);
    background-color: var(--primary-light);
    z-index: -1;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.result-image:hover::after {
    top: 5px;
    left: 5px;
    opacity: 0.5;
}

/* 모바일 최적화 */
@media (max-width: 480px) {
    .share-buttons {
        flex-direction: column;
        gap: var(--spacing-xs);
    }

    .btn-share {
        width: 100%;
    }

    .action-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .action-buttons .btn {
        width: 100%;
    }
}

/* 태블릿 및 데스크톱 최적화 */
@media (min-width: 768px) {
    .share-container {
        padding: var(--spacing-xl);
    }

    .share-buttons {
        gap: var(--spacing-md);
    }

    .btn-share {
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: 1rem;
    }

    .action-buttons {
        gap: var(--spacing-lg);
    }

    .action-buttons .btn {
        min-width: 220px;
    }

    .additional-info {
        padding: var(--spacing-xl);
    }
}

/*
 향상된 공유 버튼 스타일 */
.share-container {
    position: relative;
    overflow: hidden;
}

.share-container::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 80px;
    height: 80px;
    background-color: var(--accent-color);
    opacity: 0.1;
    border-radius: 50%;
    z-index: 0;
}

.share-container::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background-color: var(--primary-color);
    opacity: 0.05;
    border-radius: 50%;
    z-index: 0;
}

.share-container h3,
.share-description,
.share-buttons {
    position: relative;
    z-index: 1;
}

.btn-share {
    position: relative;
    overflow: hidden;
}

.btn-share::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.btn-share:hover::before {
    left: 100%;
}

/* 네이티브 공유 버튼 스타일 */
#nativeShare {
    background-color: #8e44ad;
    color: white;
}

/* 공유 버튼 아이콘 애니메이션 */
.share-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn-share:hover .share-icon {
    transform: scale(1.2);
}

/* 공유 성공 메시지 향상된 스타일 */
.share-success {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md) var(--spacing-lg);
}

.share-success::before {
    content: '✓';
    display: inline-block;
    margin-right: var(--spacing-sm);
    font-size: 1.2rem;
    font-weight: bold;
}

/* 모바일 최적화 */
@media (max-width: 480px) {
    .share-buttons {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xs);
    }

    .btn-share {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.85rem;
    }
}

/* 태블릿 및 데스크톱 최적화 */
@media (min-width: 768px) {
    .share-buttons {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: var(--spacing-md);
    }
}

/* 이미지 최적화 관
련 스타일 */
.lazy {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.lazy.loaded {
    opacity: 1;
}

.img-error {
    filter: grayscale(1);
    opacity: 0.7;
}

/* 이미지 로딩 중 스켈레톤 효과 */
.image-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* 이미지 컨테이너 스타일 */
picture {
    display: inline-block;
    position: relative;
    width: 100%;
    height: 100%;
}

/* 이미지 로딩 최적화 */
img {
    max-width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
}

/* 이미지 로딩 상태 표시 */
.image-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
    z-index: 1;
}

/* 
성능 최적화 관련 스타일 */

/* 모션 감소 설정 */
.reduced-motion * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
}

/* 콘텐츠 가시성 최적화 */
.content-visibility-auto {
    content-visibility: auto;
    contain-intrinsic-size: 1px 1000px;
}

/* 레이아웃 변화 최소화 */
.result-image-container,
.intro-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

/* 렌더링 성능 최적화 */
.hardware-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
    will-change: transform;
}

/* 폰트 최적화 */
/* Pretendard 폰트는 CDN에서 로드하므로 @font-face 선언은 필요 없습니다 */
/* 폰트 표시 최적화 설정 */
html {
    font-display: swap;
}

/* 중요 렌더링 경로 최적화 */
.critical-path {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* 미디어 쿼리 최적화 */
@media screen and (max-width: 480px) {
    .container {
        padding: var(--spacing-sm);
    }

    .btn {
        padding: var(--spacing-xs) var(--spacing-md);
    }
}

/* 인라인 중요 CSS */
.main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.header {
    text-align: center;
    padding: var(--spacing-lg) 0;
}

.footer {
    padding: var(--spacing-lg) 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: var(--spacing-xl);
}

/* 반응형
 디자인 테스트 및 개선 */

/* 모바일 최적화 (480px 이하) */
@media (max-width: 480px) {
    .title {
        font-size: 1.4rem;
    }

    .intro-heading {
        font-size: 1.1rem;
    }

    .intro-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .btn-primary {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: 0.95rem;
    }

    .question-text {
        font-size: 1.1rem;
    }

    .option-btn {
        padding: var(--spacing-md);
        font-size: 0.95rem;
    }

    .result-title {
        font-size: 1.4rem;
    }

    .result-subtitle {
        font-size: 0.95rem;
    }

    .result-description p,
    .result-strengths li,
    .result-weaknesses li,
    .result-tips li {
        font-size: 0.9rem;
    }

    .share-buttons {
        flex-direction: column;
    }

    .btn-share {
        width: 100%;
        margin-bottom: var(--spacing-xs);
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn {
        width: 100%;
        margin-bottom: var(--spacing-sm);
    }
}

/* 태블릿 최적화 (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .container {
        max-width: 90%;
    }

    .intro-section {
        flex-direction: column;
    }

    .intro-content {
        margin-bottom: var(--spacing-lg);
    }

    .intro-image {
        max-width: 70%;
        margin: 0 auto;
    }

    .share-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-sm);
    }
}

/* 데스크톱 최적화 (769px 이상) */
@media (min-width: 769px) {
    .container {
        max-width: 800px;
    }

    .intro-section {
        flex-direction: row;
        align-items: center;
        gap: var(--spacing-xl);
    }

    .intro-content {
        flex: 1;
        text-align: left;
    }

    .intro-image {
        flex: 1;
    }

    .features {
        justify-content: flex-start;
    }

    .question-container {
        padding: var(--spacing-xl);
    }

    .option-btn {
        padding: var(--spacing-lg);
        font-size: 1.1rem;
    }

    .result-container {
        padding: var(--spacing-xl);
    }

    .share-buttons {
        display: flex;
        justify-content: center;
        gap: var(--spacing-md);
    }
}

/* 대형 화면 최적화 (1200px 이상) */
@media (min-width: 1200px) {
    .container {
        max-width: 1000px;
    }

    .title {
        font-size: 2.5rem;
    }

    .intro-heading {
        font-size: 1.8rem;
    }

    .intro-text {
        font-size: 1.4rem;
    }

    .btn-primary {
        padding: var(--spacing-md) var(--spacing-xxl);
        font-size: 1.2rem;
    }
}

/* 방향 전환 최적화 (가로/세로 모드) */
@media (orientation: portrait) {
    .intro-section {
        flex-direction: column;
    }

    .intro-image {
        margin-top: var(--spacing-lg);
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    .header {
        padding: var(--spacing-sm) 0;
    }

    .logo {
        max-width: 50px;
    }

    .title {
        font-size: 1.2rem;
    }

    .intro-section {
        flex-direction: row;
        align-items: center;
    }

    .intro-heading {
        font-size: 1rem;
    }

    .intro-text {
        font-size: 0.9rem;
        margin-bottom: var(--spacing-md);
    }

    .btn-primary {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: 0.9rem;
    }
}

/* 고해상도 디스플레이 최적화 */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    .logo,
    .illustration {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* 다크 모드 지원 */
@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #121212;
        --background-alt: #1e1e1e;
        --text-color: #000000;
        --text-secondary: #b0b0b0;
        --text-light: #909090;
        --white: #2a2a2a;
        --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.3);
    }

    body {
        background: linear-gradient(135deg, var(--background-color) 0%, #1a1a1a 100%);
        color: var(--text-color);
    }



    .option-btn {
        background-color: var(--white);
        border-color: var(--secondary-dark);
        color: var(--text-color);
    }

    .option-btn:hover {
        background-color: var(--background-alt);
    }

    .result-strengths {
        background-color: rgba(78, 205, 196, 0.2);
    }

    .result-weaknesses {
        background-color: rgba(255, 107, 107, 0.2);
    }

    .result-tips {
        background-color: rgba(255, 230, 109, 0.2);
    }
}

/* 접근성 관련 스타일 */

/* 키보드 포커스 스타일 */
.keyboard-focus {
    outline: 3px solid var(--primary-color) !important;
    outline-offset: 2px !important;
}

/* 포커스 표시 */
:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* 마우스 사용 시 포커스 표시 숨김 */
:focus:not(.keyboard-focus) {
    outline: none;
}

/* 스킵 내비게이션 */
.skip-link:focus {
    top: 0;
    left: 0;
    padding: 10px 15px;
    background-color: var(--primary-color);
    color: white;
    z-index: 9999;
    text-decoration: none;
    font-weight: bold;
}

/* 접근성 도움말 모달 */
.accessibility-modal {
    animation: fadeIn 0.3s ease-out;
}

/* 키보드 단축키 표시 */
kbd {
    display: inline-block;
    padding: 2px 6px;
    font-family: monospace;
    font-size: 0.9em;
    line-height: 1;
    color: var(--text-color);
    background-color: var(--background-color);
    border: 1px solid var(--text-light);
    border-radius: 3px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .2);
    margin: 0 2px;
}

/* 접근성 향상을 위한 포커스 순서 */
.option-btn {
    position: relative;
    z-index: 1;
}

.option-btn:focus {
    z-index: 2;
}

/* 접근성 향상을 위한 상태 표시 */
.option-btn[aria-pressed="true"] {
    font-weight: bold;
}

/* 접근성 향상을 위한 버튼 상태 표시 */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 접근성 향상을 위한 오류 메시지 */
.error-container {
    border-left: 4px solid #F44336;
    padding: var(--spacing-md);
    margin-top: var(--spacing-md);
    background-color: rgba(244, 67, 54, 0.1);
    color: #d32f2f;
}

/* 색
상 대비 최적화 스타일 */

/* 고대비 모드 지원 */
@media (prefers-contrast: more) {
    :root {
        --primary-color: #D32F2F;
        --primary-dark: #B71C1C;
        --primary-light: #F44336;
        --secondary-color: #00796B;
        --secondary-dark: #004D40;
        --secondary-light: #26A69A;
        --accent-color: #FFC107;
        --accent-dark: #FFA000;
        --accent-light: #FFECB3;
        --background-color: #FFFFFF;
        --background-alt: #F5F5F5;
        --text-color: #000000;
        --text-secondary: #212121;
        --text-light: #424242;
        --focus-outline-color: #000000;
        --focus-outline-width: 4px;
        --focus-outline-style: solid;
    }

    /* 텍스트 대비 강화 */
    body {
        color: #000000;
        background: #FFFFFF;
    }

    /* 링크 대비 강화 */
    a {
        color: #0000EE;
        text-decoration: underline;
    }

    a:visited {
        color: #551A8B;
    }

    a:hover,
    a:focus {
        color: #FF0000;
    }

    /* 버튼 대비 강화 */
    .btn {
        border: 2px solid #000000;
    }

    .btn-primary {
        background-color: #D32F2F;
        color: #FFFFFF;
        border-color: #000000;
    }

    .btn-secondary {
        background-color: #00796B;
        color: #FFFFFF;
        border-color: #000000;
    }

    .btn-share {
        background-color: #424242;
        color: #FFFFFF;
        border-color: #000000;
    }

    /* 포커스 표시 강화 */
    :focus {
        outline: 4px solid #000000;
        outline-offset: 2px;
    }

    /* 폼 요소 대비 강화 */
    input,
    select,
    textarea {
        border: 2px solid #000000;
        background-color: #FFFFFF;
        color: #000000;
    }

    /* 진행 상태 표시기 대비 강화 */
    .progress-bar {
        border: 2px solid #000000;
    }

    .progress-fill {
        background-color: #00796B;
    }

    /* 옵션 버튼 대비 강화 */
    .option-btn {
        border: 2px solid #000000;
        background-color: #FFFFFF;
        color: #000000;
    }

    .option-btn.selected {
        background-color: #00796B;
        color: #FFFFFF;
        border-color: #000000;
    }
}

/* 색상 반전 모드 지원 */
@media (prefers-color-scheme: dark) and (prefers-contrast: more) {
    :root {
        --primary-color: #FF6B6B;
        --primary-dark: #FF8A8A;
        --primary-light: #FF5252;
        --secondary-color: #4ECDC4;
        --secondary-dark: #6FD5CE;
        --secondary-light: #3DB9B1;
        --accent-color: #FFE66D;
        --accent-dark: #FFEE99;
        --accent-light: #FFD54F;
        --background-color: #121212;
        --background-alt: #1E1E1E;
        --text-color: #FFFFFF;
        --text-secondary: #E0E0E0;
        --text-light: #B0B0B0;
        --focus-outline-color: #FFFFFF;
        --focus-outline-width: 4px;
        --focus-outline-style: solid;
    }

    /* 텍스트 대비 강화 */
    body {
        color: #FFFFFF;
        background: #121212;
    }

    /* 링크 대비 강화 */
    a {
        color: #80CEFF;
        text-decoration: underline;
    }

    a:visited {
        color: #CC99FF;
    }

    a:hover,
    a:focus {
        color: #FF6B6B;
    }

    /* 버튼 대비 강화 */
    .btn {
        border: 2px solid #FFFFFF;
    }

    .btn-primary {
        background-color: #FF6B6B;
        color: #000000;
        border-color: #FFFFFF;
    }

    .btn-secondary {
        background-color: #4ECDC4;
        color: #000000;
        border-color: #FFFFFF;
    }

    .btn-share {
        background-color: #B0B0B0;
        color: #000000;
        border-color: #FFFFFF;
    }

    /* 포커스 표시 강화 */
    :focus {
        outline: 4px solid #FFFFFF;
        outline-offset: 2px;
    }

    /* 폼 요소 대비 강화 */
    input,
    select,
    textarea {
        border: 2px solid #FFFFFF;
        background-color: #2A2A2A;
        color: #FFFFFF;
    }

    /* 진행 상태 표시기 대비 강화 */
    .progress-bar {
        border: 2px solid #FFFFFF;
        background-color: #2A2A2A;
    }

    .progress-fill {
        background-color: #4ECDC4;
    }

    /* 옵션 버튼 대비 강화 */
    .option-btn {
        border: 2px solid #FFFFFF;
        background-color: #2A2A2A;
        color: #FFFFFF;
    }

    .option-btn.selected {
        background-color: #4ECDC4;
        color: #000000;
        border-color: #FFFFFF;
    }
}

/* 텍스트 크기 조정 지원 */
@media (prefers-reduced-motion: no-preference) {
    html {
        font-size: 100%;
    }

    @media (max-width: 480px) {
        html {
            font-size: 90%;
        }
    }

    @media (min-width: 1200px) {
        html {
            font-size: 110%;
        }
    }
}

/* 사용자 정의 색상 대비 클래스 */
.high-contrast {
    --primary-color: #D32F2F;
    --primary-dark: #B71C1C;
    --primary-light: #F44336;
    --secondary-color: #00796B;
    --secondary-dark: #004D40;
    --secondary-light: #26A69A;
    --accent-color: #FFC107;
    --accent-dark: #FFA000;
    --accent-light: #FFECB3;
    --background-color: #FFFFFF;
    --background-alt: #F5F5F5;
    --text-color: #000000;
    --text-secondary: #212121;
    --text-light: #424242;
    --focus-outline-color: #000000;
    --focus-outline-width: 4px;
    --focus-outline-style: solid;
}

/* 색상 대비 토글 버튼 */
.contrast-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--background-alt);
    border: 2px solid var(--text-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    box-shadow: var(--shadow-md);
}

.contrast-toggle::before {
    content: '🌓';
    font-size: 20px;
}

.high-contrast .contrast-toggle::before {
    content: '🌞';
}

/* ===== 법적 페이지 및 정보 페이지 스타일 ===== */

/* 법적 페이지 메인 컨테이너 */
.legal-content {
    width: 100%;
    max-width: 100%;
    animation: fadeIn 0.8s ease-out;
}

/* 네비게이션 섹션 */
.navigation-section {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-md) 0;
    border-bottom: 2px solid rgba(255, 209, 102, 0.3);
    flex-wrap: wrap;
}

.navigation-section .btn {
    min-width: 140px;
    text-align: center;
}

/* 법적 섹션 스타일 */
.legal-section {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    box-shadow: 0 4px 20px rgba(93, 64, 55, 0.1);
    border: 1px solid rgba(255, 209, 102, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.legal-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(93, 64, 55, 0.15);
}

.legal-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    opacity: 0.8;
}

/* 법적 섹션 제목 스타일 */
.legal-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--primary-light);
    position: relative;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.8);
}

.legal-section h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    border-radius: 2px;
}

.legal-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: var(--spacing-lg) 0 var(--spacing-md) 0;
    position: relative;
    padding-left: var(--spacing-md);
}

.legal-section h3::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.legal-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: var(--spacing-md) 0 var(--spacing-sm) 0;
}

/* 법적 섹션 텍스트 스타일 */
.legal-section p {
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
    font-weight: 400;
    text-align: justify;
}

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

/* 법적 섹션 리스트 스타일 */
.legal-section ul,
.legal-section ol {
    margin: var(--spacing-md) 0;
    padding-left: var(--spacing-xl);
}

.legal-section li {
    line-height: 1.7;
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
    position: relative;
}

.legal-section ul li::marker {
    color: var(--secondary-color);
    font-weight: bold;
}

.legal-section ol li::marker {
    color: var(--accent-color);
    font-weight: bold;
}

/* 중첩된 리스트 스타일 */
.legal-section ul ul,
.legal-section ol ol,
.legal-section ul ol,
.legal-section ol ul {
    margin: var(--spacing-xs) 0;
    padding-left: var(--spacing-lg);
}

.legal-section ul ul li::marker,
.legal-section ol ul li::marker {
    color: var(--primary-color);
}

/* 강조 텍스트 스타일 */
.legal-section strong {
    color: var(--text-color);
    font-weight: 700;
    background: linear-gradient(120deg, rgba(255, 209, 102, 0.3) 0%, rgba(255, 209, 102, 0.1) 100%);
    padding: 0 2px;
    border-radius: 2px;
}

.legal-section em {
    font-style: italic;
    color: var(--accent-color);
    font-weight: 500;
}

/* 연락처 정보 스타일 */
.contact-info {
    background: linear-gradient(135deg, rgba(168, 230, 207, 0.1), rgba(255, 209, 102, 0.1));
    border-radius: var(--border-radius-md);
    padding: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
    border-left: 4px solid var(--secondary-color);
    position: relative;
}

.contact-info::before {
    content: '📞';
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    font-size: 1.2rem;
}

.contact-info p {
    margin-left: var(--spacing-xl);
    margin-bottom: var(--spacing-sm);
}

.contact-info p:last-child {
    margin-bottom: 0;
}

.contact-info h3 {
    margin-left: var(--spacing-xl);
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
}

.contact-info ul {
    margin-left: var(--spacing-xl);
    list-style: none;
    padding: 0;
}

.contact-info li {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
}

/* 경고/주의 박스 스타일 */
.legal-section .warning-box,
.legal-section .info-box,
.legal-section .tip-box {
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    margin: var(--spacing-lg) 0;
    position: relative;
    border-left: 4px solid;
}

.legal-section .warning-box {
    background-color: rgba(255, 193, 7, 0.1);
    border-left-color: var(--warning-color);
}

.legal-section .info-box {
    background-color: rgba(168, 230, 207, 0.1);
    border-left-color: var(--info-color);
}

.legal-section .tip-box {
    background-color: rgba(255, 139, 148, 0.1);
    border-left-color: var(--accent-color);
}

/* 테이블 스타일 */
.legal-section table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--spacing-lg) 0;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(93, 64, 55, 0.1);
}

.legal-section th,
.legal-section td {
    padding: var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid rgba(255, 209, 102, 0.3);
}

.legal-section th {
    background-color: var(--primary-light);
    font-weight: 600;
    color: var(--text-color);
}

.legal-section tr:hover {
    background-color: rgba(255, 209, 102, 0.1);
}

/* 코드 블록 스타일 */
.legal-section code {
    background-color: rgba(255, 209, 102, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--text-secondary);
}

.legal-section pre {
    background-color: rgba(255, 255, 255, 0.9);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    overflow-x: auto;
    border-left: 4px solid var(--primary-color);
    margin: var(--spacing-lg) 0;
}

.legal-section pre code {
    background: none;
    padding: 0;
}

/* 링크 스타일 */
.legal-section a {
    color: var(--secondary-dark);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}

.legal-section a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

/* 날짜 및 버전 정보 스타일 */
.legal-section .version-info,
.legal-section .date-info {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    text-align: right;
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 209, 102, 0.3);
}

/* 반응형 디자인 - 모바일 */
@media (max-width: 480px) {
    .legal-section {
        padding: var(--spacing-lg);
        margin-bottom: var(--spacing-lg);
    }

    .legal-section h2 {
        font-size: 1.2rem;
        margin-bottom: var(--spacing-md);
    }

    .legal-section h3 {
        font-size: 1.1rem;
        margin: var(--spacing-md) 0 var(--spacing-sm) 0;
    }

    .legal-section ul,
    .legal-section ol {
        padding-left: var(--spacing-lg);
    }

    .navigation-section {
        flex-direction: column;
        align-items: center;
    }

    .navigation-section .btn {
        width: 100%;
        max-width: 280px;
    }

    .contact-info {
        padding: var(--spacing-md);
    }

    .contact-info p,
    .contact-info h3,
    .contact-info ul {
        margin-left: var(--spacing-lg);
    }

    .legal-section table {
        font-size: 0.9rem;
    }

    .legal-section th,
    .legal-section td {
        padding: var(--spacing-sm);
    }
}

/* 반응형 디자인 - 태블릿 */
@media (min-width: 481px) and (max-width: 768px) {
    .legal-section {
        padding: var(--spacing-xl);
    }

    .legal-section h2 {
        font-size: 1.3rem;
    }

    .navigation-section {
        justify-content: center;
    }
}

/* 반응형 디자인 - 데스크톱 */
@media (min-width: 769px) {
    .legal-section {
        padding: var(--spacing-xxl);
    }

    .legal-section h2 {
        font-size: 1.5rem;
    }

    .legal-section h3 {
        font-size: 1.3rem;
    }

    .navigation-section {
        justify-content: space-between;
        max-width: 400px;
        margin: var(--spacing-xl) auto;
    }
}

/* 인쇄 스타일 */
@media print {
    .legal-content {
        background: white;
    }

    .legal-section {
        background: white;
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }

    .navigation-section {
        display: none;
    }

    .legal-section::before {
        display: none;
    }
}

/* 접근성 향상 */
.legal-section:focus-within {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* 스크롤 애니메이션 */
.legal-section {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.legal-section:nth-child(2) {
    animation-delay: 0.1s;
}

.legal-section:nth-child(3) {
    animation-delay: 0.2s;
}

.legal-section:nth-child(4) {
    animation-delay: 0.3s;
}

.legal-section:nth-child(5) {
    animation-delay: 0.4s;
}

.legal-section:nth-child(6) {
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*
 브레드크럼 네비게이션 스타일 */
.breadcrumb-nav {
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-sm) 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: "›";
    margin: 0 var(--spacing-sm);
    color: var(--text-light);
    font-weight: bold;
}

.breadcrumb-link {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover,
.breadcrumb-link:focus {
    color: var(--secondary-dark);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--text-color);
    font-weight: 500;
}

/* 향상된 네비게이션 버튼 스타일 */
.navigation-section {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: var(--spacing-xl) 0;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    position: relative;
}

.btn-icon {
    font-size: 1.1em;
    line-height: 1;
}

.btn-text {
    font-weight: 500;
}

/* 키보드 포커스 스타일 강화 */
.breadcrumb-link:focus,
.home-btn:focus,
.navigation-section .btn:focus {
    outline: var(--focus-outline-width) var(--focus-outline-style) var(--focus-outline-color);
    outline-offset: 2px;
    border-radius: var(--border-radius-sm);
}

/* 키보드 네비게이션 표시 */
.keyboard-focus {
    outline: var(--focus-outline-width) var(--focus-outline-style) var(--focus-outline-color) !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 4px rgba(42, 157, 143, 0.2) !important;
}

/* 스킵 링크 스타일 개선 */
.skip-link {
    position: absolute;
    top: -40px;
    left: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--primary-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    z-index: 9999;
    transition: top 0.3s ease;
    box-shadow: var(--shadow-md);
}

.skip-link:focus {
    top: var(--spacing-md);
}

/* 모바일 반응형 네비게이션 */
@media (max-width: 768px) {
    .breadcrumb-nav {
        margin-bottom: var(--spacing-md);
    }

    .breadcrumb {
        font-size: 0.8rem;
    }

    .navigation-section {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .home-btn,
    .navigation-section .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* 고대비 모드 지원 */
@media (prefers-contrast: high) {
    .breadcrumb-link {
        color: var(--text-color);
        font-weight: 600;
    }

    .breadcrumb-item.active {
        font-weight: 700;
    }

    .keyboard-focus {
        outline-width: 4px !important;
        outline-color: #000000 !important;
    }
}

/* 애니메이션 감소 설정 */
@media (prefers-reduced-motion: reduce) {
    .skip-link {
        transition: none;
    }

    .breadcrumb-link,
    .home-btn,
    .navigation-section .btn {
        transition: none;
    }
}

/* 네비게이션 접근성 개선 */
.breadcrumb-nav[aria-label] {
    position: relative;
}

.navigation-section .btn[aria-label] {
    position: relative;
}

/* 터치 디바이스 지원 */
@media (hover: none) and (pointer: coarse) {

    .breadcrumb-link,
    .home-btn,
    .navigation-section .btn {
        min-height: 44px;
        min-width: 44px;
    }

    .breadcrumb-link {
        padding: var(--spacing-sm);
        border-radius: var(--border-radius-sm);
    }
}

/* 정보 링
크 스타일 */
.info-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
    transition: color 0.2s ease;
    display: inline-block;
    margin-top: var(--spacing-sm);
}

.info-link:hover,
.info-link:focus {
    color: var(--secondary-dark);
    text-decoration: underline;
}

/* SEO 최적화를 위한 추가 스타일 */
.legal-section[itemscope] {
    position: relative;
}

/* 구조화된 데이터 요소 스타일 */
[itemprop="headline"] {
    font-weight: 600;
}

[itemprop="description"] {
    line-height: 1.7;
}

/* 모바일에서 정보 링크 스타일 */
@media (max-width: 768px) {
    .info-link {
        font-size: 0.85em;
        display: block;
        text-align: center;
        margin-top: var(--spacing-md);
    }
}
/*
 공유 버튼 스타일 */
.share-container {
  margin: var(--spacing-lg) 0;
  padding: var(--spacing-lg);
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.share-container h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--text-color);
}

.share-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  justify-content: center;
  align-items: center;
}

.btn-share {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: 0.9rem;
  font-weight: 500;
  border: 2px solid transparent;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  min-width: 100px;
  justify-content: center;
}

.btn-share:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-share:active {
  transform: translateY(0);
}

/* 플랫폼별 색상 */
.btn-share#shareTwitter {
  background: #1DA1F2;
  color: white;
}

.btn-share#shareTwitter:hover {
  background: #0d8bd9;
}

.btn-share#shareThreads {
  background: #000000;
  color: white;
}

.btn-share#shareThreads:hover {
  background: #333333;
}

.btn-share#shareFacebook {
  background: #1877F2;
  color: white;
}

.btn-share#shareFacebook:hover {
  background: #166fe5;
}

.btn-share#copyLink {
  background: var(--secondary-color);
  color: var(--text-color);
}

.btn-share#copyLink:hover {
  background: var(--secondary-dark);
}

.share-icon {
  font-size: 1.1em;
  line-height: 1;
}

/* 모바일 반응형 */
@media (max-width: 480px) {
  .share-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-share {
    width: 100%;
    max-width: 200px;
  }
}

@media (max-width: 768px) {
  .share-buttons {
    gap: var(--spacing-xs);
  }
  
  .btn-share {
    font-size: 0.85rem;
    padding: var(--spacing-xs) var(--spacing-sm);
    min-width: 90px;
  }
}