/**
 * 파일명: style.css
 * 파일경로: /home/lastwithyou/public_html/assets/css/
 * 기능: 메인 스타일시트
 * 작성일: 2026-02-21
 */

/* ========================================
   기본 설정
   ======================================== */
:root {
    --lwy-primary: #1a1a2e;
    --lwy-secondary: #16213e;
    --lwy-accent: #e2b04a;
    --lwy-text: #333333;
    --lwy-text-light: #6c757d;
    --lwy-bg: #ffffff;
    --lwy-bg-light: #f8f9fa;
    --lwy-border: #dee2e6;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans KR', sans-serif;
    color: var(--lwy-text);
    background-color: var(--lwy-bg);
    line-height: 1.7;
}

/* ========================================
   네비게이션
   ======================================== */
.navbar {
    padding: 0.8rem 0;
    background: rgba(255, 255, 255, 1) !important;
    transition: padding 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
    z-index: 1030;
}

/* 스크롤 시: 패딩 축소 + 반투명 유리 효과 */
.navbar.scrolled {
    padding: 0.35rem 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.09);
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* 로고 */
.navbar-brand {
    color: var(--lwy-primary);
    font-size: 1.25rem;
    letter-spacing: -0.5px;
    transition: opacity 0.2s ease;
}

.navbar-brand:hover {
    color: var(--lwy-primary);
    opacity: 0.82;
}

/* 로고 하트 아이콘: 호버 시 회전 + 확대 */
.navbar-brand svg {
    color: var(--lwy-accent);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.navbar-brand:hover svg {
    transform: scale(1.35) rotate(-15deg);
}

/* 네비 링크 공통 */
.nav-link {
    color: var(--lwy-text);
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* 드롭다운 아닌 링크: 하단 밑줄 슬라이드 효과 */
.navbar-nav .nav-link:not(.dropdown-toggle) {
    position: relative;
    transition: color 0.22s ease;
}

.navbar-nav .nav-link:not(.dropdown-toggle)::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--lwy-primary);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.navbar-nav .nav-link:not(.dropdown-toggle):hover {
    color: var(--lwy-primary);
}

.navbar-nav .nav-link:not(.dropdown-toggle):hover::after {
    transform: scaleX(1);
}

/* 활성 메뉴: 골드 언더라인 */
.nav-link.active {
    color: var(--lwy-primary);
    font-weight: 600;
}

.navbar-nav .nav-link.active:not(.dropdown-toggle)::after {
    transform: scaleX(1);
    background: var(--lwy-accent);
}

/* 드롭다운 토글 호버 */
.navbar-nav .nav-link.dropdown-toggle {
    transition: color 0.22s ease;
}

.navbar-nav .nav-link.dropdown-toggle:hover {
    color: var(--lwy-primary);
}

/* 드롭다운 메뉴: 페이드인 + 둥근 모서리 */
.dropdown-menu {
    border: none;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.11);
    border-radius: 10px;
    padding: 0.5rem;
    animation: navDropFadeIn 0.2s ease;
    overflow: hidden;
}

@keyframes navDropFadeIn {
    from { opacity: 0; transform: translateY(-7px); }
    to   { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.88rem;
    border-radius: 6px;
    transition: background-color 0.15s ease, padding-left 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-item:hover {
    padding-left: 1.35rem;
    background-color: var(--lwy-bg-light);
    color: var(--lwy-primary);
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--lwy-primary);
    color: white;
}

/* Sign Up 버튼: 호버 시 골드 + 떠오르는 효과 */
#mainNav .btn-dark {
    border-radius: 20px;
    padding: 0.4rem 1.2rem;
    font-size: 0.85rem;
    transition: transform 0.22s ease, box-shadow 0.25s ease,
                background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

#mainNav .btn-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(26, 26, 46, 0.25);
    background-color: var(--lwy-accent);
    border-color: var(--lwy-accent);
    color: var(--lwy-primary);
    font-weight: 600;
}

/* ========================================
   메인 컨텐츠
   ======================================== */
main {
    min-height: calc(100vh - 200px);
}

/* ========================================
   카드 스타일
   ======================================== */
.lwy-card {
    background: var(--lwy-bg);
    border: 1px solid var(--lwy-border);
    border-radius: 8px;
    padding: 2rem;
}

/* ========================================
   폼 스타일
   ======================================== */
.form-control:focus,
.form-select:focus {
    border-color: var(--lwy-primary);
    box-shadow: 0 0 0 0.15rem rgba(26, 26, 46, 0.15);
}

.form-label {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
}

/* ========================================
   버튼 스타일
   ======================================== */
.btn-lwy-primary {
    background-color: var(--lwy-primary);
    border-color: var(--lwy-primary);
    color: #fff;
}

.btn-lwy-primary:hover {
    background-color: var(--lwy-secondary);
    border-color: var(--lwy-secondary);
    color: #fff;
}

.btn-lwy-accent {
    background-color: var(--lwy-accent);
    border-color: var(--lwy-accent);
    color: var(--lwy-primary);
    font-weight: 600;
}

.btn-lwy-accent:hover {
    background-color: #d4a23e;
    border-color: #d4a23e;
    color: var(--lwy-primary);
}

/* ========================================
   알림 메시지
   ======================================== */
.lwy-alert {
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.lwy-alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.lwy-alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.lwy-alert-info {
    background-color: #e8f4f8;
    color: #1a5276;
    border: 1px solid #bee5eb;
}

/* ========================================
   용량 바
   ======================================== */
.storage-bar {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.storage-bar-fill {
    height: 100%;
    background-color: var(--lwy-primary);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.storage-bar-fill.warning {
    background-color: #e67e22;
}

.storage-bar-fill.danger {
    background-color: #e74c3c;
}

/* ========================================
   콘텐츠 관리 탭
   ======================================== */
.content-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #dee2e6;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.content-tabs::-webkit-scrollbar {
    display: none;
}

.content-tab {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1.1rem;
    text-decoration: none;
    color: #6c757d;
    font-size: 0.88rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s;
}

.content-tab:hover {
    color: var(--lwy-dark, #1a1a2e);
}

.content-tab.active {
    color: var(--lwy-dark, #1a1a2e);
    border-bottom-color: var(--lwy-primary, #e2b04a);
    font-weight: 600;
}

.content-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    background: #f0f0f0;
    border-radius: 10px;
    padding: 0 6px;
}

.content-tab.active .content-tab-count {
    background: var(--lwy-primary, #e2b04a);
    color: var(--lwy-dark, #1a1a2e);
}

@media (max-width: 576px) {
    .content-tab {
        padding: 0.6rem 0.8rem;
        font-size: 0.82rem;
    }

    .content-tab-label {
        display: none;
    }

    .content-tab-count {
        font-size: 0.65rem;
        min-width: 18px;
        height: 18px;
    }
}

/* ========================================
   푸터
   ======================================== */
footer h6 {
    font-size: 0.9rem;
}

footer a:hover {
    color: var(--lwy-primary) !important;
}

/* ========================================
   스크롤 Top 버튼 (원형 진행률 표시)
   ======================================== */
#scrollTopBtn {
    position: fixed;
    bottom: 28px;
    right: 24px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 990;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

#scrollTopBtn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scrollTopBtn:hover {
    transform: translateY(-3px);
}

/* 원형 배경 */
.scroll-top-bg {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--lwy-primary);
    box-shadow: 0 4px 16px rgba(26, 26, 46, 0.28);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

#scrollTopBtn:hover .scroll-top-bg {
    background: var(--lwy-secondary);
    box-shadow: 0 6px 22px rgba(26, 26, 46, 0.4);
}

/* SVG 진행률 링 */
.scroll-progress-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg); /* 12시 방향에서 시작 */
}

.scroll-progress-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.18);
    stroke-width: 3;
}

.scroll-progress-fill {
    fill: none;
    stroke: var(--lwy-accent);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 113.1;   /* 2π × r(18) */
    stroke-dashoffset: 113.1;  /* 시작 시 숨김 */
    transition: stroke-dashoffset 0.12s linear;
}

/* 아이콘 + 퍼센트 세로 정렬 컨테이너 */
.scroll-top-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    pointer-events: none;
    user-select: none;
}

/* 화살표 아이콘 */
.scroll-top-arrow {
    width: 14px;
    height: 14px;
    color: rgba(255, 255, 255, 0.95);
    stroke-width: 2.8;
    display: block;
}

#scrollTopBtn:hover .scroll-top-arrow {
    animation: arrowBounce 0.45s ease forwards;
}

@keyframes arrowBounce {
    0%   { transform: translateY(0); }
    35%  { transform: translateY(-4px); }
    65%  { transform: translateY(-1px); }
    100% { transform: translateY(-2px); }
}

/* 퍼센트 텍스트 */
.scroll-top-pct {
    font-size: 9px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1;
    letter-spacing: -0.3px;
}

/* ========================================
   유틸리티
   ======================================== */
.text-accent {
    color: var(--lwy-accent);
}

.bg-accent {
    background-color: var(--lwy-accent);
}

.small-note {
    font-size: 0.8rem;
    color: var(--lwy-text-light);
}

/* ========================================
   반응형
   ======================================== */
@media (max-width: 768px) {
    .lwy-card {
        padding: 1.2rem;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }
}

/* ========================================
   업로드 드롭존
   ======================================== */
.upload-dropzone {
    border: 2px dashed var(--lwy-border);
    border-radius: 8px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s;
}

.upload-dropzone.dragover {
    border-color: var(--lwy-primary);
    background-color: #f8f9fa;
}

.upload-dropzone-content p {
    margin-bottom: 0;
    color: var(--lwy-text-light);
}

.upload-file-info {
    text-align: left;
    padding: 0.5rem 0;
}

/* ========================================
   편지 작성 텍스트영역
   ======================================== */
.write-textarea {
    font-family: 'Georgia', 'Noto Serif KR', serif;
    font-size: 1.05rem;
    line-height: 2;
    min-height: 400px;
    resize: vertical;
}

/* ========================================
   랜딩 페이지
   ======================================== */
.landing-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    color: #ffffff;
    padding: 80px 0 60px;
    background: var(--lwy-primary) url('/assets/images/hero_bg.webp') center center / cover no-repeat;
    overflow: hidden;
}

/* 히어로 반투명 오버레이 — 왼쪽 텍스트 가독성 확보 */
.landing-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(26, 26, 46, 0.82) 0%,
        rgba(26, 26, 46, 0.55) 50%,
        rgba(26, 26, 46, 0.2) 100%
    );
    z-index: 1;
}

/* 콘텐츠를 오버레이 위로 */
.landing-hero > .container {
    position: relative;
    z-index: 2;
}

.landing-hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}


.landing-hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 2rem;
    max-width: 520px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}


.landing-hero-actions .btn {
    font-size: 0.95rem;
    border-radius: 6px;
}

.landing-section {
    padding: 40px 0;
}

.landing-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--lwy-primary);
    margin-bottom: 0.5rem;
}

.landing-section-desc {
    color: var(--lwy-text-light);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-size: 1rem;
    line-height: 1.7;
}

/* Trust indicators */
.landing-trust {
    padding: 48px 0;
    background-color: var(--lwy-bg-light);
    border-bottom: 1px solid var(--lwy-border);
}

.landing-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.landing-trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background-color: #fff;
    border: 1px solid var(--lwy-border);
    border-radius: 14px;
    color: var(--lwy-primary);
}

.landing-trust-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--lwy-primary);
    line-height: 1;
}

.landing-trust-label {
    font-size: 0.82rem;
    color: #495057;
    line-height: 1.3;
}


/* Step cards */
.landing-step-card {
    padding: 2rem 1.5rem;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
    border: 1px solid var(--lwy-border);
}

.landing-step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.landing-step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.landing-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: var(--lwy-accent);
    color: var(--lwy-primary);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.landing-step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background-color: #f5f5fa;
    border-radius: 14px;
    color: var(--lwy-primary);
}


/* Pricing cards */
.pricing-card {
    background: #fff;
    border: 1px solid var(--lwy-border);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    position: relative;
    transition: box-shadow 0.2s ease;
}

.pricing-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.pricing-card.featured {
    border: 2px solid var(--lwy-accent);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--lwy-accent);
    color: var(--lwy-primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--lwy-primary);
    margin: 1rem 0;
}

.pricing-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--lwy-text);
}

.pricing-feature.disabled {
    color: var(--lwy-text-light);
    text-decoration: line-through;
}

.pricing-detail-link {
    margin-left: 4px;
    color: #6c63ff;
    flex-shrink: 0;
    line-height: 1;
    transition: color 0.2s;
}

.pricing-detail-link:hover {
    color: #4a42d4;
}

/* Premium Feature Cards */
.premium-feature-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 2rem 2rem 1.75rem;
    height: 100%;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.premium-feature-card:hover {
    box-shadow: 0 8px 30px rgba(79, 70, 229, 0.1);
    transform: translateY(-2px);
}

.premium-feature-icon {
    width: 56px;
    height: 56px;
    background: #ede9fe;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4F46E5;
    margin-bottom: 1.25rem;
}

.premium-feature-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--lwy-primary);
    margin-bottom: 0.75rem;
}

.premium-feature-bullets {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.premium-feature-bullets li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--lwy-text);
    padding: 4px 0;
}

.premium-feature-bullets li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4F46E5;
    flex-shrink: 0;
}

/* CTA section */
.landing-cta {
    background-color: var(--lwy-primary);
    padding: 60px 0;
}

/* FAQ section */
.faq-section {
    padding: 80px 0;
    background-color: var(--lwy-bg-light);
}

.faq-item {
    background: #fff;
    border: 1px solid var(--lwy-border);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--lwy-primary);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}

.faq-question:hover {
    background-color: #fafafa;
}

.faq-answer {
    padding: 0 1.5rem 1.2rem;
    color: var(--lwy-text-light);
    font-size: 0.9rem;
    line-height: 1.7;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
}

.faq-chevron {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

/* Gift Premium Banner */
.gift-premium-banner {
    background: linear-gradient(135deg, #fdf6e3 0%, #fff8e7 50%, #fef3d0 100%);
    border: 1px solid #f0e0b0;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 0;
}

.gift-premium-banner .gift-icon {
    width: 48px;
    height: 48px;
    background: #e2b04a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.gift-premium-stats {
    display: flex;
    gap: 2rem;
    margin: 0.5rem 0;
}

.gift-premium-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gift-premium-stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--lwy-primary);
}

.gift-premium-stat-label {
    font-size: 0.85rem;
    color: var(--lwy-text-light);
}

/* Donation total display */
.donation-total {
    transition: all 0.2s ease;
}

.donation-total-amount {
    font-size: 1.1rem;
    color: var(--lwy-primary);
}

/* ========================================
   랜딩 페이지 반응형
   ======================================== */
@media (max-width: 991px) {
    .landing-hero {
        min-height: 440px;
        padding: 60px 0 50px;
        background-position: 60% center;
    }

    .landing-hero-title {
        font-size: 2.2rem;
    }
}


@media (max-width: 768px) {
    .landing-hero {
        min-height: 400px;
        padding: 50px 0 40px;
        text-align: center;
        background-position: 65% center;
    }

    .landing-hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(26, 26, 46, 0.8) 0%,
            rgba(26, 26, 46, 0.6) 100%
        );
    }

    .landing-hero-title {
        font-size: 1.9rem;
    }

    .landing-hero-subtitle {
        font-size: 0.95rem;
        margin-left: auto;
        margin-right: auto;
    }

    .landing-hero-actions {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .landing-hero-actions .btn {
        width: 100%;
    }

    .landing-hero-actions .ms-2 {
        margin-left: 0 !important;
    }


    .landing-section {
        padding: 50px 0;
    }

    .landing-section-title {
        font-size: 1.5rem;
    }

    .pricing-card {
        padding: 2rem 1.5rem;
    }

    .faq-question {
        font-size: 0.9rem;
        padding: 1rem 1.2rem;
    }

    .faq-section {
        padding: 50px 0;
    }

    .landing-trust-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .landing-trust-number {
        font-size: 1.2rem;
    }

    .landing-trust-label {
        font-size: 0.72rem;
    }

    .gift-premium-banner {
        padding: 1.2rem 1rem;
        text-align: center;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .gift-premium-banner > .d-flex {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .gift-premium-stats {
        flex-direction: column;
        gap: 0.5rem;
        justify-content: center;
    }

    .gift-premium-stat {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .landing-hero {
        min-height: 360px;
        padding: 40px 0 32px;
    }

    .landing-hero-title {
        font-size: 1.6rem;
    }

    .pricing-price {
        font-size: 2rem;
    }
}


/* ========================================
   법적 페이지 (이용약관, 개인정보처리방침)
   ======================================== */
.legal-hero {
    background-color: var(--lwy-primary);
    color: #ffffff;
    padding: 60px 0 50px;
    text-align: center;
}

.legal-hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.legal-hero .legal-updated {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.legal-content {
    padding: 60px 0;
    background-color: var(--lwy-bg-light);
}

.legal-card {
    background: #fff;
    border: 1px solid var(--lwy-border);
    border-radius: 12px;
    padding: 2rem 2.5rem;
    margin-bottom: 1rem;
    transition: box-shadow 0.2s ease;
}

.legal-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.legal-card h5 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--lwy-primary);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.legal-card h5 .legal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #f5f5fa;
    border-radius: 10px;
    color: var(--lwy-primary);
    flex-shrink: 0;
}

.legal-card p {
    color: var(--lwy-text-light);
    font-size: 0.92rem;
    line-height: 1.8;
    margin-bottom: 0;
}

.legal-card ul {
    color: var(--lwy-text-light);
    font-size: 0.92rem;
    line-height: 1.8;
    padding-left: 1.2rem;
    margin-bottom: 0;
}

.legal-nav {
    position: sticky;
    top: 80px;
}

.legal-nav a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: var(--lwy-text-light);
    text-decoration: none;
    border-left: 2px solid var(--lwy-border);
    transition: all 0.2s ease;
}

.legal-nav a:hover,
.legal-nav a.active {
    color: var(--lwy-primary);
    border-left-color: var(--lwy-accent);
    font-weight: 600;
}

.legal-cta {
    background-color: var(--lwy-primary);
    padding: 50px 0;
    text-align: center;
}

@media (max-width: 991px) {
    .legal-hero {
        padding: 50px 0 40px;
    }

    .legal-hero h1 {
        font-size: 1.8rem;
    }

    .legal-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .legal-hero {
        padding: 40px 0 30px;
    }

    .legal-hero h1 {
        font-size: 1.5rem;
    }

    .legal-content {
        padding: 40px 0;
    }

    .legal-card {
        padding: 1.5rem;
    }

    .legal-card h5 {
        font-size: 0.95rem;
    }
}

