/* ==========================================================================
   LEGAL PAGES CSS (Regulamin & Polityka Prywatności)
   ========================================================================== */

.page-legal {
    font-family: 'Poppins', sans-serif;
}

/* ---- Hero ---- */
.legal-hero {
    background-color: #00016b;
    padding: 80px 24px 72px;
}

.legal-hero-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    max-width: 760px;
}

.legal-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.legal-title {
    color: #ffffff !important;
    font-size: 42px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
}

.legal-subtitle {
    color: rgba(255, 255, 255, 0.75);
    font-size: 17px;
    line-height: 1.65;
    margin: 0;
    max-width: 680px;
}

/* ---- Content Section ---- */
.legal-content-section {
    background-color: #f9fafb;
    padding: 64px 24px 80px;
}

.legal-content-container {
    max-width: 780px !important;
}

.legal-article {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    padding: 48px 52px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

/* ---- Typography ---- */
.legal-paragraph {
    font-size: 15px;
    line-height: 1.75;
    color: #374151;
    margin-bottom: 20px;
}

.legal-paragraph a,
.legal-article a {
    color: #00016b;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.legal-paragraph a:hover,
.legal-article a:hover {
    color: #EC1907;
}

/* ---- Section Titles (for polityka) ---- */
.legal-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #00016b !important;
    margin: 36px 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f8;
}

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

/* ---- Ordered List ---- */
.legal-ordered-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    counter-reset: legal-counter;
}

.legal-ordered-list > li {
    position: relative;
    font-size: 15px;
    line-height: 1.75;
    color: #374151;
    margin-bottom: 14px;
    padding-left: 28px;
}

.legal-ordered-list > li::before {
    content: counter(legal-counter) ".";
    counter-increment: legal-counter;
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 600;
    color: #00016b;
    font-size: 14px;
}

/* ---- Bullet List ---- */
.legal-bullet-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.legal-bullet-list > li {
    font-size: 15px;
    line-height: 1.75;
    color: #374151;
    margin-bottom: 10px;
    padding-left: 22px;
    position: relative;
}

.legal-bullet-list > li::before {
    content: "–";
    position: absolute;
    left: 0;
    color: #00016b;
    font-weight: 600;
}

/* ---- Sub List (nested under ordered) ---- */
.legal-sub-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.legal-sub-list li {
    font-size: 14px;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 6px;
    padding-left: 20px;
    position: relative;
}

.legal-sub-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #00016b;
    font-weight: 700;
}

/* ---- Sub-list for regulamin (punkt 15) ---- */
.legal-sublist {
    background: #f8f9ff;
    border-left: 3px solid #00016b;
    border-radius: 0 8px 8px 0;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.legal-sublist > p {
    font-size: 15px;
    color: #374151;
    font-weight: 500;
    margin-bottom: 10px;
}

.legal-sublist ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-sublist ul li {
    font-size: 14px;
    line-height: 1.75;
    color: #4b5563;
    margin-bottom: 6px;
    padding-left: 0;
}

/* ---- Purpose Blocks (polityka sekcja 2) ---- */
.legal-purpose-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.legal-purpose-item {
    background: #f8f9ff;
    border-radius: 10px;
    padding: 18px 20px;
    border-left: 3px solid #00016b;
}

.legal-purpose-title {
    font-size: 14px;
    font-weight: 600;
    color: #00016b !important;
    margin: 0 0 6px;
}

.legal-purpose-item p {
    font-size: 14px;
    line-height: 1.7;
    color: #4b5563;
    margin: 0;
}

/* ---- Doc Links Block ---- */
.legal-links-block {
    background: #f0f0f8;
    border-radius: 10px;
    padding: 20px 24px;
    margin: 28px 0 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legal-doc-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #00016b !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.legal-doc-link:hover {
    color: #EC1907 !important;
}

/* ---- Related Links ---- */
.legal-related-links {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    font-size: 14px;
    color: #6b7280;
}

.legal-related-links a {
    color: #00016b !important;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-related-links a:hover {
    color: #EC1907 !important;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .legal-hero {
        padding: 56px 20px 52px;
    }

    .legal-title {
        font-size: 28px;
    }

    .legal-subtitle {
        font-size: 15px;
    }

    .legal-content-section {
        padding: 40px 16px 60px;
    }

    .legal-article {
        padding: 28px 24px;
    }

    .legal-section-title {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .legal-title {
        font-size: 24px;
    }

    .legal-article {
        padding: 20px 16px;
    }
}
