/* 공통 CSS - 네비게이션, 푸터, 법률 페이지 스타일 */

/* 네비게이션이 있는 페이지의 body 패딩 조정 */
body:has(.main-nav) {
  padding-top: 0;
}

/* 네비게이션 - BMW Premium Style */
.main-nav {
  background: linear-gradient(180deg, rgba(20, 20, 23, 0.98) 0%, rgba(13, 13, 15, 0.95) 100%);
  border-bottom: 1px solid rgba(28, 105, 212, 0.15);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3), 0 1px 0 rgba(255, 255, 255, 0.02) inset;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.nav-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-logo:hover {
  color: #1C69D4;
  text-shadow: 0 0 20px rgba(28, 105, 212, 0.5);
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.nav-menu li a {
  text-decoration: none;
  color: #B0B8C1;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s ease;
  padding: 8px 0;
  position: relative;
}

.nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #1C69D4, #4A90E2);
  box-shadow: 0 0 10px rgba(28, 105, 212, 0.5);
  transition: width 0.3s ease;
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
  width: 100%;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  color: #1C69D4;
  text-shadow: 0 0 15px rgba(28, 105, 212, 0.4);
}

/* 모바일 네비게이션 */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1A1A1A;
    flex-direction: column;
    padding: 16px 20px;
    gap: 16px;
    border-bottom: 1px solid #333;
  }

  .nav-menu.active {
    display: flex;
  }
}

/* 푸터 - BMW Premium Style */
.main-footer {
  background: linear-gradient(180deg, rgba(13, 13, 15, 0.95) 0%, rgba(10, 10, 12, 1) 100%);
  border-top: 1px solid rgba(28, 105, 212, 0.1);
  padding: 40px 20px;
  margin-top: 60px;
  position: relative;
}

.main-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(28, 105, 212, 0.5), transparent);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  margin-bottom: 20px;
}

.footer-links a {
  color: #8B95A1;
  text-decoration: none;
  margin: 0 16px;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #1C69D4;
}

.footer-disclaimer {
  font-size: 13px;
  color: #6B7684;
  margin-bottom: 12px;
  line-height: 1.6;
}

.footer-copyright {
  font-size: 12px;
  color: #4E5968;
}

/* 법률/정책 페이지 스타일 */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.legal-page h1 {
  font-size: 32px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.legal-page .updated {
  font-size: 14px;
  color: #8B95A1;
  margin-bottom: 40px;
}

.legal-page section {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.legal-page section h2 {
  font-size: 18px;
  font-weight: 700;
  color: #191F28;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #F2F4F6;
}

.legal-page section h3 {
  font-size: 16px;
  font-weight: 600;
  color: #333D4B;
  margin: 20px 0 12px;
}

.legal-page section p {
  font-size: 15px;
  color: #4E5968;
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-page section ul,
.legal-page section ol {
  margin: 12px 0;
  padding-left: 24px;
}

.legal-page section li {
  font-size: 15px;
  color: #4E5968;
  line-height: 1.8;
  margin-bottom: 8px;
}

.legal-page section a {
  color: #1C69D4;
  text-decoration: none;
}

.legal-page section a:hover {
  text-decoration: underline;
}

.legal-page section a.btn {
  color: inherit;
}

.legal-page section a.btn-primary {
  color: #FFFFFF;
}

.legal-page section a.btn-primary:hover {
  text-decoration: none;
}

/* 정보 박스 */
.info-box {
  background: #F8FAFB;
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0;
  border-left: 4px solid #1C69D4;
}

.info-box.warning {
  border-left-color: #FF9500;
  background: #FFFBF5;
}

/* About 페이지 */
.about-page .feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.about-page .feature-card {
  background: #F8FAFB;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.about-page .feature-card .icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.about-page .feature-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: #191F28;
  margin-bottom: 8px;
}

.about-page .feature-card p {
  font-size: 14px;
  color: #6B7684;
  margin: 0;
}

/* Contact 페이지 */
.contact-page .contact-method {
  background: #F8FAFB;
  border-radius: 12px;
  padding: 24px;
  margin: 16px 0;
}

.contact-page .contact-method h3 {
  margin-top: 0;
}

.contact-page .contact-form .form-group {
  margin-bottom: 20px;
}

.contact-page .contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333D4B;
  margin-bottom: 8px;
}

.contact-page .contact-form input,
.contact-page .contact-form select,
.contact-page .contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #E5E8EB;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-page .contact-form input:focus,
.contact-page .contact-form select:focus,
.contact-page .contact-form textarea:focus {
  outline: none;
  border-color: #1C69D4;
  box-shadow: 0 0 0 3px rgba(49, 130, 246, 0.1);
}

.contact-page .contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

/* FAQ 페이지 */
.faq-page .faq-section {
  margin-bottom: 32px;
}

.faq-page .faq-section h3 {
  font-size: 16px;
  font-weight: 700;
  color: #1C69D4;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.faq-page .faq-item {
  border-bottom: 1px solid #E5E8EB;
}

.faq-page .faq-item:last-child {
  border-bottom: none;
}

.faq-page .faq-item summary {
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  color: #191F28;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-page .faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-page .faq-item summary::after {
  content: '+';
  font-size: 20px;
  color: #8B95A1;
  transition: transform 0.2s;
}

.faq-page .faq-item[open] summary::after {
  content: '−';
}

.faq-page .faq-answer {
  padding: 0 0 20px;
  color: #4E5968;
  line-height: 1.8;
}

/* 404 페이지 */
.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
}

.error-page h1 {
  font-size: 120px;
  font-weight: 800;
  color: #1C69D4;
  margin-bottom: 16px;
  line-height: 1;
}

.error-page h2 {
  font-size: 28px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.error-page p {
  font-size: 16px;
  color: #8B95A1;
  margin-bottom: 32px;
}

.error-page .error-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* 버튼 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: #1C69D4;
  color: #FFFFFF;
}

.btn-primary:hover {
  background: #0653B6;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #F2F4F6;
  color: #4E5968;
}

.btn-secondary:hover {
  background: #E5E8EB;
}

/* DISABLED: 광고 영역 placeholder
.ad-container {
  width: 100%;
  min-height: 90px;
  margin: 24px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed #444;
  border-radius: 8px;
}

.ad-container::before {
  content: '광고 영역';
  color: #666;
  font-size: 13px;
}

.ad-container.ad-active {
  background: transparent;
  border: none;
  min-height: auto;
}

.ad-container.ad-active::before {
  content: none;
}

@media (max-width: 768px) {
  .ad-container {
    min-height: 60px;
  }
}
*/

/* 반응형 */
@media (max-width: 768px) {
  .legal-page h1 {
    font-size: 26px;
  }

  .legal-page section {
    padding: 20px;
  }

  .error-page h1 {
    font-size: 80px;
  }

  .error-page h2 {
    font-size: 22px;
  }
}
