/* ============================================
   Legal Pages - Simple Vertical Layout
   ============================================ */

/* Base Styles - Force Dark Theme */
* {
    box-sizing: border-box;
}

html {
    background: #0f0f1e !important;
}

body {
    background: #0f0f1e !important;
    color: #ffffff !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif !important;
    line-height: 1.6;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh;
}

/* Language Switcher - Consistent Positioning */
.language-switcher {
    position: fixed !important;
    top: 1rem !important;
    right: 1rem !important;
    left: auto !important;
    z-index: 10001 !important;
}

.language-switcher button {
    background: rgba(102, 126, 234, 0.2) !important;
    border: 2px solid #667eea !important;
    color: #ffffff !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 50px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3) !important;
}

.language-switcher button:hover {
    background: rgba(102, 126, 234, 0.4) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5) !important;
}

.language-switcher button span:first-child {
    font-size: 1.25rem !important;
}

/* Language Dropdown */
.language-dropdown {
    position: absolute !important;
    top: calc(100% + 0.5rem) !important;
    right: 0 !important;
    left: auto !important;
    background: #1a1a2e !important;
    border: 2px solid #667eea !important;
    border-radius: 1rem !important;
    padding: 0.5rem !important;
    min-width: 180px !important;
    display: none !important;
    flex-direction: column !important;
    gap: 0.25rem !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

.language-dropdown.active {
    display: flex !important;
}

.language-option {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.75rem 1rem !important;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 0.5rem !important;
    transition: all 0.2s ease !important;
    font-size: 1rem !important;
    white-space: nowrap !important;
}

.language-option:hover {
    background: rgba(102, 126, 234, 0.3) !important;
}

.language-option .flag {
    font-size: 1.25rem !important;
}

/* Accessibility Toolbar - Positioned Below Language Switcher */
.accessibility-toolbar {
    position: fixed !important;
    top: 5rem !important;
    right: 1rem !important;
    z-index: 1000 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
}

.accessibility-toolbar button {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    width: 3rem !important;
    height: 3rem !important;
    border-radius: 0.5rem !important;
    font-size: 1.25rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.accessibility-toolbar button:hover {
    background: rgba(102, 126, 234, 0.3) !important;
    border-color: #667eea !important;
}

/* Legal Hero Section */
.legal-hero {
    padding: 3rem 0 2rem;
    background: linear-gradient(180deg, #0f0f1e 0%, #1a1a2e 100%);
}

/* Legal Container - Single Column */
.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

/* All sections stack vertically */
.legal-container>* {
    width: 100%;
    display: block;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #b8b8d4;
    text-decoration: none;
    font-size: 0.938rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #667eea;
    transform: translateX(-4px);
}

/* Main Title */
.legal-container h1 {
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 0.75rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    width: 100%;
}

/* Last Updated */
.last-updated {
    color: #8a8aa0;
    font-size: 0.938rem;
    margin: 0 0 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: block;
    width: 100%;
}

/* Sections - Block Display */
.legal-container section {
    margin-bottom: 0.5rem;
    display: block;
    width: 100%;
}

/* Section Headings */
.legal-container h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #667eea;
    margin: 0.25rem 0 0.25rem 0;
    display: block;
    width: 100%;
}

.legal-container h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0.5rem 0 0.25rem 0;
    display: block;
    width: 100%;
}

/* Paragraphs */
.legal-container p {
    line-height: 1.5;
    color: #b8b8d4;
    margin: 0 0 0.25rem 0;
    display: block;
    width: 100%;
}

/* Lists - Vertical Stack */
.legal-container ul,
.legal-container ol {
    margin: 0 0 0.25rem 0;
    padding-left: 2rem;
    color: #b8b8d4;
    display: block;
    width: 100%;
}

.legal-container li {
    line-height: 1.5;
    margin-bottom: 0.15rem;
    display: list-item;
}

.legal-container ul li {
    list-style-type: disc;
}

.legal-container ol li {
    list-style-type: decimal;
}

/* Strong text */
.legal-container strong {
    color: #ffffff;
    font-weight: 600;
}

/* Contact Box */
.contact-box {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    display: block;
    width: 100%;
}

.contact-box p {
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.contact-box p:last-child {
    margin-bottom: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .legal-container {
        padding: 2rem 1rem;
    }

    .legal-container h1 {
        font-size: 2rem;
    }

    .legal-container h2 {
        font-size: 1.5rem;
    }

    .legal-container h3 {
        font-size: 1.125rem;
    }

    .legal-container ul,
    .legal-container ol {
        padding-left: 1rem;
    }
}

/* Print Styles */
@media print {
    .back-link {
        display: none;
    }

    .legal-container {
        max-width: none;
        padding: 0;
    }

    .legal-container h1,
    .legal-container h2 {
        color: #000;
        background: none;
        -webkit-text-fill-color: initial;
    }
}

/* ============================================
   Footer Styles for Legal Pages
   ============================================ */

.trust-section {
    background: #1a1a2e;
    padding: 3rem 0;
    margin-top: 4rem;
}

.trust-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.trust-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.trust-item strong {
    display: block;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.trust-item p {
    color: #b8b8d4;
    font-size: 0.938rem;
    margin: 0;
}

.footer-legal-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-legal-links a {
    color: #b8b8d4;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: #667eea;
}

.footer-legal-links .separator {
    color: #8a8aa0;
}

.footer-info {
    margin-top: 1rem;
    text-align: center;
}

.footer-info p {
    color: #8a8aa0;
    font-size: 0.875rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}