/* ==========================================
   Legal/Policy Pages Styles
   Shared styles for all legal documents:
   - polityka-prywatnosci.html
   - polityka-cookies.html
   - polityka-bon-podarunkowy.html
   - regulamin.html
   - swiadczenia-uslug.html
   ========================================== */

/* ==========================================
   Legal Container (Privacy & Cookies pages)
   ========================================== */

.legal-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.legal-content {
    padding: 40px;
    line-height: 1.8;
}

.legal-content h1 {
    color: #17A2B8;
    font-size: 36px;
    font-family: 'Lora', serif;
    margin: 0 0 30px 0;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 3px solid #17A2B8;
}

.legal-content h2 {
    color: #2C3E50;
    font-size: 24px;
    font-family: 'Lora', serif;
    margin: 40px 0 20px 0;
}

/* Variant with bottom border (used in bon-podarunkowy) */
.legal-content h2.bordered {
    padding-bottom: 10px;
    border-bottom: 2px solid #E0E0E0;
}

.legal-content h3 {
    color: #17A2B8;
    font-size: 20px;
    font-family: 'Lora', serif;
    margin: 30px 0 15px 0;
}

.legal-content p {
    color: #555;
    margin-bottom: 15px;
}

.legal-content ul,
.legal-content ol {
    color: #555;
    margin: 15px 0 15px 25px;
}

.legal-content li {
    margin-bottom: 10px;
}

/* ==========================================
   Terms Container (Regulamin pages)
   ========================================== */

.terms-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.terms-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #17A2B8;
}

.terms-header h1 {
    color: #17A2B8;
    font-size: 32px;
    margin: 0 0 10px 0;
}

.terms-content h2 {
    color: #2C3E50;
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #17A2B8;
}

.terms-content p {
    color: #333;
    line-height: 1.8;
    margin-bottom: 15px;
}

.terms-content ul {
    margin-left: 40px;
    margin-bottom: 15px;
}

.terms-content li {
    color: #333;
    line-height: 1.8;
    margin-bottom: 8px;
}

/* ==========================================
   Shared Components
   ========================================== */

/* Contact Box */
.contact-box {
    background: #F8F9FA;
    padding: 20px;
    border-left: 4px solid #17A2B8;
    margin: 30px 0;
    border-radius: 4px;
}

.contact-box p {
    margin: 5px 0;
}

/* Alternate contact box style (used in cookies) */
.contact-box.alt {
    background: #E8F5F7;
    border-radius: 8px;
}

/* Highlight Box */
.highlight-box {
    background: #E8F5F7;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    border-left: 4px solid #17A2B8;
}

.highlight-box h3 {
    color: #17A2B8;
    margin-top: 0;
    font-size: 20px;
}

/* Larger variant */
.highlight-box.large {
    padding: 25px;
    margin: 25px 0;
    border-left-width: 5px;
}

/* Warning Box */
.warning-box {
    background: #FFF3CD;
    padding: 20px;
    margin: 25px 0;
    border-radius: 8px;
    border-left: 5px solid #FFC107;
}

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

/* Company Info Box */
.company-info {
    background: #f0f8fb;
    padding: 20px;
    border-radius: 6px;
    margin: 20px 0;
}

.company-info ul {
    list-style: none;
    margin-left: 0;
}

.company-info li::before {
    content: "• ";
    color: #17A2B8;
    font-weight: bold;
    margin-right: 8px;
}

/* Form Box (withdrawal form) */
.form-box {
    background: #f5f5f5;
    padding: 20px;
    border-left: 4px solid #17A2B8;
    margin: 20px 0;
    font-family: monospace;
}

/* Update/Last Updated Date */
.update-date,
.last-updated {
    text-align: center;
    color: #666;
    font-style: italic;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #E0E0E0;
}

.last-updated {
    border-top-color: #eee;
}

/* ==========================================
   Cookie Category Boxes (Cookies page)
   ========================================== */

.cookie-category {
    background: #F8F9FA;
    padding: 25px;
    margin: 25px 0;
    border-radius: 8px;
    border-left: 5px solid #17A2B8;
}

.cookie-category.functional {
    border-left-color: #FFC107;
}

.cookie-category.analytical {
    border-left-color: #2196F3;
}

.cookie-category.marketing {
    border-left-color: #FF9800;
}

/* Cookie Table */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    overflow-x: auto;
    display: block;
}

.cookie-table table {
    width: 100%;
    min-width: 600px;
}

.cookie-table th,
.cookie-table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #E0E0E0;
}

.cookie-table th {
    background: #17A2B8;
    color: white;
    font-weight: 600;
}

.cookie-table tr:nth-child(even) {
    background: #F8F9FA;
}

/* ==========================================
   CTA Box (Gift Voucher Policy page)
   ========================================== */

.cta-box {
    background: linear-gradient(135deg, #17A2B8 0%, #138496 100%);
    color: white;
    padding: 30px;
    margin: 40px 0;
    border-radius: 12px;
    text-align: center;
}

.cta-box h3 {
    color: white;
    margin: 0 0 15px 0;
    font-size: 26px;
}

.cta-box p {
    color: white;
    margin: 0 0 20px 0;
    font-size: 16px;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #17A2B8;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #F8F9FA;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ==========================================
   Responsive Styles
   ========================================== */

@media (max-width: 768px) {
    /* Legal container */
    .legal-content {
        padding: 20px;
    }

    .legal-content h1 {
        font-size: 28px;
    }

    .legal-content h2 {
        font-size: 20px;
    }

    /* Terms container */
    .terms-container {
        margin: 20px;
        padding: 20px;
    }

    .terms-header h1 {
        font-size: 24px;
    }

    .terms-content h2 {
        font-size: 18px;
    }
}
