/* Compliance & Privacy Matrix */

.comp-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.comp-filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.comp-filter-group label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-right: 0.25rem;
}

.comp-filter-btn {
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.comp-filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.comp-filter-btn.active {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.comp-search-wrap {
    flex: 1;
    min-width: 220px;
    max-width: 320px;
}

.comp-search-wrap input {
    width: 100%;
    background: var(--card-bg-solid);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.65rem 1rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
}

.comp-search-wrap input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.comp-table-section {
    margin-bottom: 1.5rem;
}

.comp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.comp-table thead th {
    text-align: center;
    padding: 0.75rem 0.55rem;
    font-size: 0.72rem;
    color: var(--text-tertiary);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.3;
}

.comp-table thead th:first-child {
    text-align: left;
}

.comp-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s ease;
}

.comp-table tbody tr:hover {
    background: var(--card-bg);
}

.comp-table tbody td {
    padding: 0.75rem 0.55rem;
    text-align: center;
    vertical-align: middle;
}

.comp-table tbody td:first-child {
    text-align: left;
    font-weight: 600;
}

.comp-provider-link {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px dashed transparent;
    transition: border-color 0.2s, color 0.2s;
}

.comp-provider-link:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.comp-yes {
    color: #34d399;
    font-weight: 700;
    font-size: 1rem;
}

.comp-no {
    color: #f87171;
    font-size: 0.95rem;
}

.comp-partial {
    color: #fbbf24;
    font-weight: 700;
    font-size: 1rem;
}

.comp-enterprise {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.comp-unknown {
    color: var(--text-tertiary);
    font-style: italic;
}

.comp-retention {
    text-align: left !important;
    font-size: 0.78rem !important;
    color: var(--text-secondary) !important;
    font-weight: 500 !important;
    max-width: 11rem;
    line-height: 1.4;
}

.comp-disclaimer {
    margin-bottom: 2.5rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.06);
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.comp-disclaimer strong {
    color: var(--text-primary);
}

.comp-legend {
    margin-bottom: 2rem;
    padding: 1.25rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.comp-legend h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
}

.comp-legend-items {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.comp-legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

@media (max-width: 968px) {
    .comp-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .comp-search-wrap {
        max-width: none;
    }

    .comp-table {
        font-size: 0.75rem;
    }

    .comp-table thead th,
    .comp-table tbody td {
        padding: 0.5rem 0.35rem;
    }
}
