/* ==========================================
   푸터 모달 스타일
   ========================================== */

.footer-modal .modal-content {
    max-width: 800px;
    max-height: 80vh;
}

.modal-content-scroll {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
}

/* 스크롤바 스타일 */
.modal-content-scroll::-webkit-scrollbar {
    width: 8px;
}

.modal-content-scroll::-webkit-scrollbar-track {
    background: #18181b;
    border-radius: 4px;
}

.modal-content-scroll::-webkit-scrollbar-thumb {
    background: #3f3f46;
    border-radius: 4px;
}

.modal-content-scroll::-webkit-scrollbar-thumb:hover {
    background: #52525b;
}

/* ==========================================
   API 문서 스타일
   ========================================== */

.api-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #27272a;
}

.api-section:last-child {
    border-bottom: none;
}

.api-section h4 {
    color: #3b82f6;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.api-section h5 {
    color: #a1a1aa;
    margin: 1rem 0 0.5rem 0;
    font-size: 0.9375rem;
}

.code-block {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 6px;
    padding: 1rem;
    margin: 0.75rem 0;
    font-family: 'Courier New', monospace;
}

.code-block code {
    color: #10b981;
    font-size: 0.9375rem;
}

.api-section pre {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 6px;
    padding: 1rem;
    margin: 0.75rem 0;
    overflow-x: auto;
    font-size: 0.875rem;
    color: #a1a1aa;
    line-height: 1.6;
}

.api-note {
    color: #71717a;
    font-size: 0.875rem;
    font-style: italic;
    margin-top: 0.5rem;
}

.api-note code {
    background: #18181b;
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
    color: #3b82f6;
}

.api-notice {
    background: rgba(59, 130, 246, 0.1);
    border-left: 3px solid #3b82f6;
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.api-notice strong {
    color: #3b82f6;
    display: block;
    margin-bottom: 0.5rem;
}

.api-notice ul {
    margin: 0.5rem 0 0 1.5rem;
    color: #a1a1aa;
}

.api-contact {
    text-align: center;
    padding: 2rem;
    background: #18181b;
    border-radius: 8px;
    margin-top: 2rem;
}

.api-contact p {
    margin-bottom: 1rem;
    color: #a1a1aa;
}

/* ==========================================
   이용약관/개인정보처리방침 스타일
   ========================================== */

.terms-section,
.privacy-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #27272a;
}

.terms-section:last-of-type,
.privacy-section:last-of-type {
    border-bottom: none;
}

.terms-section h4,
.privacy-section h4 {
    color: #3b82f6;
    margin-bottom: 1rem;
    font-size: 1.0625rem;
}

.terms-section p,
.privacy-section p {
    color: #a1a1aa;
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.terms-section ul,
.privacy-section ul {
    margin: 0.75rem 0 0.75rem 1.5rem;
    color: #a1a1aa;
    line-height: 1.8;
}

.terms-section li,
.privacy-section li {
    margin-bottom: 0.5rem;
}

.terms-section strong,
.privacy-section strong {
    color: #e4e4e7;
}

.terms-footer,
.privacy-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #27272a;
    text-align: center;
    color: #71717a;
}

.terms-date,
.privacy-date {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #52525b;
}

/* ==========================================
   문의하기 폼 스타일
   ========================================== */

.contact-form {
    padding: 1rem;
}

.contact-form h3 {
    margin-bottom: 0.5rem;
    color: #e4e4e7;
}

.contact-description {
    color: #a1a1aa;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #e4e4e7;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: #18181b;
    border: 1px solid #3f3f46;
    border-radius: 6px;
    color: #e4e4e7;
    font-size: 0.9375rem;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.contact-buttons button {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: #27272a;
    color: #a1a1aa;
}

.btn-secondary:hover {
    background: #3f3f46;
    color: #e4e4e7;
}

.contact-info {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #27272a;
}

.contact-info h4 {
    color: #e4e4e7;
    margin-bottom: 1rem;
}

.contact-info p {
    color: #a1a1aa;
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-info a:hover {
    color: #60a5fa;
    text-decoration: underline;
}

/* ==========================================
   반응형
   ========================================== */

@media (max-width: 768px) {
    .footer-modal .modal-content {
        max-width: 95%;
        max-height: 90vh;
    }

    .modal-content-scroll {
        max-height: 70vh;
    }

    .api-section pre {
        font-size: 0.75rem;
        padding: 0.75rem;
    }

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

    .contact-buttons button {
        width: 100%;
    }
}
