/**
 * Legal Pages Stylesheet (ÁSZF, Adatvédelem)
 * Andics Éva - Német Nyelvtanár
 * Elegáns, professzionális dizájn jogi oldalakhoz
 */

/* ============================================
   BODY OVERRIDE - KRITIKUS FIX!
   ============================================ */

/* FORCE görgetés engedélyezése legal oldalakon! */
body.legal-page {
    overflow: visible !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    position: relative !important;
}

/* ============================================
   LEGAL PAGE HEADER
   ============================================ */

/* Biztosítjuk hogy a legal oldalak tartalma látható maradjon */
.aszf-page-header + .section {
    position: relative;
    z-index: 2;
    background: white;
}

.aszf-page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-blue) 100%);
    color: white;
    padding: 100px 0 60px 0;
    margin-top: 80px;
    position: relative;
    z-index: 2;
}

.aszf-page-header .section-header {
    text-align: center;
    margin-bottom: 0;
}

.aszf-page-header .section-accent {
    color: var(--accent-color);
    opacity: 0.9;
    font-size: 0.875rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
}

.aszf-page-header .section-title {
    color: var(--accent-color);
    font-size: 2.5rem;
    margin-top: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

/* ============================================
   LEGAL CONTENT CONTAINER
   ============================================ */

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: white;
    line-height: 1.8;
    color: var(--text-dark);
    font-size: 1rem;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10000 !important;
    min-height: 100px !important;
}

.legal-content h2 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--secondary-color);
    font-weight: 700;
}

.legal-content h3 {
    font-family: var(--font-heading);
    color: var(--dark-blue);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.legal-content h4 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.legal-content p {
    margin-bottom: 1.25rem;
    text-align: justify;
    color: var(--text-dark);
}

.legal-content ul,
.legal-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.legal-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.legal-content a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: var(--transition-fast);
}

.legal-content a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.legal-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* ============================================
   LAST UPDATED BOX
   ============================================ */

.last-updated {
    background: var(--bg-beige);
    border-left: 4px solid var(--secondary-color);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    color: var(--text-dark);
}

.last-updated strong {
    color: var(--primary-color);
}

/* ============================================
   TABLE OF CONTENTS (TOC)
   ============================================ */

.toc {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-beige) 100%);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem 0 3rem 0;
    box-shadow: var(--box-shadow);
}

.toc h2 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--secondary-color);
}

.toc ol {
    list-style: none;
    counter-reset: toc-counter;
    padding-left: 0;
    margin-bottom: 0;
}

.toc ol li {
    counter-increment: toc-counter;
    margin-bottom: 0.75rem;
    padding-left: 2rem;
    position: relative;
}

.toc ol li::before {
    content: counter(toc-counter) ".";
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--secondary-color);
}

.toc a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition-fast);
    display: inline-block;
}

.toc a:hover {
    color: var(--primary-color);
    text-decoration: underline;
    transform: translateX(5px);
}

/* ============================================
   CONTACT BOX
   ============================================ */

.contact-box {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-beige) 100%);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--box-shadow);
}

.contact-box h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
}

.contact-box table {
    width: 100%;
    border-collapse: collapse;
}

.contact-box table tr {
    border-bottom: 1px solid var(--border-color);
}

.contact-box table tr:last-child {
    border-bottom: none;
}

.contact-box table td {
    padding: 0.875rem 0;
    vertical-align: top;
}

.contact-box table td:first-child {
    font-weight: 600;
    color: var(--primary-color);
    width: 35%;
    padding-right: 1rem;
}

.contact-box table td:last-child {
    color: var(--text-dark);
}

.contact-box a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

.contact-box a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.contact-box-description {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.95rem;
    color: var(--text-light);
}

/* ============================================
   INFO BOX
   ============================================ */

.info-box {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    border-left: 5px solid #4CAF50;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.15);
}

.info-box strong {
    color: #2E7D32;
    font-size: 1.1rem;
}

.info-box p {
    margin-bottom: 0;
    color: #1B5E20;
}

.legal-version-info {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-beige) 100%);
    border-left: 5px solid var(--secondary-color);
}

.legal-version-info p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--text-dark);
}

/* ============================================
   WARNING BOX
   ============================================ */

.warning-box {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
    border-left: 5px solid #FF9800;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 2px 10px rgba(255, 152, 0, 0.15);
}

.warning-box strong {
    color: #E65100;
    font-size: 1.1rem;
}

.warning-box p {
    margin-bottom: 0;
    color: #E65100;
}

/* ============================================
   LEGAL TABLES
   ============================================ */

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.legal-content thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-blue) 100%);
    color: white;
}

.legal-content thead th {
    padding: 1rem;
    text-align: left;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
}

.legal-content tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.legal-content tbody tr:last-child {
    border-bottom: none;
}

.legal-content tbody tr:hover {
    background: var(--bg-light);
}

.legal-content tbody td {
    padding: 1rem;
    vertical-align: top;
}

.legal-content tbody td:first-child {
    font-weight: 600;
    color: var(--primary-color);
    width: 30%;
}

/* ============================================
   ASZF CLOSING TEXT
   ============================================ */

.aszf-closing-text {
    text-align: center;
    font-size: 1.25rem;
    color: var(--primary-color);
    margin: 3rem 0 2rem 0;
    padding: 2rem;
    background: var(--bg-beige);
    border-radius: var(--border-radius);
}

/* ============================================
   ASZF FOOTER LINKS
   ============================================ */

.aszf-footer-links {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.aszf-footer-links p {
    margin-bottom: 0;
}

.aszf-footer-links a {
    margin: 0 0.5rem;
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */

@media (max-width: 768px) {
    .aszf-page-header {
        padding: 80px 0 40px 0;
        margin-top: 70px;
    }
    
    .aszf-page-header .section-title {
        font-size: 1.75rem;
    }
    
    .legal-content {
        padding: 2rem 1.5rem;
    }
    
    .legal-content h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
    }
    
    .legal-content h3 {
        font-size: 1.25rem;
    }
    
    .toc {
        padding: 1.5rem;
    }
    
    .toc ol li {
        padding-left: 1.5rem;
    }
    
    .contact-box {
        padding: 1.5rem;
    }
    
    .contact-box table td:first-child {
        width: 40%;
        font-size: 0.9rem;
    }
    
    .legal-content table {
        font-size: 0.9rem;
    }
    
    .legal-content thead th,
    .legal-content tbody td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .aszf-page-header .section-title {
        font-size: 1.5rem;
    }
    
    .legal-content {
        padding: 1.5rem 1rem;
        font-size: 0.95rem;
    }
    
    .legal-content h2 {
        font-size: 1.35rem;
    }
    
    .legal-content h3 {
        font-size: 1.15rem;
    }
    
    .toc {
        padding: 1.25rem;
    }
    
    .contact-box {
        padding: 1.25rem;
    }
    
    .contact-box table td {
        display: block;
        width: 100% !important;
        padding: 0.5rem 0;
    }
    
    .contact-box table td:first-child {
        font-weight: 700;
        padding-bottom: 0.25rem;
    }
    
    .contact-box table tr {
        padding: 0.75rem 0;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .aszf-page-header {
        background: white;
        color: black;
        padding: 20px 0;
    }
    
    .aszf-page-header .section-title,
    .aszf-page-header .section-accent {
        color: black;
    }
    
    .legal-content {
        padding: 0;
    }
    
    .info-box,
    .warning-box,
    .contact-box,
    .toc {
        border: 1px solid #ccc;
        background: white;
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    .legal-content table {
        page-break-inside: avoid;
    }
    
    a {
        text-decoration: underline;
        color: black;
    }
}

