/* Policy page styles */

.policy-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Language switcher - same as about page */
.language-switcher {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.lang-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    border: 2px solid var(--border-color);
    background-color: transparent;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.lang-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--accent-color);
    transition: all 0.3s ease-in-out;
    z-index: -1;
}

.lang-btn:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(var(--accent-color-rgb), 0.2);
}

.lang-btn:hover::before {
    width: 100%;
}

.lang-btn.active {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    box-shadow: 0 5px 15px rgba(var(--accent-color-rgb), 0.25);
}

/* Page header */
.policy-header {
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
    animation: fadeInUp 0.6s ease-out forwards;
}

.policy-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    border-radius: 2px;
}

.policy-header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.policy-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Policy sections */
.policy-section {
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.policy-section.animated {
    opacity: 1;
    transform: translateY(0);
}

.policy-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.policy-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(var(--accent-color-rgb), 0.1);
    border-radius: 50%;
}

.policy-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.updated-date {
    margin-left: auto;
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Card design */
.policy-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

/* Table of contents */
.toc-section {
    margin-bottom: 3rem;
}

.toc-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.toc-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toc-list li {
    position: relative;
    padding-left: 1.5rem;
}

.toc-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-color);
    transform: translateY(-50%);
}

.toc-list a {
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    display: block;
    padding: 0.5rem 0;
}

.toc-list a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

/* Policy content */
.policy-content-text {
    color: var(--text-primary);
}

.policy-content-text h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
    color: var(--text-primary);
}

.policy-content-text h3:first-child {
    margin-top: 0;
}

.policy-content-text p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.policy-list {
    list-style: disc;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.policy-list li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* Expandable sections */
.expandable-section {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin: 1.5rem 0;
    overflow: hidden;
}

.expandable-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: rgba(var(--accent-color-rgb), 0.05);
    cursor: pointer;
}

.expandable-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.expand-button {
    background: none;
    border: none;
    color: var(--accent-color);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background-color: rgba(var(--accent-color-rgb), 0.1);
}

.expand-button.active {
    transform: rotate(135deg);
}

.expandable-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.expandable-content.active {
    padding: 1rem;
    max-height: 500px;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll to section animation */
.policy-section:target {
    animation: highlight 2s ease;
}

@keyframes highlight {
    0%, 100% { background-color: transparent; }
    50% { background-color: rgba(var(--accent-color-rgb), 0.1); }
}

/* Responsive styles */
@media (max-width: 768px) {
    .policy-header h1 {
        font-size: 2.2rem;
    }
    
    .policy-header p {
        font-size: 1.1rem;
    }
    
    .policy-section h2 {
        font-size: 1.6rem;
    }
    
    .policy-card {
        padding: 1.5rem;
    }
    
    .policy-section-header {
        flex-wrap: wrap;
    }
    
    .updated-date {
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%;
    }
}

/* Small screens */
@media (max-width: 480px) {
    .policy-header h1 {
        font-size: 1.8rem;
    }
    
    .policy-icon {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }
    
    .policy-section h2 {
        font-size: 1.4rem;
    }
    
    .policy-content-text h3 {
        font-size: 1.2rem;
    }
    
    .policy-card {
        padding: 1rem;
    }
    
    .language-switcher {
        justify-content: center;
    }
}
