/* ====================================
   TERMS & CONDITIONS STYLES
   Legal pages (ÁSZF / Terms) styling
   ==================================== */

/* Import base navigation and layout styles are handled by style.css */

/* === LAYOUT & CONTAINER === */
.terms-container {
    background: #f5faff;
    min-height: 100vh;
    padding-top: 0;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* === HERO SECTION === */
.terms-hero {
    background: linear-gradient(135deg, #1761a0 0%, #ff4f81 100%);
    color: white;
    padding: 4rem 0 3rem 0;
    text-align: center;
    position: relative;
}

.terms-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.terms-hero .container {
    position: relative;
    z-index: 2;
}

.terms-hero h1 {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    margin: 0 0 1rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    margin: 0 0 1.5rem 0;
    opacity: 0.95;
    line-height: 1.5;
}

.last-updated {
    font-size: 1rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
    margin: 0;
}

/* === MAIN CONTENT === */
.terms-content {
    background: white;
    margin: -2rem auto 0 auto;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 24px rgba(30, 144, 255, 0.07);
    position: relative;
    z-index: 10;
    padding: 3rem 0 4rem 0;
}

/* === TABLE OF CONTENTS === */
.terms-toc {
    background: #f8fbff;
    border: 2px solid #e8f2ff;
    border-radius: 16px;
    padding: 2rem;
    margin: 0 0 3rem 0;
    box-shadow: 0 2px 12px rgba(30, 144, 255, 0.05);
}

.terms-toc h2 {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1761a0;
    margin: 0 0 1.5rem 0;
    text-align: center;
    border-bottom: 2px solid #1761a0;
    padding-bottom: 0.5rem;
}

.terms-toc ol {
    list-style: none;
    counter-reset: toc-counter;
    margin: 0;
    padding: 0;
    columns: 2;
    column-gap: 2rem;
}

.terms-toc li {
    counter-increment: toc-counter;
    margin: 0 0 0.8rem 0;
    break-inside: avoid;
}

.terms-toc li a {
    display: block;
    text-decoration: none;
    color: #1761a0;
    font-weight: 500;
    line-height: 1.4;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.terms-toc li a::before {
    content: counter(toc-counter) ".";
    font-weight: 700;
    color: #ff4f81;
    margin-right: 0.5rem;
    min-width: 1.5rem;
    display: inline-block;
}

.terms-toc li a:hover {
    background: rgba(23, 97, 160, 0.1);
    transform: translateX(4px);
}

/* === TYPOGRAPHY & CONTENT === */
.terms-section {
    margin: 0 0 3rem 0;
    scroll-margin-top: 100px; /* For anchor navigation */
}

.terms-section h2 {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1761a0;
    margin: 0 0 1.5rem 0;
    padding: 1rem 0 0.5rem 0;
    border-bottom: 3px solid #ff4f81;
}

.terms-section h3 {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #1761a0;
    margin: 2rem 0 1rem 0;
}

.terms-section p {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
    margin: 0 0 1.2rem 0;
    text-align: justify;
}

.terms-section ul, 
.terms-section ol {
    margin: 0 0 1.2rem 1.5rem;
    padding: 0;
}

.terms-section li {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
    margin: 0 0 0.8rem 0;
    text-align: justify;
}

.terms-section strong {
    color: #1761a0;
    font-weight: 600;
}

.terms-section em {
    color: #ff4f81;
    font-style: normal;
    font-weight: 500;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .terms-hero {
        padding: 3rem 0 2rem 0;
    }
    
    .terms-hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .terms-content {
        margin: -1rem auto 0 auto;
        padding: 2rem 0 3rem 0;
    }
    
    .terms-toc {
        padding: 1.5rem;
        margin: 0 0 2rem 0;
    }
    
    .terms-toc ol {
        columns: 1;
    }
    
    .terms-section {
        margin: 0 0 2rem 0;
    }
    
    .terms-section h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .terms-hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .terms-toc h2 {
        font-size: 1.3rem;
    }
    
    .terms-section h2 {
        font-size: 1.3rem;
    }
    
    .terms-section h3 {
        font-size: 1.1rem;
    }
} 