/**
 * Shared CSS for Sammen redirect site
 * Provides consistent styling across all pages
 */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0A0A0B;
    color: #FAFAFA;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Time-based gradient background */
.time-gradient-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
    transition: background 800ms ease-in-out;
    pointer-events: none;
}

/* Dark base layer for better contrast */
.time-gradient-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

/* Container styles */
.container {
    max-width: 800px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.container.narrow {
    max-width: 600px;
}

/* Legal page content container with glass effect */
.legal-container {
    background: rgba(26, 26, 29, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 3rem;
    margin: 2rem auto;
    max-width: 800px;
    text-align: left;
}

@media (max-width: 768px) {
    .legal-container {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
}

/* Typography */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #FAFAFA;
}

h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: #E4E4E7;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: #E4E4E7;
}

p {
    margin-bottom: 1rem;
    color: #A8A8B3;
}

a {
    color: #4F46E5;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #6366F1;
}

/* Logo styles */
.logo {
    font-family: 'Didact Gothic', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #4F46E5;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    display: inline-block;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.logo:hover {
    transform: translateY(-2px);
}

/* Footer styles */
.footer {
    margin-top: 4rem;
    padding-top: 2rem;
    color: #6B7280;
    font-size: 0.875rem;
    text-align: center;
    width: 100%;
}

.footer a {
    color: #A8A8B3;
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: #FAFAFA;
}

.footer .separator {
    color: #4B5563;
    margin: 0 0.25rem;
}

/* Back to Sammen link */
.back-to-sammen {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 0.75rem 1.5rem;
    background: rgba(79, 70, 229, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.back-to-sammen:hover {
    background: rgba(67, 56, 202, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    color: white;
}

/* Language selector */
.language-selector {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(26, 26, 27, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.language-selector select {
    background: transparent;
    color: #E4E4E7;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 0.875rem;
}

.language-selector select option {
    background: #1a1a1b;
    color: #E4E4E7;
}

.globe-icon {
    color: #A8A8B3;
    font-size: 1.125rem;
}

/* List styles */
ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
    color: #A8A8B3;
}

/* Strong text */
strong {
    color: #FAFAFA;
    font-weight: 600;
}

/* Email link styles */
.email-link {
    color: #4F46E5;
}

.email-link:hover {
    color: #6366F1;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .footer {
        font-size: 0.75rem;
    }
    
    .footer a {
        margin: 0 0.25rem;
    }
    
    .logo {
        font-size: 2.5rem;
    }
}