/* Terms & Privacy Page Styles - Professional Version */
:root {
    --navbar-primary-green: #06ab5c;
    --green-light: #e8f7f0;
    --green-medium: #06ab5c;
    --green-dark: #047841;
    --green-darker: #03582f;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --color-white: #ffffff;
}

.terms-privacy-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--color-white) 100%);
    min-height: 100vh;
}

.terms-privacy-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
}

/* Header Styles */
.terms-privacy-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.terms-privacy-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}


.terms-privacy-subtitle {
    font-size: 18px;
    color: var(--gray-600);
    max-width: 700px;
    margin: 30px auto 0;
    line-height: 1.6;
    font-weight: 400;
}

/* Main Content Layout */
.terms-privacy-content {
    display: flex;
    gap: 40px;
    background: var(--color-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    /* Dynamic height for desktop/tablet landscape */
    height: calc(100vh - 240px);
    min-height: 800px;
    max-height: 1100px;
}

/* Sidebar Styles - Fixed height */
.terms-sidebar {
    width: 300px;
    background: linear-gradient(180deg, var(--green-light) 0%, rgba(232, 247, 240, 0.8) 100%);
    padding: 30px 0;
    border-right: 1px solid rgba(6, 171, 92, 0.1);
    flex-shrink: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-header {
    padding: 0 30px 20px;
    flex-shrink: 0;
}

.sidebar-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--green-darker);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 15px;
}

.sidebar-line {
    height: 2px;
    background: linear-gradient(90deg, var(--green-medium), transparent);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
    margin-right: -10px;
    padding-left: 30px;
}

/* Custom scrollbar for sidebar */
.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: rgba(6, 171, 92, 0.05);
    border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: var(--green-medium);
    border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: var(--green-dark);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 10px 16px 10px;
    text-decoration: none;
    color: var(--gray-700);
    transition: all 0.3s ease;
    position: relative;
    border-left: 3px solid transparent;
    flex-shrink: 0;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.5);
    color: var(--green-dark);
    border-left-color: var(--green-medium);
}

.nav-item.active {
    background: var(--color-white);
    color: var(--green-dark);
    border-left-color: var(--green-medium);
    font-weight: 500;
}

.nav-number {
    font-size: 12px;
    font-weight: 600;
    color: var(--green-medium);
    min-width: 24px;
}

.nav-text {
    font-size: 15px;
    line-height: 1.4;
    white-space: nowrap;
}

/* Main Content Styles - Scrollable area */
.terms-main-content {
    flex: 1;
    padding: 40px 40px 20px;
    max-width: calc(100% - 340px);
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
}


/* Article Styles */
.terms-article {
    margin-bottom: 50px;
    position: relative;
    scroll-margin-top: 20px;
}

.terms-article:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.article-header {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.article-number {
    font-size: 14px;
    font-weight: 700;
    color: var(--green-medium);
    background: var(--green-light);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.article-title-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.article-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--green-light) 0%, var(--color-white) 100%);
    border: 1px solid rgba(6, 171, 92, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.article-icon svg {
    width: 22px;
    height: 22px;
    color: var(--green-medium);
    stroke-width: 2;
}

.article-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
    line-height: 1.3;
}

.article-content {
    padding-left: 56px;
}

.article-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-700);
    margin: 0;
}

.article-content strong {
    color: var(--green-dark);
    font-weight: 600;
    background: linear-gradient(120deg, var(--green-light) 0%, transparent 100%);
    padding: 0 2px;
    border-radius: 2px;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .terms-privacy-content {
        flex-direction: column;
        gap: 0;
        height: auto;
        min-height: auto;
        max-height: none;
    }

    .terms-sidebar {
        display: none;
    }

    .sidebar-nav {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 20px;
        -webkit-overflow-scrolling: touch;
        margin-right: 0;
        margin-left: 0;
    }

    .nav-item {
        flex-direction: column;
        text-align: center;
        padding: 12px 15px;
        min-width: 140px;
        border-left: none;
        border-bottom: 3px solid transparent;
        flex-shrink: 0;
    }

    .nav-item:hover,
    .nav-item.active {
        border-left: none;
        border-bottom-color: var(--green-medium);
    }

    .nav-number {
        font-size: 11px;
    }

    .nav-text {
        font-size: 13px;
        white-space: normal;
        text-align: center;
    }

    .terms-main-content {
        max-width: 100%;
        padding: 40px 30px;
        height: auto;
        overflow: visible;
    }

    .terms-main-content::-webkit-scrollbar {
        display: none;
    }
}

/* Tablet Landscape Only (768px to 1199px) */
@media (min-width: 768px) and (max-width: 1199px) and (orientation: landscape) {
    .terms-privacy-content {
        height: calc(100vh - 200px);
        min-height: 500px;
        max-height: 700px;
        flex-direction: row;
    }

    .terms-sidebar {
        display: flex;
        width: 280px;
        height: 100%;
        border-right: 1px solid rgba(6, 171, 92, 0.1);
        border-bottom: none;
        padding: 25px 0;
    }

    .sidebar-nav {
        flex-direction: column;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 0 20px;
    }

    .nav-item {
        flex-direction: row;
        text-align: left;
        padding: 14px 10px 14px 0px;
        min-width: auto;
        border-left: 3px solid transparent;
        border-bottom: none;
    }

    .nav-item:hover,
    .nav-item.active {
        border-left-color: var(--green-medium);
        border-bottom: none;
    }

    .nav-text {
        text-align: left;
        white-space: nowrap;
    }

    .terms-main-content {
        max-width: calc(100% - 320px);
        height: 100%;
        overflow-y: auto;
    }
}

@media (max-width: 768px) {
    .terms-privacy-section {
        padding: 40px 0;
    }

    .terms-privacy-title {
        font-size: 36px;
    }

    .terms-privacy-subtitle {
        font-size: 16px;
        padding: 0 15px;
    }

    .terms-main-content {
        padding: 30px 20px;
    }

    .article-header {
        flex-direction: column;
        gap: 15px;
    }

    .article-content {
        padding-left: 0;
    }

    .article-title-section {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .terms-privacy-title {
        font-size: 28px;
    }

    .article-title {
        font-size: 20px;
    }

    .article-icon {
        width: 40px;
        height: 40px;
    }

    .article-icon svg {
        width: 18px;
        height: 18px;
    }
}