/* =============================================
   Oneira - Pages Stylesheet
   For: Privacy Policy, Terms of Service, Support
   ============================================= */

:root {
    --primary-purple: #8B5CF6;
    --primary-pink: #EC4899;
    --bg-start: #F0E6FF;
    --bg-middle: #FFE4F3;
    --bg-end: #E0F4FF;
    --surface: #FFFFFF;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(180deg, var(--bg-start) 0%, var(--bg-middle) 50%, var(--bg-end) 100%);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.7;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-purple);
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 2rem 4rem;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.last-updated {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Content Card */
.content-card {
    background: var(--surface);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.1);
}

/* Section */
.section {
    margin-bottom: 2rem;
}

.section:last-child {
    margin-bottom: 0;
}

.section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-purple);
    margin-bottom: 0.75rem;
}

.section p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Contact Email */
.contact-email {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 500;
}

.contact-email:hover {
    text-decoration: underline;
}

/* Support Page Specific */
.support-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.support-card {
    background: var(--surface);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.support-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.15);
}

.support-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--bg-start), var(--bg-middle));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.support-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.support-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.support-card a {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 500;
}

.support-card a:hover {
    text-decoration: underline;
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    padding: 1.5rem 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.faq-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .container {
        padding: 100px 1rem 2rem;
    }
    
    .content-card {
        padding: 1.5rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
}

/* Mobile Menu for Sub Pages */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 1rem 2rem;
    background: var(--surface);
    border-top: 1px solid rgba(139, 92, 246, 0.1);
}

.mobile-menu a {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(139, 92, 246, 0.05);
}

.mobile-menu.active {
    display: flex;
}

@media (max-width: 768px) {
    .nav-links {
        display: none !important;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* Mobile Lang Selector */
.mobile-lang-selector {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
}

.mobile-lang-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.mobile-lang-selector select {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    background: #fff;
    font-size: 0.875rem;
    color: var(--text-primary);
    cursor: pointer;
}

@media (min-width: 769px) {
    .mobile-lang-selector {
        display: none;
    }
}

/* NightLock Warning Box */
.warning-box {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 16px;
}
.warning-box p {
    margin: 0;
    color: #d97706;
    font-size: 0.9rem;
    line-height: 1.6;
}
