* {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Malgun Gothic', '맑은 고딕', sans-serif;
}

.footer {
    background: #fff;
    border-top: 1px solid #eee;
    padding: 18px 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-logo {
    font-size: 20px;
    color: #374151;
    margin-bottom: 10px;
}

.footer-logo .dash {
    color: #FFDD20;
}

.footer-logo .cos {
    color: #40AAB8;
}

.footer-left p {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.7;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.footer-sns {
    display: flex;
    gap: 5px;
}

.sns-icon {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff !important;
    font-size: 11px;
    font-weight: 600;
    background: #bbb;
}

.sns-icon.sns-square {
    width: 30px;
    height: 30px;
    background: #6b7280;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    line-height: 1.2;
}

.sns-icon.sns-square.sns-red {
    background: #e53935;
}

.sns-icon.sns-square.sns-green {
    background: #43a047;
}

.sns-icon.sns-filled {
    background: #999;
    border-radius: 4px;
}

.sns-icon.sns-kakao {
    background: #40AAB8;
    border-radius: 50%;
}

.sns-icon.sns-blog {
    background: #888;
    border-radius: 4px;
    padding: 0 8px;
    width: auto;
}

.sns-icon.sns-patent {
    background: transparent;
    width: 30px;
    height: 30px;
    padding: 0;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #6b7280;
}

.footer-links a {
    color: #6b7280;
    text-decoration: none;
}

.footer-links a.bold {
    font-weight: 600;
    color: #374151;
}

.footer-links span {
    color: #6b7280;
}

.copyright {
    font-size: 11px;
    color: #6b7280;
}

/* 툴팁 스타일 */
.tooltip-wrapper {
    position: relative;
    display: inline-block;
}

.tooltip-trigger {
    cursor: pointer;
}

.tooltip-content {
    display: none;
    position: absolute;
    bottom: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 12px 16px;
    min-width: 280px;
    margin-bottom: 10px;
    z-index: 1000;
}

.tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 30px;
    border: 8px solid transparent;
    border-top-color: #fff;
}

.tooltip-content::before {
    content: '';
    position: absolute;
    top: 100%;
    right: 29px;
    border: 9px solid transparent;
    border-top-color: #ddd;
}

.tooltip-wrapper.active .tooltip-content {
    display: block;
}

.tooltip-header {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tooltip-close {
    cursor: pointer;
    font-size: 18px;
    color: #999;
    line-height: 1;
}

.tooltip-close:hover {
    color: #333;
}

.tooltip-body {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.6;
}

/* 이용약관 큰 툴팁 */
.tooltip-large {
    min-width: 450px;
    max-width: 500px;
}

.tooltip-scroll {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 8px;
}

.tooltip-scroll::-webkit-scrollbar {
    width: 5px;
}

.tooltip-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.tooltip-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.tooltip-scroll h4 {
    font-size: 11px;
    font-weight: 600;
    color: #374151;
    margin: 10px 0 5px 0;
}

.tooltip-scroll p {
    margin-bottom: 5px;
}

.tooltip-more {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #eee;
    text-align: right;
}

.tooltip-more a {
    color: #40AAB8;
    font-weight: 600;
    text-decoration: none;
}

.tooltip-more a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 20px;
    }
    .footer-right {
        align-items: flex-start;
    }
}
