/* css/terms_of_use.css */
:root {
    --dark-bg: #0a0a0f;
    --dark-card: #111118;
    --dark-border: #22222a;
    --light-text: #f0f0ff;
    --muted-text: #a0a0c0;
    --yellow-primary: #ffd700;
    --yellow-muted: rgba(255, 215, 0, 0.5);
    --yellow-glow: rgba(255, 215, 0, 0.2);
    --accent-blue: #3b82f6;
    --success-color: #10b981;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
    background: var(--dark-bg);
    color: var(--light-text);
    min-height: 100vh;
    line-height: 1.6;
    font-weight: 300;
}

.terms-header {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--dark-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.back-home {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}

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

.back-home svg {
    width: 20px;
    height: 20px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.header-title {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--light-text);
}

.header-actions {
    display: flex;
    gap: 1rem;
}

.btn-register {
    padding: 0.75rem 1.5rem;
    background: var(--yellow-primary);
    color: var(--dark-bg);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.3s ease;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.1);
}

.terms-hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(17, 17, 24, 0.8), rgba(10, 10, 15, 0.8));
    margin-bottom: 3rem;
}

.terms-title {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    color: var(--light-text);
}

.terms-subtitle {
    font-size: 1rem;
    color: var(--muted-text);
    margin-bottom: 1.5rem;
}

.terms-intro {
    font-size: 1.125rem;
    color: var(--muted-text);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.terms-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
}

.terms-navigation {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.nav-title {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted-text);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--dark-border);
}

.nav-list {
    list-style: none;
}

.nav-item {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--muted-text);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.nav-link:hover {
    color: var(--light-text);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: var(--yellow-primary);
    background: rgba(255, 215, 0, 0.1);
    border-left: 3px solid var(--yellow-primary);
}

.terms-sections {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    padding: 3rem;
}

.term-section {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--dark-border);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.term-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--light-text);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--yellow-primary);
    border-radius: 2px;
}

.section-content {
    color: var(--muted-text);
    line-height: 1.7;
    font-size: 0.95rem;
}

.section-content p {
    margin-bottom: 1rem;
}

.section-content p:last-child {
    margin-bottom: 0;
}

.section-content ul {
    list-style: none;
    margin: 1rem 0;
}

.section-content li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.section-content li::before {
    content: '•';
    color: var(--yellow-primary);
    position: absolute;
    left: 0;
}

.section-content a {
    color: var(--yellow-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.section-content a:hover {
    border-bottom-color: var(--yellow-primary);
}

/* CTA */
.terms-cta {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.cta-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(17, 17, 24, 0.9));
    border: 1px solid var(--yellow-muted);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
}

.cta-card h3 {
    font-size: 1.75rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: var(--light-text);
}

.cta-card p {
    color: var(--muted-text);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--yellow-primary);
    color: var(--dark-bg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.1);
}

.btn-secondary {
    background: transparent;
    color: var(--light-text);
    border-color: var(--dark-border);
}

.btn-secondary:hover {
    border-color: var(--yellow-muted);
    color: var(--yellow-primary);
}

.terms-footer {
    background: var(--dark-card);
    border-top: 1px solid var(--dark-border);
    padding: 3rem 0;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.footer-name {
    font-size: 1.25rem;
    color: var(--light-text);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--muted-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.footer-link.active {
    color: var(--yellow-primary);
}

.footer-info {
    text-align: center;
}

.copyright {
    color: var(--muted-text);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.legal-info {
    color: var(--muted-text);
    font-size: 0.75rem;
    opacity: 0.7;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.term-section {
    animation-delay: calc(var(--index) * 0.1s);
}

/* responsive */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .terms-navigation {
        position: static;
    }
    
    .nav-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .nav-item {
        margin-bottom: 0;
    }
    
    .nav-link {
        padding: 0.5rem 1rem;
    }
    
    .terms-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .terms-hero {
        padding: 3rem 1rem;
    }
    
    .terms-title {
        font-size: 2rem;
    }
    
    .terms-content {
        padding: 0 1rem 3rem;
    }
    
    .terms-sections {
        padding: 2rem;
    }
    
    .cta-card {
        padding: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .footer-links {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .terms-sections {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .section-content {
        font-size: 0.9rem;
    }
    
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
}