/* ==========================================================================
   Legal Regulations (Yasal Düzenlemeler) Page Styles
   ========================================================================== */

.legal-page-header {
    background: linear-gradient(135deg, var(--primary-color, #0b2545) 0%, #134074 100%);
    color: #fff;
    padding: 50px 0 65px 0;
    text-align: center;
    position: relative;
    border-bottom: 5px solid var(--accent-color, #d4af37);
}

.legal-page-header h1 {
    font-size: 2.35rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.legal-page-header p {
    font-size: 1.05rem;
    max-width: 780px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.6;
}

/* Breadcrumb Styling */
.legal-breadcrumb {
    margin-bottom: 18px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.legal-breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-breadcrumb a:hover {
    color: var(--accent-color, #d4af37);
}

.legal-breadcrumb .sep {
    color: rgba(255, 255, 255, 0.4);
}

.legal-breadcrumb .current {
    color: #fff;
    font-weight: 600;
}

/* Main Content Container */
.legal-content-section {
    padding: 0 0 70px 0;
    margin-top: -30px;
    position: relative;
    z-index: 1;
}

/* Intro Callout Card */
.legal-intro-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-left: 5px solid var(--primary-color, #0b2545);
    display: flex;
    align-items: center;
    gap: 24px;
}

.legal-intro-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 14px;
    background: rgba(11, 37, 69, 0.08);
    color: var(--primary-color, #0b2545);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.legal-intro-text h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px 0;
}

.legal-intro-text p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Table Wrapper Card */
.legal-table-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.legal-table-header-bar {
    padding: 20px 28px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.legal-table-header-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-table-count-badge {
    background: var(--primary-color, #0b2545);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

/* Modern Data Table */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.legal-table thead tr {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legal-table th {
    padding: 16px 24px;
    border-bottom: 2px solid #e2e8f0;
}

.legal-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s ease;
}

.legal-table tbody tr:last-child {
    border-bottom: none;
}

.legal-table tbody tr:hover {
    background-color: #f8fafc;
}

.legal-table td {
    padding: 20px 24px;
    vertical-align: middle;
}

/* Document Column Styles */
.doc-item-title-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.doc-icon-box {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: #fee2e2;
    color: #ef4444;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.legal-table tbody tr:hover .doc-icon-box {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.doc-info-block h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px 0;
    line-height: 1.4;
}

.doc-info-block p {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 6px 0;
}

.doc-meta-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.badge-tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
}

.badge-regulation {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #dbeafe;
}

.badge-law {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #dcfce7;
}

.badge-law-no {
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.75rem;
}

/* Format Column */
.format-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fee2e2;
    color: #dc2626;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 8px;
    border: 1px solid #fecaca;
}

/* Action Buttons */
.legal-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}

.btn-pdf-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-color, #0b2545) 0%, #1d4ed8 100%);
    color: #fff !important;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(11, 37, 69, 0.15);
    transition: all 0.25s ease;
}

.btn-pdf-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(29, 78, 216, 0.3);
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    color: #fff !important;
}

.btn-pdf-view {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    color: #475569 !important;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 9px 15px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.btn-pdf-view:hover {
    background: #e2e8f0;
    color: #0f172a !important;
    border-color: #cbd5e1;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .legal-page-header {
        padding: 50px 0 70px 0;
    }

    .legal-page-header h1 {
        font-size: 1.85rem;
    }

    .legal-page-header p {
        font-size: 0.95rem;
    }

    .legal-intro-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 15px;
    }

    .legal-intro-icon {
        margin: 0 auto;
    }

    /* Transform Table into Responsive Cards on Mobile */
    .legal-table thead {
        display: none;
    }

    .legal-table, 
    .legal-table tbody, 
    .legal-table tr, 
    .legal-table td {
        display: block;
        width: 100%;
    }

    .legal-table tbody tr {
        padding: 20px 16px;
        border-bottom: 8px solid #f8fafc;
    }

    .legal-table td {
        padding: 6px 0;
    }

    .doc-item-title-wrapper {
        flex-direction: column;
        gap: 12px;
    }

    .legal-actions {
        margin-top: 14px;
        justify-content: stretch;
        gap: 8px;
    }

    .btn-pdf-download, .btn-pdf-view {
        flex: 1;
        justify-content: center;
        padding: 10px 12px;
        font-size: 0.82rem;
    }
}
