* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(102, 126, 234, 0.2);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

:root {
    --primary: #667eea;
    --primary-dark: #764ba2;
    --dark: #0f172a;
    --dark-lighter: #1e293b;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --success: #10b981;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Header */
.header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.5rem 5%;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    position: sticky;
    position: -webkit-sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    height: 48px;
    -webkit-tap-highlight-color: transparent;
}

.back-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    margin: -0.5rem;
}

.back-link:hover {
    color: var(--primary);
}

.back-link:active {
    transform: scale(0.98);
}

/* Content */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 5%;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.section {
    margin-bottom: 2.5rem;
}

h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

p, li {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    list-style-position: inside;
}

li {
    margin-bottom: 0.5rem;
}

strong {
    color: var(--text-primary);
    font-weight: 600;
}

.highlight {
    background: rgba(99, 102, 241, 0.1);
    border-left: 3px solid var(--primary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
}

.highlight p {
    margin-bottom: 0;
    color: var(--text-primary);
}

.contact-info {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-top: 2rem;
}

.contact-info h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: var(--primary);
    text-decoration: none;
    word-break: break-word;
    display: inline-block;
    padding: 0.25rem 0;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* Footer */
.footer {
    background: rgba(15, 23, 42, 0.95);
    padding: 2rem 5%;
    margin-top: 4rem;
    text-align: center;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Mobile */
@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .logo svg {
        width: 220px;
        height: 40px;
    }
    
    .back-link {
        font-size: 0.9rem;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.2rem;
    }
    
    .container {
        padding: 1.5rem 1rem;
    }
    
    .section {
        margin-bottom: 2rem;
    }
    
    p, li {
        font-size: 0.95rem;
    }
    
    .highlight {
        padding: 0.8rem 1rem;
        margin: 1rem 0;
    }
    
    .contact-info {
        padding: 1rem;
    }
    
    ul {
        padding-left: 1.2rem;
    }
    
    .footer {
        padding: 1.5rem 1rem;
        margin-top: 3rem;
    }
    
    .footer p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .logo svg {
        width: 180px;
        height: 33px;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .last-updated {
        font-size: 0.85rem;
    }
    
    .footer {
        margin-top: 2rem;
    }
}