/* Professional Legal Documents Page - Corporate Style 2025 */

:root {
    /* Professional Corporate Palette */
    --burgundy-accent: #8B1538;
    --burgundy-muted: #9f4257;
    --navy-primary: #2c3e50;
    --navy-deep: #1a252f;
    --slate-primary: #475569;
    --slate-light: #64748b;
    
    /* Neutral Background Palette */
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-tertiary: #e2e8f0;
    --white: #ffffff;
    
    /* Professional Grays */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
}

body {
    background: var(--bg-primary);
}

/* Hero Section - Professional Corporate Style with Background Image */
.hero-legal {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.85) 0%, rgba(26, 37, 47, 0.9) 100%),
                url('../img/hero/prawne-hero.jpg') center/cover;
    padding: 3.5rem 2rem;
    border-radius: 1rem;
    margin: 2rem 0 3rem 0;
    text-align: center;
    color: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.hero-legal-content {
    position: relative;
    z-index: 1;
}

.hero-legal h1 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.hero-legal p {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
}

/* Section Headers */
.section-title-legal {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--burgundy-accent);
    display: inline-block;
}

.section-description {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Legal Section Container */
.legal-section {
    background: var(--white);
    border-radius: 1rem;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--gray-200);
}

/* Accordion Styles - Modern Clean Design */
.accordion-legal {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item-legal {
    background: var(--gray-50);
    border-radius: 0.75rem;
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item-legal:hover {
    border-color: var(--burgundy-muted);
    box-shadow: 0 4px 12px rgba(139, 21, 56, 0.08);
}

.accordion-header-legal {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.accordion-header-legal:hover {
    background: var(--gray-50);
}

.accordion-header-legal.active {
    background: linear-gradient(135deg, var(--burgundy-accent) 0%, var(--burgundy-muted) 100%);
    color: white;
    border-bottom-color: var(--burgundy-accent);
}

.accordion-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy-primary);
    flex: 1;
    padding-right: 1rem;
    line-height: 1.4;
}

.accordion-header-legal.active .accordion-title {
    color: white;
}

.accordion-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.accordion-header-legal.active .accordion-icon {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(180deg);
}

.accordion-icon svg {
    width: 16px;
    height: 16px;
    stroke: var(--gray-600);
    transition: stroke 0.2s ease;
}

.accordion-header-legal.active .accordion-icon svg {
    stroke: white;
}

.accordion-content-legal {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content-legal.active {
    max-height: 2000px;
}

.accordion-body-legal {
    padding: 1.5rem;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
}

/* Document Links */
.document-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    margin-bottom: 0.625rem;
    background: var(--gray-50);
    border-radius: 0.5rem;
    border: 1px solid var(--gray-200);
    text-decoration: none;
    color: var(--navy-primary);
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.document-link:hover {
    background: var(--white);
    border-color: var(--burgundy-accent);
    color: var(--burgundy-accent);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(139, 21, 56, 0.1);
}

.document-link:last-child {
    margin-bottom: 0;
}

.document-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--burgundy-accent) 0%, var(--burgundy-muted) 100%);
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.document-icon svg {
    width: 18px;
    height: 18px;
    stroke: white;
}

.document-text {
    flex: 1;
    line-height: 1.4;
}

.document-arrow {
    width: 20px;
    height: 20px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.2s ease;
}

.document-link:hover .document-arrow {
    opacity: 1;
    transform: translateX(0);
}

.document-arrow svg {
    width: 100%;
    height: 100%;
    stroke: var(--burgundy-accent);
}

/* Closing Note */
.closing-note {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    border-left: 4px solid var(--burgundy-accent);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-top: 2rem;
    color: var(--gray-700);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-legal {
        padding: 2.5rem 1.5rem;
        border-radius: 0.75rem;
    }

    .legal-section {
        padding: 1.5rem;
    }

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

    .accordion-header-legal {
        padding: 1rem;
    }

    .accordion-title {
        font-size: 0.9rem;
    }

    .accordion-body-legal {
        padding: 1rem;
    }

    .document-link {
        padding: 0.75rem;
        font-size: 0.85rem;
    }

    .document-icon {
        width: 28px;
        height: 28px;
    }
}

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

.legal-section {
    animation: fadeInUp 0.5s ease-out;
}

.legal-section:nth-child(2) {
    animation-delay: 0.1s;
}

.legal-section:nth-child(3) {
    animation-delay: 0.2s;
}

/* Print Styles */
@media print {
    body {
        background: white;
    }

    .legal-section {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .accordion-content-legal {
        max-height: none !important;
    }
}

