/* Main Container */
.main-container {
    max-width: 78.75rem;
    margin: 0 auto;
    margin-top: 5.000rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* Page Title */
.page-title {
    font-weight: 700;
    font-size: 2.750rem;
    color: white;
    margin-top: 7.500rem;
    margin-bottom: 1.119rem;
    text-align: center;
}

/* Tab Navigation */
.tab-navigation {
    background-color: var(--zinc-900);
    border-radius: 6.188rem;
    padding: 0.375rem;
    display: flex;
    margin-bottom: 4.000rem;
}

.tab-item {
    padding: 0.750rem 1.500rem;
    border-radius: 6.188rem;
    font-weight: 700;
    font-size: 1.000rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-item.active {
    background-color: white;
    color: var(--zinc-800);
}

.tab-item:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.1);
}

/* FAQ Content */
.faq-content {
    width: 100%;
    max-width: 79.125rem;
    padding: 0 1.250rem;
    margin-bottom: 21.0rem;
}

/* FAQ Category */
.faq-category {
    margin-bottom: 2.000rem;
    opacity: 0;
    transform: translateY(1.250rem);
    transition: all 0.6s ease;
}

.faq-category.collapsed .faq-list {
    display: none;
}

/* Category Header */
.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.493rem;
}

.category-title {
    font-weight: 700;
    font-size: 1.500rem;
    color: white;
    margin: 0;
}

.toggle-btn {
    background-color: var(--zinc-800);
    border: none;
    border-radius: 0.750rem;
    padding: 0.500rem 1.000rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.toggle-btn:hover {
    background-color: var(--zinc-700);
    transform: translateY(-0.062rem);
}

/* FAQ List */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.500rem;
    max-height: 100rem;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-category.collapsed .faq-list {
    max-height: 0;
    opacity: 0;
    transform: translateY(-20px);
}

/* FAQ Item */
.faq-item {
    display: flex;
    flex-direction: column;
    gap: 0.250rem;
}

/* FAQ Question */
.faq-question {
    background: transparent;
    border: 0.062rem solid var(--zinc-700);
    border-radius: 0.750rem;
    padding: 1.250rem 1.000rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    border-color: var(--zinc-600);
    background-color: rgba(255, 255, 255, 0.02);
}

.question-content {
    display: flex;
    align-items: center;
    gap: 0.500rem;
}

.q-label {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--primary-color);
    white-space: nowrap;
}

.question-text {
    font-weight: 500;
    font-size: 1.125rem;
    color: white;
    white-space: nowrap;
}

.expand-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 1.500rem;
    height: 1.500rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.expand-btn:hover {
    transform: scale(1.1);
}

.expand-btn img {
    width: 100%;
    height: 100%;
    transition: opacity 0.2s ease;
}

.faq-item.expanded .expand-btn {
    transform: rotate(180deg);
}

.faq-item.expanded .expand-btn:hover {
    transform: rotate(180deg) scale(1.1);
}

/* FAQ Answer */
.faq-answer {
    background-color: var(--zinc-900);
    border: 0.062rem solid var(--zinc-700);
    border-radius: 0.750rem;
    padding: 0 1.000rem;
    display: flex;
    gap: 0.500rem;
    align-items: flex-start;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.expanded .faq-answer {
    max-height: 12.500rem;
    opacity: 1;
    padding: 1.250rem 1.000rem;
    transform: translateY(0);
}

.a-label {
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.4;
    white-space: nowrap;
    flex-shrink: 0;
}

.answer-text {
    font-weight: 400;
    font-size: 1.000rem;
    color: var(--zinc-200);
    line-height: 1.4;
    flex: 1;
}

/* Terms of Service & Privacy Policy Content */
.terms-content,
.privacy-content {
    width: 100%;
    max-width: 79.125rem;
    padding: 0 1.250rem;
    transform: translateY(1.250rem);
    transition: all 0.6s ease;
}

.terms-content[style*="block"],
.privacy-content[style*="block"] {
    opacity: 1;
    transform: translateY(0);
}

.terms-container {
    border: 0.094rem solid var(--zinc-800);
    border-radius: 0.750rem;
    padding: 1.250rem;
    background: transparent;
}

.terms-header {
    margin-bottom: 1.000rem;
}

.terms-date-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    background-color: var(--zinc-900);
    border: 0.062rem solid var(--zinc-800);
    border-radius: 0.500rem;
    padding: 0.500rem 0.750rem;
    width: fit-content;
}

.terms-date-select {
    background: transparent;
    border: none;
    font-weight: 500;
    font-size: 0.812rem;
    color: var(--zinc-200);
    line-height: 1.8;
    white-space: nowrap;
    padding-right: 1.5rem;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    font-family: inherit;
}

.terms-date-select:focus {
    outline: none;
}

.terms-date-select option {
    background-color: var(--zinc-900);
    color: var(--zinc-200);
    padding: 0.500rem;
}

.dropdown-icon {
    position: absolute;
    right: 0.750rem;
    width: 1.000rem;
    height: 1.000rem;
    pointer-events: none;
}

.dropdown-icon img {
    width: 100%;
    height: 100%;
}

.terms-body {
    font-weight: 400;
    font-size: 0.875rem;
    color: white;
    line-height: 1.8;
}

.terms-body p {
    margin: 0;
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
    to {
        opacity: 1;
        max-height: 12.500rem;
        padding-top: 1.250rem;
        padding-bottom: 1.250rem;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(1.875rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-title {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.tab-navigation {
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

@media (max-width: 64rem) {
    .page-title{
        font-size: 2.052rem;
    }
}

@media (max-width: 640px) {    
    .page-title {
        margin-top: 1.119rem;
        font-size: 1.679rem;
        margin-bottom: 2.052rem;
    }

    .tab-navigation {
        padding: 0.25rem;
        margin-bottom: 3rem;
    }

    .tab-item {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }

    .category-title{
        font-size: 1.206rem;
    }

    .category-header{
        margin-bottom: 1.026rem;
    }

    .question-text{
        font-size: 1.106rem;
    }

    .answer-text{
        /*font-size: 1.119rem;*/
    }
    
}
