/* =============== LEGAL INFO PAGE STYLES =============== */

/* Floating Side Navigation */
.floating-nav {
    position: fixed;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    transition: var(--transition);
}

.floating-nav__menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(44, 62, 103, 0.1);
}

.floating-nav__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background-color: transparent;
    border: none;
    border-left: 3px solid transparent;
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    white-space: nowrap;
    text-decoration: none;
    font-family: 'Noto Sans KR', sans-serif;
}

.floating-nav__item i {
    font-size: 1.1rem;
    color: var(--accent-color);
    transition: var(--transition);
    width: 20px;
    text-align: center;
}

.floating-nav__item span {
    transition: var(--transition);
}

.floating-nav__item:hover {
    background-color: rgba(135, 206, 235, 0.1);
    border-left-color: var(--sky-blue);
    transform: translateX(5px);
}

.floating-nav__item:hover i {
    color: var(--sky-blue);
}

.floating-nav__item:hover span {
    color: var(--sky-blue);
}

.floating-nav__item.active {
    background-color: rgba(44, 62, 103, 0.05);
    border-left-color: var(--accent-color);
    font-weight: 600;
}

.floating-nav__item.active i {
    color: var(--accent-color);
}

.floating-nav__item.active span {
    color: var(--accent-color);
}

/* Hide on mobile */
@media screen and (max-width: 968px) {
    .floating-nav {
        display: none;
    }
}

/* Page Hero */
.page-hero {
    background: var(--primary-color);
    color: var(--text-white);
    padding: 8rem 0 5rem;
    margin-top: var(--header-height);
    text-align: center;
}

.page-hero__title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--text-white);
    animation: fadeInUp 0.8s ease-out;
}

.page-hero__subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* Anchor Navigation */
.anchor-nav-section {
    background-color: var(--bg-white);
    position: sticky;
    top: var(--header-height);
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.tab-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tab-btn {
    background-color: var(--bg-white);
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.tab-btn i {
    font-size: 1.25rem;
}

.tab-btn.active,
.tab-btn:active,
.tab-btn:focus {
    background-color: var(--accent-color);
    color: var(--text-white);
    border-color: var(--accent-color);
}

.tab-btn:hover {
    background-color: transparent;
    color: var(--sky-blue);
    border-color: var(--sky-blue);
    transform: translateY(-2px);
}

/* Section Backgrounds */
.youtube-shorts,
.blog-section,
.downloads-section {
    background-color: var(--bg-white);
}

/* YouTube Shorts */
.shorts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.short-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.short-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.short-card__thumbnail {
    position: relative;
    overflow: hidden;
}

.placeholder-video {
    width: 100%;
    height: 400px;
    background: #ff0000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 4rem;
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--text-white);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.short-card__content {
    padding: 1.5rem;
}

.short-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.short-card__category {
    display: inline-block;
    background-color: var(--sky-blue);
    color: var(--text-white);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.short-card__meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.short-card__meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.short-card__meta i {
    color: var(--sky-blue);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.blog-card__image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    opacity: 1 !important;
    visibility: visible !important;
}

.blog-card:hover .blog-card__image img {
    transform: scale(1.05);
}

.blog-card__category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--sky-blue);
    color: var(--text-white);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.blog-card__content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card__meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.blog-card__meta i {
    color: var(--sky-blue);
}

.blog-card__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-card__excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
}

.blog-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.blog-card__link:hover {
    color: var(--sky-blue);
    gap: 1rem;
}

/* Downloads Grid */
.downloads-grid {
    display: grid;
    gap: 3rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.download-category {
    background-color: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.download-category__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.download-category__title i {
    color: var(--sky-blue);
    font-size: 2rem;
}

.download-list {
    display: grid;
    gap: 1.5rem;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.download-item:hover {
    border-color: var(--sky-blue);
    box-shadow: var(--shadow);
    transform: translateX(5px);
}

.download-item__icon {
    width: 60px;
    height: 60px;
    background: var(--sky-blue);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.75rem;
    flex-shrink: 0;
}

.download-item__icon .fa-file-pdf {
    color: #e53e3e;
    background-color: var(--text-white);
    padding: 0.5rem;
    border-radius: 4px;
}

.download-item__icon .fa-file-word {
    color: #2b6cb0;
    background-color: var(--text-white);
    padding: 0.5rem;
    border-radius: 4px;
}

.download-item__icon .fa-file-excel {
    color: #38a169;
    background-color: var(--text-white);
    padding: 0.5rem;
    border-radius: 4px;
}

.download-item__info {
    flex: 1;
}

.download-item__info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.download-item__info p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.download-item__size {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 600;
}

.download-item__btn {
    background: var(--sky-blue);
    color: var(--text-white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.download-item__btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Document Grid */
.document-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.document-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.document-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.document-card__image {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.document-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.document-card:hover .document-card__image img {
    transform: scale(1.05);
}

.document-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.document-card:hover .document-card__overlay {
    opacity: 1;
}

.document-download-btn {
    background-color: var(--bg-white);
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
    transform: translateY(20px);
}

.document-card:hover .document-download-btn {
    transform: translateY(0);
}

.document-download-btn:hover {
    background-color: var(--accent-color);
    color: var(--text-white);
    transform: scale(1.05);
}

.document-download-btn:active,
.document-download-btn:focus {
    background-color: var(--sky-blue);
    color: var(--text-white);
    border-color: var(--sky-blue);
    transform: scale(1);
}

.document-download-btn i {
    font-size: 1.2rem;
}

.document-card__content {
    padding: 2rem;
}

.document-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.document-badge.franchise {
    background-color: #8b5cf6;
}

.document-badge.construction {
    background-color: #f59e0b;
}

.document-badge.realestate {
    background-color: #10b981;
}

.document-badge.general {
    background-color: var(--sky-blue);
}

.document-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.document-card__desc {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.document-card__meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.document-card__meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.document-card__meta i {
    font-size: 1rem;
    color: var(--sky-blue);
}

/* Download Board */
.download-board {
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.board-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.board-table thead {
    background-color: var(--primary-color);
}

.board-table thead th {
    color: var(--text-white);
    padding: 1.25rem 1rem;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: left;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.board-table thead th:first-child {
    text-align: center;
    width: 80px;
}

.board-table thead th:nth-child(2) {
    width: 140px;
}

.board-table thead th:nth-child(4) {
    text-align: center;
    width: 120px;
}

.board-table thead th:nth-child(5) {
    text-align: center;
    width: 120px;
}

.board-table thead th:last-child {
    text-align: center;
    width: 140px;
}

.board-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.board-table tbody tr:hover {
    background-color: var(--bg-light);
}

.board-table tbody tr:last-child {
    border-bottom: none;
}

.board-table tbody td {
    padding: 1.5rem 1rem;
    vertical-align: middle;
}

.board-table tbody td:first-child {
    text-align: center;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.95rem;
}

.board-category-badge {
    display: inline-block;
    background-color: var(--ochre-main);
    color: var(--text-white);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.board-file-title {
    font-size: 1.05rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

.board-file-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
}

.board-file-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.board-file-icon i {
    font-size: 1.5rem;
}

.board-file-icon .fa-file-pdf {
    color: #e53e3e;
}

.board-file-icon .fa-file-word {
    color: #2b6cb0;
}

.board-file-icon .fa-file-excel {
    color: #22c55e;
}

.board-file-size {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
}

.board-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--ochre-main);
    color: var(--text-white);
    padding: 0.7rem 1.4rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.board-download-btn:hover {
    background-color: var(--ochre-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.board-download-btn i {
    font-size: 1rem;
}

/* Download Notice */
.download-notice {
    background-color: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 1.5rem 2rem;
    border-radius: var(--border-radius);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.download-notice i {
    color: #f59e0b;
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.download-notice p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.7;
}

.download-notice a {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: underline;
}

/* Content CTA */
.content-cta {
    text-align: center;
    margin-top: 3rem;
}

/* CTA Section */
.cta-section {
    background: var(--primary-color);
    color: var(--text-white);
}

.cta-box {
    text-align: center;
    padding: 3rem;
    animation: scaleIn 0.8s ease-out;
}

.cta-box__title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

.cta-box__description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    color: var(--text-white);
}

.cta-section .btn {
    background-color: var(--sky-blue);
    color: var(--text-white);
    border: 2px solid var(--sky-blue);
}

.cta-section .btn:hover {
    background-color: transparent;
    color: var(--sky-blue);
    border-color: var(--sky-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(135, 206, 235, 0.4);
}

.cta-section .btn:active,
.cta-section .btn:focus {
    background-color: var(--sky-blue);
    color: var(--text-white);
    border-color: var(--sky-blue);
}

.btn--large {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

/* =============== RESPONSIVE DESIGN =============== */
@media screen and (max-width: 968px) {
    .page-hero__title {
        font-size: 2.5rem;
    }

    .page-hero__subtitle {
        font-size: 1.2rem;
    }

    .tab-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .tab-btn {
        justify-content: center;
    }

    .shorts-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .placeholder-video {
        height: 350px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .download-category {
        padding: 2rem;
    }

    .download-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .download-item__btn {
        width: 100%;
        justify-content: center;
    }

    /* Document grid responsive - Tablet */
    .document-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .document-card__image {
        height: 300px;
    }

    .document-card__content {
        padding: 1.5rem;
    }
}

@media screen and (max-width: 576px) {
    .page-hero {
        padding: 6rem 0 4rem;
    }

    .page-hero__title {
        font-size: 2rem;
    }

    .page-hero__subtitle {
        font-size: 1rem;
    }

    .tab-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    .shorts-grid {
        grid-template-columns: 1fr;
    }

    .placeholder-video {
        height: 320px;
    }

    .short-card__content {
        padding: 1.25rem;
    }

    .blog-card__content {
        padding: 1.5rem;
    }

    .blog-card__title {
        font-size: 1.2rem;
    }

    .download-category {
        padding: 1.5rem;
    }

    .download-category__title {
        font-size: 1.5rem;
    }

    .download-item {
        padding: 1.25rem;
    }

    /* 표준계약서 다운로드 2열 레이아웃 */
    .document-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .document-card__image {
        height: 250px;
    }

    .document-card__content {
        padding: 1.25rem;
    }

    .document-card__title {
        font-size: 1rem;
    }

    .document-card__desc {
        font-size: 0.85rem;
    }

    /* Board table mobile view */
    .board-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .board-table thead {
        display: none;
    }

    .board-table tbody {
        display: block;
    }

    .board-table tbody tr {
        display: block;
        margin-bottom: 1.5rem;
        background-color: var(--bg-white);
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
        padding: 1.5rem;
    }

    .board-table tbody tr:hover {
        background-color: var(--bg-light);
    }

    .board-table tbody td {
        display: block;
        padding: 0.5rem 0;
        border: none;
        text-align: left !important;
    }

    .board-table tbody td:first-child {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }

    .board-table tbody td:nth-child(2) {
        margin-bottom: 0.75rem;
    }

    .board-table tbody td:nth-child(3) {
        margin-bottom: 1rem;
    }

    .board-table tbody td:nth-child(4),
    .board-table tbody td:nth-child(5) {
        display: inline-block;
        width: auto;
        margin-right: 1.5rem;
    }

    .board-table tbody td:last-child {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border-color);
    }

    .board-download-btn {
        width: 100%;
        justify-content: center;
        padding: 0.9rem 1.5rem;
    }

    .board-file-icon {
        justify-content: flex-start;
    }

    /* Document grid responsive - Mobile */
    .document-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .document-card__image {
        height: 280px;
    }

    .document-card__content {
        padding: 1.5rem;
    }

    .document-card__title {
        font-size: 1.15rem;
    }

    .document-card__desc {
        font-size: 0.9rem;
    }

    .document-download-btn {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }

    .download-item__icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .download-notice {
        flex-direction: column;
        padding: 1.25rem;
    }

    .cta-box {
        padding: 2rem 1rem;
    }

    .cta-box__title {
        font-size: 1.75rem;
    }

    .btn--large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}