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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #ffffff;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #007ACC;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #007ACC;
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition-property: color, background-color, border-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 200ms;
    height: 2.5rem;
    position: relative;
    overflow: hidden;
}

.nav-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 5s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

.nav-cta:hover {
    background: rgba(0, 122, 204, 0.9);
}

.nav-cta:hover::before {
    animation: none;
}

.nav-cta:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px hsl(207 100% 40%), 0 0 0 4px rgba(0, 122, 204, 0.1);
}

/* Footer */
.footer {
    padding: 3rem 2rem 2rem;
    background: #111827;
    color: #9ca3af;
    text-align: center;
}

.footer-links {
    margin-bottom: 1rem;
}

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

.footer-links a:hover {
    color: #ffffff;
}

.footer-links .separator {
    color: #4b5563;
    margin: 0 0.5rem;
}

/* Legal Content */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 7rem 2rem 4rem;
}

.legal-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.5rem;
}

.legal-updated {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 3rem;
}

.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.legal-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.legal-content p {
    color: #374151;
    margin-bottom: 1rem;
    line-height: 1.75;
}

.legal-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-content li {
    color: #374151;
    margin-bottom: 0.5rem;
    line-height: 1.75;
}

.legal-content a {
    color: #007ACC;
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-content em {
    color: #6b7280;
}

.toc {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem 2rem;
    margin-bottom: 3rem;
}

.toc h2 {
    margin-top: 0 !important;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.toc ol {
    padding-left: 1.5rem;
    margin: 0;
}

.toc li {
    margin-bottom: 0.25rem;
}

.toc a {
    color: #007ACC;
    text-decoration: none;
    font-size: 0.9375rem;
}

.toc a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .legal-content {
        padding: 6rem 1rem 3rem;
    }

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

    .legal-content h2 {
        font-size: 1.25rem;
    }
}