/**
 * Legal Pages Styles
 * Jednoduchý, čistý dizajn bez boxov a gradientov
 */

/* Menšie písmo pre podnadpis */
body.page-template-page-gdpr .job-hero-text,
body.page-template-page-podmienky .job-hero-text,
body.page-template-page-cookies .job-hero-text {
    font-size: var(--hero-subtitle-size);
    font-weight: 400;
    opacity: 0.85;
}

/* Container - používa job-container, ktorý už má správny max-width */
body.page-template-page-gdpr .job-container,
body.page-template-page-podmienky .job-container,
body.page-template-page-cookies .job-container {
    max-width: var(--container-width, 1280px);
}

/* Legal pages grid - sidebar 360px, content širší */
/* Sidebar je prvý, content druhý v HTML */
body.page-template-page-gdpr .job-grid,
body.page-template-page-podmienky .job-grid,
body.page-template-page-cookies .job-grid {
    grid-template-columns: 360px 1fr;
    gap: 4rem;
    animation: fadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: 0.2s;
    opacity: 1 !important;
}

/* Sidebar Menu - sticky */
.legal-sidebar-card {
    position: sticky;
    top: 144px;
    align-self: start;
    max-height: calc(100vh - 164px);
    overflow-y: auto;
    z-index: 10;
}

/* Ensure sidebar stretches to full height for sticky to work */
body.page-template-page-gdpr .job-sidebar,
body.page-template-page-podmienky .job-sidebar,
body.page-template-page-cookies .job-sidebar {
    height: 100% !important;
    overflow: visible !important;
}

.legal-sidebar-nav {
    padding: 2rem 1.5rem;
}

.legal-sidebar-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text, #161615);
    margin: 0 0 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border, #e2e8f0);
}

.legal-sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.legal-sidebar-menu li {
    margin-bottom: 0.375rem;
}

.legal-menu-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-secondary, #374151);
    text-decoration: none;
    border-radius: var(--radius-sm, 8px);
    transition: all 0.2s ease;
    font-size: 0.9375rem;
    line-height: 1.5;
    position: relative;
    font-weight: 500;
}

.legal-menu-link:hover {
    background: var(--bg-subtle, #f9fafb);
    color: var(--text, #161615);
}

.legal-menu-link.active {
    background: var(--primary-light, rgba(253, 198, 0, 0.12));
    color: var(--text, #161615);
    font-weight: 600;
}

/* Main Content - bez boxov */
.legal-section {
    margin-bottom: 3rem;
    scroll-margin-top: 120px;
}

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

/* Intro Text */
.legal-intro-text {
    font-size: 1.125rem;
    color: var(--text-secondary, #374151);
    line-height: 1.75;
    margin-bottom: 2rem;
}

.legal-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text, #161615);
    margin: 0 0 1.5rem 0;
    padding-top: 2rem;
    line-height: 1.3;
}

.legal-section:first-child .legal-section-title {
    padding-top: 0;
}

.legal-section-content {
    font-size: 1.0625rem;
    color: var(--text-secondary, #374151);
    line-height: 1.85;
}

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

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

.legal-section-content strong {
    color: var(--text, #161615);
    font-weight: 700;
}

.legal-section-content ul,
.legal-section-content ol {
    margin: 1.5rem 0;
    padding-left: 2.5rem;
}

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

/* Veľkosť li v job-content */
body.page-template-page-gdpr .job-content li,
body.page-template-page-podmienky .job-content li,
body.page-template-page-cookies .job-content li {
    font-size: var(--font-size-base);
}

.legal-section-content ul li::marker {
    color: var(--primary, #FDC600);
    font-weight: 700;
}

.legal-section-content ol li::marker {
    color: var(--primary, #FDC600);
    font-weight: 700;
}

.legal-section-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text, #161615);
    margin: 2.5rem 0 1.25rem 0;
    line-height: 1.4;
}

.legal-section-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text, #161615);
    margin: 2rem 0 1rem 0;
    line-height: 1.4;
}

.legal-section-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: var(--bg-subtle, #f9fafb);
    border-left: 4px solid var(--accent, #005588);
    border-radius: 0 var(--radius-sm, 8px) var(--radius-sm, 8px) 0;
    font-style: italic;
    color: var(--text-secondary, #374151);
}

.legal-section-content table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: var(--radius-sm, 8px);
    overflow: hidden;
}

.legal-section-content table th,
.legal-section-content table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light, #e5e7eb);
}

.legal-section-content table th {
    background: var(--bg-subtle, #f9fafb);
    font-weight: 600;
    color: var(--text, #161615);
}

.legal-section-content table tr:last-child td {
    border-bottom: none;
}

/* Responsive Design */
@media (max-width: 1200px) {

    body.page-template-page-gdpr .job-grid,
    body.page-template-page-podmienky .job-grid,
    body.page-template-page-cookies .job-grid {
        gap: 3rem;
    }
}

@media (max-width: 991px) {

    body.page-template-page-gdpr .job-grid,
    body.page-template-page-podmienky .job-grid,
    body.page-template-page-cookies .job-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Skryť sidebar na mobile */
    body.page-template-page-gdpr .job-sidebar,
    body.page-template-page-podmienky .job-sidebar,
    body.page-template-page-cookies .job-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .legal-sidebar-nav {
        padding: 1.5rem;
    }

    .legal-section-title {
        font-size: 1.5rem;
    }

    .legal-intro-text {
        font-size: 1rem;
    }

    .legal-section-content {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .legal-sidebar-nav {
        padding: 1.25rem;
    }

    .legal-section-title {
        font-size: 1.25rem;
    }

    .legal-intro-text {
        font-size: 0.9375rem;
    }

    .legal-section-content {
        font-size: 0.9375rem;
    }
}