/* Legal Pages - Minimalist Document Style */
/* Applied to Terms, Privacy Policy, and Service Agreement pages */

/* Override brand fonts with system fonts for legal content */
.container-narrow {
    font-family: Arial, Helvetica, sans-serif !important;
    color: #000000 !important;
    background: #ffffff !important;
}

.container-narrow a {
    color: #0066cc !important;
    text-decoration: underline !important;
}

.container-narrow a:hover {
    color: #0052a3 !important;
}

/* Language Toggle */
.lang-toggle {
    display: flex !important;
    gap: 0.5rem;
    justify-content: center;
    margin: 2rem 0;
}

.lang-toggle .btn {
    padding: 0.5rem 1.5rem !important;
    border: 2px solid #0066cc !important;
    background: white !important;
    color: #000000 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    transition: all 0.2s !important;
    font-family: Arial, Helvetica, sans-serif !important;
}

.lang-toggle .btn.active {
    background: #0066cc !important;
    color: white !important;
}

.lang-toggle .btn:hover {
    background: #e6f2ff !important;
}

/* Screen reader only class */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border-width: 0 !important;
}

/* Cookie Banner - Centered Modal */
.cookie-banner {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.6) !important;
    z-index: 9999 !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem !important;
}

.cookie-content {
    max-width: 500px !important;
    width: 90% !important;
    background: white !important;
    padding: 2rem !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
}

.cookie-content h4 {
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
    color: #000000 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 1.25rem !important;
}

.cookie-content p {
    color: #000000 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    line-height: 1.6 !important;
}

.cookie-actions {
    display: flex !important;
    gap: 1rem !important;
    margin-top: 1.5rem !important;
    flex-wrap: wrap !important;
    align-items: center !important;
}

.cookie-actions .btn-ghost {
    background: transparent !important;
    border: 2px solid #666666 !important;
    color: #000000 !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    transition: all 0.2s !important;
    font-family: Arial, Helvetica, sans-serif !important;
}

.cookie-actions .btn-ghost:hover {
    background: #666666 !important;
    color: white !important;
}

.cookie-actions .btn-brand {
    background: #0066cc !important;
    border: 2px solid #0066cc !important;
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    transition: all 0.2s !important;
    font-family: Arial, Helvetica, sans-serif !important;
}

.cookie-actions .btn-brand:hover {
    background: #0052a3 !important;
    border-color: #0052a3 !important;
}

.cookie-actions .btn-link {
    background: transparent !important;
    border: none !important;
    color: #0066cc !important;
    text-decoration: underline !important;
    cursor: pointer !important;
    padding: 0.75rem 1rem !important;
    font-family: Arial, Helvetica, sans-serif !important;
}

.cookie-actions .chip {
    background: #f0f0f0 !important;
    color: #000000 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    font-family: Arial, Helvetica, sans-serif !important;
}

/* Preferences Modal */
.pref-modal {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0,0,0,0.7) !important;
    z-index: 10000 !important;
    align-items: center;
    justify-content: center;
    padding: 2rem !important;
}

.pref-card {
    background: white !important;
    padding: 2rem !important;
    border-radius: 8px !important;
    max-width: 600px !important;
    width: 100% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    font-family: Arial, Helvetica, sans-serif !important;
}

.pref-card h3 {
    color: #000000 !important;
    font-family: Arial, Helvetica, sans-serif !important;
}

.pref-card p, .pref-card strong, .pref-card div {
    color: #000000 !important;
    font-family: Arial, Helvetica, sans-serif !important;
}

.pref-card .text-muted {
    color: #666666 !important;
}

.pref-grid {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    gap: 1rem !important;
    align-items: center !important;
    padding: 1rem !important;
    border-radius: 4px !important;
    background: #f9f9f9 !important;
    border: 1px solid #e0e0e0 !important;
}

.switch {
    position: relative !important;
    display: inline-block !important;
    width: 50px !important;
    height: 28px !important;
}

.switch input {
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

.knob {
    position: absolute !important;
    cursor: pointer !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: #ccc !important;
    transition: 0.3s !important;
    border-radius: 28px !important;
}

.knob:before {
    position: absolute !important;
    content: "" !important;
    height: 20px !important;
    width: 20px !important;
    left: 4px !important;
    bottom: 4px !important;
    background-color: white !important;
    transition: 0.3s !important;
    border-radius: 50% !important;
}

input:checked + .knob {
    background-color: #0066cc !important;
}

input:checked + .knob:before {
    transform: translateX(22px) !important;
}

.pref-actions {
    display: flex !important;
    gap: 1rem !important;
    margin-top: 2rem !important;
    justify-content: flex-end !important;
}

@media (max-width: 768px) {
    .cookie-actions {
        flex-direction: column !important;
        width: 100% !important;
    }
    
    .cookie-actions button {
        width: 100% !important;
    }
}

/* Legal Pages Content - Minimalist Typography */
.container-narrow h1 {
    color: #000000 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
}

.container-narrow h2 {
    color: #000000 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 1.5rem !important;
    margin-top: 2.5rem !important;
    margin-bottom: 1rem !important;
    font-weight: 600 !important;
}

.container-narrow h3 {
    color: #000000 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 1.25rem !important;
    margin-top: 2rem !important;
    margin-bottom: 0.75rem !important;
    font-weight: 600 !important;
}

.container-narrow p {
    line-height: 1.7 !important;
    margin-bottom: 1.25rem !important;
    color: #000000 !important;
}

.container-narrow ul {
    margin-bottom: 1.5rem !important;
}

.container-narrow li {
    line-height: 1.6 !important;
    margin-bottom: 0.5rem !important;
    color: #000000 !important;
}

.container-narrow strong {
    color: #000000 !important;
}
