/**
 * ====================================
 * קובץ: css/legal.css
 * ====================================
 * תיאור: עיצוב דפים משפטיים (נגישות, פרטיות, תנאים)
 * כולל: קונטיינר, כותרות, סעיפים, רשימות, קישורים
 */

/* ===== קונטיינר ראשי ===== */
.legal-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: Arial, sans-serif;
    line-height: 1.8;
    color: #333;
}

/* ===== כותרת עליונה ===== */
.legal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.legal-header h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
}

.legal-header .btn {
    background: white;
    color: #667eea;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.legal-header .btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ===== תוכן המסמך ===== */
.legal-content {
    background: white;
    padding: 40px 50px;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ===== סעיפים ===== */
.legal-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.legal-section:last-child {
    border-bottom: none;
}

/* ===== כותרות ===== */
.legal-section h2 {
    color: #667eea;
    font-size: 26px;
    margin-bottom: 20px;
    margin-top: 0;
    font-weight: 700;
    padding-right: 15px;
    border-right: 5px solid #667eea;
}

.legal-section h3 {
    color: #555;
    font-size: 20px;
    margin-bottom: 15px;
    margin-top: 25px;
    font-weight: 600;
}

/* ===== פסקאות ===== */
.legal-section p {
    margin-bottom: 15px;
    text-align: justify;
}

.legal-section p strong {
    color: #333;
    font-weight: 700;
}

/* ===== רשימות ===== */
.legal-section ul {
    margin: 15px 0;
    padding-right: 25px;
}

.legal-section ul li {
    margin-bottom: 12px;
    position: relative;
    padding-right: 10px;
}

.legal-section ul li::marker {
    color: #667eea;
    font-weight: bold;
}

.legal-section ul li strong {
    color: #667eea;
}

/* ===== מידע ליצירת קשר ===== */
.contact-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 10px;
    border-right: 4px solid #667eea;
    margin: 20px 0;
}

.contact-info p {
    margin: 10px 0;
    text-align: right;
}

.contact-info strong {
    color: #667eea;
    display: inline-block;
    min-width: 120px;
}

/* ===== קישורים ===== */
.legal-content a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border-bottom: 1px solid transparent;
}

.legal-content a:hover {
    color: #764ba2;
    border-bottom-color: #764ba2;
}

.legal-content a:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* ===== סעיף מודגש ===== */
.highlight-section {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    padding: 25px;
    border-radius: 10px;
    border-right: 5px solid #ff9800;
    margin: 30px 0;
}

.highlight-section h2 {
    color: #e65100;
    border-right-color: #ff9800;
}

.highlight-section p {
    color: #333;
    font-size: 16px;
}

/* ===== הערת תחתית ===== */
.legal-footer-note {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    color: #666;
    font-size: 14px;
}

.legal-footer-note em {
    font-style: italic;
}

/* ===== התאמות למובייל ===== */

/* טאבלטים */
@media screen and (max-width: 768px) {
    .legal-container {
        margin: 20px auto;
        padding: 0 15px;
    }

    .legal-header {
        flex-direction: column;
        gap: 20px;
        padding: 30px 20px;
        text-align: center;
    }

    .legal-header h1 {
        font-size: 26px;
    }

    .legal-header .btn {
        width: 100%;
        text-align: center;
    }

    .legal-content {
        padding: 30px 25px;
    }

    .legal-section h2 {
        font-size: 22px;
    }

    .legal-section h3 {
        font-size: 18px;
    }

    .contact-info {
        padding: 20px;
    }

    .contact-info strong {
        display: block;
        margin-bottom: 5px;
    }
}

/* מובייל קטן */
@media screen and (max-width: 480px) {
    .legal-container {
        margin: 10px auto;
        padding: 0 10px;
    }

    .legal-header {
        padding: 25px 15px;
        border-radius: 10px 10px 0 0;
    }

    .legal-header h1 {
        font-size: 22px;
    }

    .legal-content {
        padding: 20px 15px;
        border-radius: 0 0 10px 10px;
    }

    .legal-section {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }

    .legal-section h2 {
        font-size: 20px;
        padding-right: 10px;
        border-right-width: 3px;
    }

    .legal-section h3 {
        font-size: 17px;
        margin-top: 20px;
    }

    .legal-section p {
        font-size: 15px;
        text-align: right;
    }

    .legal-section ul {
        padding-right: 20px;
    }

    .legal-section ul li {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .contact-info {
        padding: 15px;
    }

    .highlight-section {
        padding: 20px 15px;
        border-right-width: 3px;
    }

    .legal-footer-note {
        margin-top: 30px;
        padding: 15px;
        font-size: 13px;
    }
}

/* ===== הדפסה ===== */
@media print {
    .legal-header .btn {
        display: none;
    }

    .legal-header {
        background: #667eea;
        color: white;
        box-shadow: none;
    }

    .legal-content {
        box-shadow: none;
    }

    .legal-section {
        page-break-inside: avoid;
    }

    a {
        color: #333 !important;
        text-decoration: underline;
    }
}

/* ===== נגישות ===== */

/* התמקדות בקישורים */
a:focus-visible {
    outline: 3px solid #667eea;
    outline-offset: 3px;
    border-radius: 3px;
}

/* התמקדות בכפתורים */
.btn:focus-visible {
    outline: 3px solid white;
    outline-offset: 3px;
}

/* ניגודיות גבוהה */
@media (prefers-contrast: high) {
    .legal-header {
        background: #000;
    }

    .legal-content a {
        text-decoration: underline;
    }

    .legal-section h2,
    .contact-info strong {
        color: #000;
    }
}

/* הפחתת תנועה */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .legal-header .btn:hover {
        transform: none;
    }
}

/* ===== גופן קריא ===== */
.legal-content {
    font-size: 16px;
}

/* הגדלת ריווח בין שורות לקריאות טובה יותר */
.legal-section p,
.legal-section li {
    line-height: 1.8;
}

/**
 * ====================================
 * סוף קובץ: css/legal.css
 * ====================================
 */
